Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Multi-value results are great for prospective Common Lisp runtimes.


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.


I mean yes you can compile CL into Turing machine tape too just that it's not terribly practical.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: