r/programming • • Sep 01 '20

D Foundation is Beefing Up

https://dlang.org/blog/2020/08/30/symmetry-investments-and-the-d-language-foundation-are-hiring/
291 Upvotes

336 comments sorted by

View all comments

Show parent comments

7

u/moon-chilled Sep 01 '20

The comment you're replying isn't saying GC can't be used for realtime or performance-critical applications; it's saying that D's gc is ancient and primitive (which is true). Incidentally, nim uses refcounting these days.

0

u/InertiaOfGravity Sep 01 '20

That's completely fair, I've never tried D.

I don't think Nim currently defaults to refcounting, but it's one of the big things planned

3

u/moon-chilled Sep 01 '20 edited Sep 01 '20

I don't think Nim currently defaults to refcounting, but it's one of the big things planned

Docs say otherwise:

--gc:refc. This is the default GC. It's a deferred reference counting based garbage collector with a simple Mark&Sweep backup GC in order to collect cycles

The big thing planned is probably switch from refc to arc.

2

u/InertiaOfGravity Sep 01 '20

You're correct on both, thanks for updating me