2 ms·
If you don't have state of the art GC, it's a burden to have in your language since it'll cripple performance, GC pausing threads, collection becoming slower as
by WhereIsTheTruth 3y ago
If you don't have state of the art GC, it's a burden to have in your language since it'll cripple performance, GC pausing threads, collection becoming slower as your heap grows and memory fragmentation for example
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 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
- WalterBright 3y agoOne unexpected benefit of GC is it makes compile time function execution easy to write code for. The use of the GC there does not transfer to the runtime. 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.