How usable is the D language without a garbage collector?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Jul 15 11:18:15 UTC 2022


On Friday, 15 July 2022 at 09:40:05 UTC, LinguisticMystic wrote:
> On Friday, 15 July 2022 at 09:31:14 UTC, max haughton wrote:
>
>> What kind of software do you want to write
>
> Video games, number crunching. Stuff C++ is usually used for.

Depends on what kind of video games you are thinking of.  A 
strategy game or a basic RPG MUD would be no problem, even with 
the GC.  You can bind to non-templated C++, so you could use a 
flexible C/C++ renderer like Skia running on a non-gc thread.

If you want to create a first person shooter game then you should 
pick the framework(s) first, and language second. Creating a 
quality game-engine for that from scratch takes a massive 
investment given hardware differences etc, so the language-choice 
becomes secondary.

That said, everything in C++ is RAII-based so it is hard to beat 
in terms of language features for that type of programming, 
despite C++ being one of the most time consuming languages 
around. C++ is not really a hobby language…

Anyway, you don't have to stick to one language. You can mix.







More information about the Digitalmars-d mailing list