[Proposal] Switch to the Universal CRT on Windows.
Denis Feklushkin
feklushkin.denis at gmail.com
Wed Jul 1 20:37:38 UTC 2026
On Wednesday, 1 July 2026 at 12:37:22 UTC, Dennis wrote:
> On Wednesday, 1 July 2026 at 01:24:05 UTC, Adam Wilson wrote:
>> The solution is pretty straight-forward. Use the Universal CRT
>> for everything on Windows.
>
> I'm in favor, but can I say that this shows how much of a
> nuisance depending on libc is? Walter often says how printf is
> the most debugged function ever so we should leverage that in
> dmd, but here we are getting bitten by libc nonsense yet again.
> Between that, its [unsafe
> interface](https://github.com/dlang/dmd/pull/13987), stupid
> [global locale
> system](https://github.com/dlang/dmd/blob/cfae207a4dfa38bdc67b28986e263365adc577c3/compiler/src/dmd/root/port.d#L93-L104) and [random breakages](https://bugzilla-archive.dlang.org/bugs/23846/), are we really better off than if we just wrote our own D function to interpolate numbers in strings?
I also agree with this, for the reason that libc slows down
porting to systems where it is not present.
Maybe we need to get together somewhere and discuss it? My
proposal was outlined
[here](https://forum.dlang.org/post/mssdrzylsdqmpcnvakar@forum.dlang.org): "druntime should not import core.stdc"
Let the druntime use these functions through wrapper functions or
aliases. There will be only about 10 of them in total, I think:
malloc/free, some sync methods...
More information about the Digitalmars-d
mailing list