~/talk

Building a Node.js Mini-Interpreter & Compiler in Node.js

TalkinJapaneseat Tokyo Node Festival 2018 · 2018-11-23..11-24· [nodejs, compilers-and-language-design]
links:none on file
slides:none on file

A tiny JavaScript-like language runtime built on Node.js is implemented end-to-end: instead of writing a parser from scratch it reuses an existing parser, an interpreter evaluates programs by walking ASTs, and a compiler emits LLVM IR that is assembled into native code. The system supports numbers, strings, variables, user-defined (recursive) functions and uses a simple register-based calling model; development took a few months and about ten iterations, and demos produced correct output.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Why build a mini-interpreter
  3. 3:00Designing interpreter
  4. 6:04First interpreter demo
  5. 8:08Variables and scoping
  6. 11:51Blocks and scoping issues
  7. 13:21Moving to compiler
  8. 15:10Compiler architecture
  9. 17:20Implementing compiler
  10. 20:41Handling strings and outputs
  11. 23:13Final compiler demo
  12. 25:45Global variables in compiler
  13. 27:10Recursive function challenges
  14. 28:16Lessons learned and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.