by RcouF1uZ4gsC · 3y ago · 0 comments
However, its embrace in the 1990's of garbage collection has proved its Achilles heel. Before anyone says you can write D without the garbage collection, yes you can but then you lose access to most of the standard library, and likely most third party libraries. Rust and C++ allow you not to have to use garbage collection but still use the standard library and 3rd party libraries.
With garbage collection, D is not directly competing not with C++ but with Java, Swift, Go, C# which have far more support across the industry.
D lets user opt-out of collector as needed which is quite nice. D has been used in AAA game development for what it's worth as well.
That's simply not true. Only one of the algorithms in std.algorithm, for example, uses the GC.
The GC also enables much better compile time function execution.
> Embedded systems
In the embedded work I've done I barely allocate at all, so it matters not GC or otherwise.