writing library in D for Linux and other OSes

mrkafk mrkafk at gmail.com
Tue Feb 19 06:50:39 PST 2013


>> Another issue is GC: can I use D's garbage collection 
>> (realtime-like
>> performance is not necessary for my needs) in the library and 
>> it will
>> "just work" in say Python code? Or not?
>>
> Hard to say, it depends on the implementation of your 
> language's interpreter and might break at some point (precise 
> collector).

Could you elaborate on this point (precise allocator) pls? Do you 
mean that library written in D will have its own D-provided GC 
and this will get in the way of either memory allocator or GC of 
a program using the library?


> It also depends on how you represent the D objects/memory but 
> it's a problem that someone creating a binding should address. 
> You might want to look at LuaD and PyD 
> http://wiki.dlang.org/Libraries_and_Frameworks#Scripting_D_applications.

Thanks!! I'm looking at this.


More information about the Digitalmars-d mailing list