5 ms·
The reason D didn’t really gain traction over the years was because it required a garbage collector. Recently it’s going the other direction via betterC (a mode
by cyber_kinetist 4y ago
The reason D didn’t really gain traction over the years was because it required a garbage collector. Recently it’s going the other direction via betterC (a mode where you can ditch the GC), but many parts of the standard library still require the GC to run properly.
- pjmlp 4y agoC# hasn't had the same issues, https://www.wildernesslabs.co/ https://www.wildernesslabs.co/ https://nikolayk.medium.com/getting-started-with-unity-dots-part-1-ecs-7f963777db8e https://nikolayk.medium.com/getting-started-with-unity-dots-... Had Remedy experiment worked out, maybe DOTS would be using D instead of having their own compiler infrastructure for HPC#. Nor Java even, https://www.ptc.com/en/products/developer-tools/perc https://www.ptc.com/en/products/developer-tools/perc https://www.aicas.com/wp/products-services/jamaicavm/ https://www.aicas.com/wp/products-services/jamaicavm/ The main reasons are not having a big name company that would push D no matter what, and lack of focus where D should aim for.
- WalterBright 4y agoD is a general purpose programming language, it does not aim at a niche.
- pjmlp 4y agoIt is called killer feature for market adoption.
- WalterBright 4y agoVery, very little of the library requires a GC. You can ensure your D code doesn't use the GC by adding the `@nogc` attribute. But really, all this concern about the GC is misplaced. It's just another tool available. You can use it in D, or use RAII, or your own allocation system. It's your choice as a D programmer.
- teleforce 4y agoIt is a shame that until now the software industry has not figure out how to reliably perform automatic memory management or GC. Unlike the auto industry the manual transmission is going to a dinasour route compared to the now default automatic transmission. I am giving this analogy since Walter has a degree in mechanical engineering and he has correctly made the GC a default in D but not mandatory, but the choice somehow is not popular in the software industry.