raptorjit / raptorjit

RaptorJIT: A dynamic language for system programming (LuaJIT fork)
Other
839 stars 39 forks source link

Document VM bootstrap, code generation, build process #250

Open lukego opened 5 years ago

lukego commented 5 years ago

We should write down how the virtual machine is bootstrapped and built.

The VM bootstraps in a complex way including multiple "little language" code generators. This process is not currently documented and can be confusing.

RaptorJIT bootstrap is different to LuaJIT bootstrap too. We dropped the minilua interpreter, we don't require a bootstrap for an ordinary build of the master branch, and we depend on LuaJIT for when we do a full bootstrap build.

lukego commented 5 years ago

Highly relevant talk by @corsix at https://www.youtube.com/watch?v=8Q0KLTma_FA.

hippi777 commented 5 years ago

((hi there! :) sorry for the noise about the same in the other thread, ive seen that before this... :D ))