News for hackers. Stuff that matters.
Re:Out of the Tar Pit (2006) [pdf] by kilgnad on Tuesday February 28, 2023 @12:29PM (#34972126)
That's the point. This hand waving allows the user to build more complex systems.

The cost is efficiency but make no mistake not thinking about the heap allows people to build much more complex programs. It's a trade off between complexity and efficiency.

Re:Out of the Tar Pit (2006) [pdf] by cubefox on Tuesday February 28, 2023 @01:21PM (#34972816)
Then could it reversely be argued that not worrying about the stack (tail recursion) allows people to build more complex programs? Probably depends on which is more worrisome on average, heap or stack.
Re:Out of the Tar Pit (2006) [pdf] by akimball on Tuesday February 28, 2023 @01:39PM (#34973056)
Au contraire. It is a tradeoff between application programmer effort and compiler writer effort. Amortization infers it is better to have an extremely advanced IR optimizer.
Re:Out of the Tar Pit (2006) [pdf] by kilgnad on Tuesday February 28, 2023 @03:04PM (#34974078)
Then why do zero cost abstractions exist? Languages like rust and C++ make the trade off on the application side rather then the compiler side.