How usable is the D language without a garbage collector?
rikki cattermole
rikki at cattermole.co.nz
Fri Jul 15 09:44:34 UTC 2022
On 15/07/2022 9:40 PM, 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.
Neither of which D's GC is the enemy of.
The GC is a library that can only be triggered to stop the world, but is
not guaranteed to stop the world on, during a from GC memory allocation.
You are quite free to use malloc/free and not tell the runtime about a
thread iff you need to.
You can also disable scanning when a pause would not be desirable.
D has been used in both scenarios with the GC turned on.
https://dlang.org/blog/the-gc-series/
More information about the Digitalmars-d
mailing list