News for hackers. Stuff that matters.
Re:The V Programming Language is open source by mhh__ on Saturday June 22, 2019 @06:12PM (#20251982)
You shouldn't be manually allocating memory anywhere if you malloc and free. I feel quite strongly about the use of C in modern systems code: The "C" way of doing things can often be very unsafe or at least prone to being unsafe (No fault of the programmer, but if you don't provide RAII and things like that by default it becomes too easy to double free or leave bounds unchecked)

A kernel doesn't really need a garbage collector, but keep in mind that some modern GCs can literally be tuned to have ms pause times on absolutely enormous heaps which given that reference counting can have unbounded pause times too can make them an enticing option.

The real reason to avoid garbage collection is typically memory usage in my experience

Re:The V Programming Language is open source by gbear605 on Saturday June 22, 2019 @08:31PM (#20252528)
Yeah, I was using “manually allocating” as a synonym for malloc and free, but they are actually different things.