September 12, 2022

I recently read a good article describing how Rust and their tool Cargo can use different options to add dependencies as dynamic libraries rather than static libraries, which can be used to speed up incremental compilation (because the dependencies do not have to be re-compiled).

https://robert.kra.hn/posts/2022-09-09-speeding-up-incremental-rust-compilation-with-dylibs/

It's a good read and it could inspire similar capabilities within dub.

September 13, 2022
On 13/09/2022 7:17 AM, Vijay Nayar wrote:
> It's a good read and it could inspire similar capabilities within dub.

Dub already supports shared libraries, to more or less the best ability that the compilers have to offer in ~master.

Ultimately if you attempt to build your D code as a shared library (and succeeds!) and when you try to link against it you get linker errors, there is not a whole lot you can do from the build manager side.

Ldc is mostly there, gdc too I believe. Dmd on the other hand... forget about it (Windows).