2 ms·
Probably because it's a sort of call to arms to those languages to try and improve things where Zig is currently on top :D. Some of those can't be fixed (e.g. h
by brabel 3y ago
Probably because it's a sort of call to arms to those languages to try and improve things where Zig is currently on top :D.
Some of those can't be fixed (e.g. hidden control flow, hidden allocations) but some can (e.g. I think D has an alternative allocator API, it can now compile C/C++ code as well, and I believe its package manager is trying to add support for system dependencies as well).
- WalterBright 3y agoD has a pluggable GC, if that's what you mean. It makes trying out various GC strategies easy without modifying the compiler. D also supports the following memory allocation strategies: 1. RAII 2. stack allocation 3. malloc/free 4. custom alloctors Each has its tradeoffs, you can pick the most appropriate one. The D compiler itself uses all of them :-/