News for hackers. Stuff that matters.
Re:Roc rewrites the compiler in Zig by nemetroid on Tuesday February 04, 2025 @06:16PM (#42940613)
By that definition, a C++ program with heavy usage of std::shared_ptr has GC.
Re:Roc rewrites the compiler in Zig by cmrdporcupine on Tuesday February 04, 2025 @06:52PM (#42941090)
And it does. Reference counting is garbage collection. And std::shared_ptr, or Rust's Rc/Arc are basically lightweight GC runtimes inside your program.
Re:Roc rewrites the compiler in Zig by coldtea on Tuesday February 04, 2025 @06:59PM (#42941172)
Isn't that the point?
Re:Roc rewrites the compiler in Zig by nemetroid on Wednesday February 05, 2025 @07:20AM (#42947467)
I don't think it's the point of the comment I replied to, no.