by teleforce · 2y ago · 0 comments
D doesn't have state of the art GC, it perhaps should focus on its strengths, being a better C/C++ and embrace the concept of allocators
https://dlang.org/phobos/std_experimental_allocator.html
To me D shine with its -betterC mode, it completely strip the runtime, giving you a great low level language to work with, a great better C/C++, I would have quit D a long time ago if it didn't have this compiler flag
Removal of the GC makes for CTFE code becoming much klunkier.
One can see this in betterC mode - the GC is allowed for CTFE code.
It seems a lot of the other languages:
- don't have an easy compilation story (interpreted, VM, compilers as secondary implementations)
- lean more on the functional side (Ocaml, Haskell)
- otherwise clash with the common BCPL-family mindset (Oberon, arguably Go)
There definitely seems room for an "easier C++". Heck, given how popular Rust is due to backing and support from the functional crowd, leaning into ease of use and imperative programming might be a sufficiently large niche.
D is a native strongly typed language
You don't make game engines in Python, and certainty not drivers, python devs fall back to C when they need performance, this should give you a hint
[1]Numeric age for D: Mir GLAS is faster than OpenBLAS and Eigen:
http://blog.mir.dlang.io/glas/benchmark/openblas/2016/09/23/...
"Pythonic" hasn't been "intuitive" for 15 years now. Even old-school Perl is more cohesive and coherent than modern Python.