D shared libraries
Unknown W. Brackets
unknown at simplemachines.org
Sat Apr 12 16:08:04 PDT 2008
Well, I'm more talking about why DMD cannot produce shared libraries
(using Phobos) on Linux. It seems to me the problems for Win32 are larger.
As for ddl - essentially, a runtime linker. Given an obj file, it links
it against the running program (provided a file listing its references)
and provides methods to pull its symbols.
This allows libraries to function on Windows similarly to so files
(reverse linking.) I believe mingw32 is actually doing something similar.
-[Unknown]
Walter Bright wrote:
> Unknown W. Brackets wrote:
>> Shared libraries are quite popular. To be honest, I'm no expert with
>> them or I would try my hand (I actually did a bit, but I really don't
>> have much experience with linking problems.)
>>
>> Would you have any suggestions on what one might do to better
>> understand the problems Phobos currently has with supporting shared
>> libraries? If I understood the problems, I would be happy to work on
>> a solution.
>
>
> I'd start by examining how DLL support is done for Win32 (i.e. having a
> shared gc and threading system).
>
>
>> Also, since it's a bit related - what is your opinion on the concept
>> of ddl?
>>
>> It (the concept; ddl doesn't work at all for me no matter what I try,
>> and seems overcomplicated in ways) seems like a perfect way to bridge
>> yet another gap between D and other popular dynamic languages like
>> Ruby, Python, Perl, PHP, etc.: ease of importing/using shared code
>> dynamically.
>
> I don't know anything about ddl.
More information about the Digitalmars-d
mailing list