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.
[ Parent
| on HN ]
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.
Isn't that the point?