4 ms·
One can always compile CL to CPS, then "returning" is just calling the current continuation, and then passing multiple values to the current continuation is tri
by cryptonector 1y ago
One can always compile CL to CPS, then "returning" is just calling the current continuation, and then passing multiple values to the current continuation is trivial (since that's always possible). Since WASM is single-threaded there is not concurrency risk with using closures so extensively, though one pays the full price of call/cc when implementing this way, which means that the stack becomes a heap, which is not great for performance.
- varjag 1y agoI mean yes you can compile CL into Turing machine tape too just that it's not terribly practical.