Status of Dynamically Loadable D Libraries

John Colvin john.loughran.colvin at gmail.com
Wed Feb 13 15:19:59 PST 2013


On Sunday, 10 February 2013 at 23:52:30 UTC, David Nadlinger 
wrote:
> On Sunday, 10 February 2013 at 23:41:54 UTC, John Colvin wrote:
>> For shared libraries (linux) I'd use ldc . It's just works.
>
> You are living a dangerous life. ;)
>
> It appears to work at first, but the test suite is known to 
> segfault in random places with druntime/Phobos being built as a 
> shared library, most probably because the GC/threading code 
> doesn't really handle dynamic libraries at all.
>
> David

Does this pretty much completely invalidate projects like this: 
https://bitbucket.org/ariovistus/pyd ?

I've had success using it, as well as loading d shared libraries 
from C/IDL, with the appropriate rt_init calls etc.


More information about the Digitalmars-d mailing list