Re:Nim vs Rust Benchmarks
by gameswithgo on Monday February 07, 2022 @09:47AM
(#30245534)
It could, but at the moment it puts a garbage collector in there, though there are modes where you can turn that off. I haven't used Nim in a while so I don't know what the implications of disabling GC are at the moment.
[ Parent
| on HN ]
With noting that the GC in Nim (not "stop the world" BTW) is attached to the type. Unless you declare a type as `ref`, you're using stack allocation.
Even if you do use the GC, the compiler elides GC work if the type doesn't escape the scope.