3 ms·
I had the impression Rust tries to get memory safety without the need/overhead of GC.
by k__ 11y ago
I had the impression Rust tries to get memory safety without the need/overhead of GC.
- openasocket 11y agoI don't know about the borrowing system, but I believe there are several Lisps that avoid mark-sweep garbage collection. NewLisp is one such example, though I think they sidestep the issue by copying everything by default and using efficient allocation/deallocation.
- cheepin 11y agoMemory safety is compile-time guaranteed except in unsafe blocks. It's a little less strong than your impression. Memory absolutely can be a problem, but instead of looking over the entire program to find it, you know the problem comes from a marked unsafe block.