3 ms·
i love D, i only wish story where non-gc is needed would improve (more allocator work, more gc free runtime etc) after trying zig, i also wish C interop was as
by Shadonototro 6y ago
i love D, i only wish story where non-gc is needed would improve (more allocator work, more gc free runtime etc)
after trying zig, i also wish C interop was as smooth, but zig has advantage of shipping a clang compiler as library, D could do the same since they got LDC (with LLVM)
i move between zig/rust and D; i'm happy to say that we can live in a world where we can totally ignore c++
- mhh__ 6y ago@nogc is growing, and memory safety will also be improving, just that we've basically reached end of what we can do before reaching the hard problems - we're definitely not stopping we just need to get any changes to the language right. Also remember that the GC is entirely written in D, it is possible.
- gmueckl 6y agoThere's also Calypso, an LDC fork that can process C++ headers directly. It should in theory also work with C.
- Shadonototro 6y agowhy a fork, and not a PR to LDC? fragmentation is a bad thing in my opinion
- mhh__ 6y agoBecause merging an increasingly large subset of a c++ compiler into a compiler for a different language is a recipe for disaster if you're unlucky.
- Shadonototro 6y agoI don't know how exactly things works, but zig approach is very nice, i wish it was possible with D too When i say available, i mean available out of the box