Hacker News new | ask | show | jobs
by afavour 18 days ago
> As processors and memory get faster, garbage collection only becomes more attractive, while the borrow checker remains a PITA that gets in the way of plenty of sensible architectures.

I’d counter with: as LLM driven coding becomes more and more common the PITA borrow checker is something individual developers interact with less than less. Garbage collection looks more and more like a waste when an LLM can examine memory allocations before the app is even built.

2 comments

Maybe, but whatever workarounds or compromises the LLM has to settle on to satisfy the borrow checker will live in the code forever, while garbage collection can continue to get faster in the same executable.
Rust code tend to be "better" because those concerns forces the architecture upfront and guaranteed that nothing breaks later on.
Eh. In my experience any long-running Rust project will go through a lot of refactors, often driven by borrow checker issues. The only bright spot is that the compiler makes them relatively easy and safe. But it would be better not to have to do them in the first place if your architecture is already solid, just not in a way that the borrow checker understands.
The same arguments could often apply to Zig with 100% up-front static allocation (like TigerBeetle uses).
If you have 100% upfront static allocation, the borrow checker is satisfied.