News for hackers. Stuff that matters.
Re:Goodbye to the C++ Implementation of Zig by pverghese on Thursday December 08, 2022 @06:54PM (#33915535)
You just need to link in boehm c implementation and use that as the allocator just like chooosing any other allocator in zig. That's how easy it is.
Re:Goodbye to the C++ Implementation of Zig by Arnavion on Thursday December 08, 2022 @07:29PM (#33915857)
They're saying the lack of GC is an advantage over golang, not that it's a deficiency.

Or if you're suggesting a GC to solve the memory unsafety, a GC only solves leaks and doesn't do anything for use-after-free or simultaneous unexpected mutations.

Re:Goodbye to the C++ Implementation of Zig by pverghese on Thursday December 08, 2022 @08:38PM (#33916296)
I'm saying you have the option to use a gc or not. It's as simple as changing the allocator you use