News for hackers. Stuff that matters.
Re:C/C++ vs. Rust Performance by kupopuffs on Sunday November 01, 2020 @03:28PM (#24962221)
--gc:arc. Plain reference counting with move semantic optimizations, offers a shared heap. It offers deterministic performance for hard realtime systems. Reference cycles cause memory leaks, beware. --gc:orc. Same as -gc:arc but adds a cycle collector based on "trial deletion". Unfortunately that makes its performance profile hard to reason about so it is less useful for hard realtime systems. --gc:none. No memory management strategy nor garbage collector. Allocated memory is simply never freed. You should use --gc:arc instead.

Nim offers alloc, dealloc, allocShared, deallocShared

Re:C/C++ vs. Rust Performance by svrb on Sunday November 01, 2020 @07:42PM (#24963894)
So in other words Nim does not actually offer a true compile-time memory management feature like Rust does? I'm afraid my impression of a language only decreases when I see its supporters dodge an issue like this...