logoalt Hacker News

titzer • today at 7:46 PM • 1 reply • view on HN

Memory management is a resource issue that should be orthogonal to the logic of code. Moving away from GC is not the right direction for writing smaller, more concise, and more correct programs.

I don't think that making programs a lot more complicated because they have to prove a very specific memory management discipline is the right way to go.


Replies

jitix • today at 8:07 PM

Programming languages are just an intermediate representation of the solution, just like bytecode or assembly.

With AI we don't need expressive programming languages for humans to read and understand at line-level details. Instead, we need stronger guardrails and fewer building blocks so that AI generates consistent solutions.

GC became poplar only because it was hard for programmers to keep track of memory management in languages like C and C++. And back then I was a huge proponent of GC based languages.

This is just a step along the same path that Go introduced. Many programmers switching from other languages complain about Go's restrictive and seemingly verbose syntax but once the benefits are realized the tradeoffs become worth it.

➕ show 1 reply