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

I made some seemingly similar design choices in TXR Lisp (not knowing anything about Lua or its internals).

- register based VM with 32 bit instruction words holding 6 bit opcodes.

- closures that start on the stack and are moved to the heap.

- single pass compiler with no SSA, Lisp straight to code - but with additional optimization, informed by control and data flow analysis, done on the VM assembly code.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: