|
|
|
|
|
by dzheng
2732 days ago
|
|
Could you please elaborate on what exactly enables stack allocation of intermediate values? Is it a direct result of the semantics of delimited continuations? (perhaps because closures are passed as parameters and don't capture variables) Or is it enabled via staging or optimizations? |
|
I doubt it's better than just allocating your own stack on the heap, especially when you have something like a differential equation solver with millions of statements, but it's still a neat trick.