News for hackers. Stuff that matters.
Re:Nim Community Survey 2019 Results by pjmlp on Monday February 24, 2020 @11:22AM (#22405407)
Just because it is possible to use GC, one doesn't need to use it all the time, not all platforms have a restricted GC that runs all the time without extra knobs to tune.

So just like one would not do malloc() on specific engine code paths, it is possible not to use GC heap allocations as well.

Re:Nim Community Survey 2019 Results by jstimpfle on Monday February 24, 2020 @11:38AM (#22405564)
> it is possible not to use GC heap allocations as well

At this point you're almost doing manual memory management.

Re:Nim Community Survey 2019 Results by pjmlp on Monday February 24, 2020 @02:11PM (#22407297)
RAII and arenas are not manual memory management.
Re:Nim Community Survey 2019 Results by jstimpfle on Monday February 24, 2020 @03:09PM (#22407913)
I didn't notice the point at which this turned into a discussion about RAII or whatever a GC is in 1990's books' definitions. And why would an arena not be manual memory management if I make explicit allocations that make explicit use of such arena, and I free the arena on a suitable occasion? I'm even likely to write the arena myself, but not necessarily.

I have this simple and (in my mind) very useful equation of manual memory management ~ writing code to manage memory. Conversely, GC ~ using an external runtime (such as that in JRE) that helps you to avoid writing any memory management code at the cost of giving up control. Ok, let's lose a sentence about ARC, I don't care if you name it GC or not, and I don't use it.

I'm not interested in other pointless taxonomic discussions. Whatever, man.

Re:Nim Community Survey 2019 Results by pjmlp on Tuesday February 25, 2020 @02:27AM (#22411467)
Because many languages with GC do offer the necessary tooling for doing low level memory management if one so desires, while still enjoying some safety.

Naturally the anti-GC crowd rather switches to their error prone C code instead.

Thankfully that is not where the industry is going, eventually looms will be the dominating force, one generation at a time.