mö.js - explaining js vm in js
summary
Shows that core VM techniques can be implemented and inspected in JavaScript: a browser-based heap inspector annotates CodeMirror with inline caches and disassembly extracted from V8 heap typed arrays; a pure-JS tracing JIT implements trace-to-JavaScript code generation; and a Node module called meldor uses LLVM bindings to compile traces to native code, reducing a demo from ~72ms to ~32ms. The tools also allow reading and overwriting V8 heap bytes (which can trigger SIGTRAP), and the speaker promises to release the source.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 0:50toys
- 1:15performance
- 2:46plan A
- 3:19plan B
- 5:46plan Z
- 8:02code space
- 13:09tracing
- 15:50assembly
- 17:50code
- 18:33translator
- 19:44checkin
- 20:10conditionals
- 20:30melting








