Could DRuntime be implemented as a shared library?

solidstate1991 via Digitalmars-d digitalmars-d at puremagic.com
Wed May 31 08:57:46 PDT 2017


Offloading at least the GC could enable the implementation of a 
per-application GC easier, as well as making development of 
shared libraries under Windows much easier, might even enable the 
offloading of Phobos into its own DLL.

As an outsider, I think the biggest problem would be from the 
templates (if any) used in the runtime library on the 
implementation side. On the other hand we could just still 
implement those as a static library into the executable files.

Versioning would be the hardest, we either release a new one with 
each new implementation, or develop the runtime library more 
independently from the compiler with clever versioning, however 
it might cause the development of the DRuntime to be fragmented 
for supporting older and newer versions.


More information about the Digitalmars-d mailing list