PhobosV3+ Fundamental Elements

libxmoc libxmoc at gmail.com
Fri Sep 18 19:09:38 UTC 2026


On Friday, 18 September 2026 at 18:33:41 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 19/09/2026 6:27 AM, Sebastiaan Koppe wrote:
>> On Friday, 18 September 2026 at 16:46:36 UTC, Richard (Rikki) 
>> Andrew Cattermole wrote:
>>> The libraries built on top of the base phobosv3 library, need 
>>> to be shared libraries they are doing things like event loop 
>>> that should not be available by default and are not going to 
>>> work right if they were a static library.
>>>
>>> I don't want people who don't know what they are doing 
>>> thinking that they should use a static library for easier 
>>> shipping and then find themselves with core features not 
>>> working.
>> 
>> What is the issue with static libs?
>
> The primary issue is you lose ability to load shared libraries 
> that depend upon it.
>
> Which is an important feature of web servers, GUI toolkits and 
> game engines.
>
> If you know and understand these limitations, building it 
> yourself with dub shouldn't be an issue.
>
> Also we'll likely end up shipping libraries that would conflict 
> if it were a static library. I have a couple of Luna's in mind 
> as part of a GUI toolkit.

Just ship source code, I see 0 valid reasons to go with shared 
libraries.

Let's not repeat dotnet's mistake of shipping programs with 
bazillions of dll's.

They learned it the hard way when Go started to eat their lunch. 
They now brag about single static AOT executables in their 
marketing ;).


More information about the Digitalmars-d mailing list