4 ms·
It could be done using WebAssembly. But AFAIK all existing Common Lisp implementations want to manipulate the stack in ways that WASM disallows.
by rini17 7y ago
It could be done using WebAssembly. But AFAIK all existing Common Lisp implementations want to manipulate the stack in ways that WASM disallows.
- register 7y agoCan you be more specific about the peculiar way in which CL manipulates the stack? Where to find more details about CL internals?
- rwallace 7y agoIn CL, if you catch an exception, you have the option of trying to fix the problem and then letting the code continue from where it left off. This is only moderately difficult to implement in machine code, but somewhere between problematic and impossible on a high level platform that has already implemented exceptions by stack unwinding.
- pjmlp 7y agoThere is schism if you are into Schemes, but it does rely on experimental support for tail calls and reference types. https://github.com/google/schism https://github.com/google/schism https://www.youtube.com/watch?v=V7IxiMjKWZM https://www.youtube.com/watch?v=V7IxiMjKWZM
- tachyonbeam 7y agoYou mean call/cc type of manipulations?