~/talk

How to create a new JVM language

Talkat Devoxx US 2017 · 2017-03-21..03-23· [compilers-and-language-design, java]
slides:none on file

Creates a tiny JVM language that parses expressions with an ANTLR lexer/parser, builds a Truffle AST, and runs on the Truffle+Graal runtime inside HotSpot. The demo supports two numeric types (long and BigDecimal), specializes fast long arithmetic and automatically rewrites to a BigDecimal fallback on overflow or exceptions. Adds a simple async arrow implemented with CompletableFuture, debugs with readable node toString, and successfully evaluates expressions and gets optimized at runtime.

AI-written summary · about

  1. 0:00Introduction
  2. 0:14About Oleg
  3. 1:40Tools
  4. 4:29Why
  5. 5:08Tradeoffs
  6. 5:49Mondrian
  7. 8:11Creating a language
  8. 10:06Lexing
  9. 11:34Compiler
  10. 12:30Process
  11. 14:11Your goal
  12. 14:42Solving is expensive
  13. 15:46Writing a language
  14. 16:21GRAIL
  15. 18:08Truffle
  16. 18:59Truffle ecosystem
  17. 20:10Simple language
  18. 21:44Mirroring
  19. 21:54Presentation Load
  20. 22:34IntelliJ IDEA
  21. 25:19Mathematical operators
  22. 26:27Commonline utility
  23. 27:39Mathbased listener
  24. 31:27Main class
  25. 33:18Tree traversal
  26. 34:39Notes
  27. 35:58Types
  28. 36:54Language Context
  29. 37:39Long Notes
  30. 38:30Big Decimal Notes
  31. 39:04Running Example
  32. 39:31Implementing Operations
  33. 42:14Division
  34. 43:31Calculator
  35. 46:53Divide
  36. 47:08Arithmetic Exception
  37. 52:04Concurrency
~/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.