News for hackers. Stuff that matters.
Re:Idioms for the D Programming Language by Shadonototro on Thursday February 11, 2021 @04:19PM (#26107381)
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++

Re:Idioms for the D Programming Language by mhh__ on Thursday February 11, 2021 @04:26PM (#26107487)
@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.

Re:Idioms for the D Programming Language by gmueckl on Thursday February 11, 2021 @05:04PM (#26108001)
There's also Calypso, an LDC fork that can process C++ headers directly. It should in theory also work with C.
Re:Idioms for the D Programming Language by Shadonototro on Thursday February 11, 2021 @05:13PM (#26108089)
why a fork, and not a PR to LDC? fragmentation is a bad thing in my opinion
Re:Idioms for the D Programming Language by mhh__ on Thursday February 11, 2021 @05:34PM (#26108321)
Because 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.
Re:Idioms for the D Programming Language by Shadonototro on Friday February 12, 2021 @02:22PM (#26117475)
I 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