~/talk

A native interpreter for Elm

Talkat Oslo Elm Day 2019 · on Saturday, 2019-02-16· [compilers-and-language-design]
links:none on file
slides:none on file

Built a native Haskell interpreter that runs Elm programs so a platform can spin up 100k apps and load state from disk, run update, and store it back. It reuses most of the Elm compiler but replaces the optimized AST with a custom AST and interprets it. Major hurdles are JS semantics baked into the standard library and integer-as-double edge cases, so the implementation removes no floats and reimplements native-library behavior for determinism.

AI-written summary · about

  1. 0:00Introduction to native Elm interpreter
  2. 1:04Elm compiler workflow overview
  3. 3:58Changes for blockchain smart contracts
  4. 5:23Building a simple Elm interpreter
  5. 8:09Adding variables and functions
  6. 10:41Pattern matching and case expressions
  7. 11:43Custom types and records
  8. 12:46Handling negation and edge cases
  9. 13:29Challenges with JavaScript compatibility
  10. 14:58Runtime errors and debugging tools
  11. 15:41Recursion and closures implementation
  12. 16:23Open-sourcing the interpreter debate
  13. 17:29Future of Elm in new domains
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.