Re:Why are my Go executable files so large?
by pcwalton on Sunday December 29, 2019 @04:59PM
(#21908845)
What you describe is a non-problem: you can trivially spill upvars to the stack on-demand, as most compilers do, while keeping formal parameters in registers. Java needs upvars to be final because it doesn't have the concept of "reference to local variable", but that's just a limitation of the JVM, and one easily solved in other runtimes that very much can pass arguments in registers (e.g. .NET).
[ Parent
| on HN ]
Re:Why are my Go executable files so large?
by tjalfi on Sunday December 29, 2019 @08:10PM
(#21909911)
The Go developers have considered changing to a register-based calling convention[0][1].
I found these tickets a few weeks ago and they explained why the Go developers haven't yet made this change.