~/talk

Building Languages Using Kotlin

Talkat KotlinConf 2017 · 2017-11-02..11-03· [kotlin, compilers-and-language-design]
links:none on file
slides:none on file

Claim: Kotlin plus ANTLR and concise language features let a single engineer build a parser, model, validator, interpreter and a simple editor in about ≈1000 lines of code. Uses ANTLR for lexer/parser, Kotlin data classes and extension functions for mapping and tree validation, ASM for JVM bytecode and a small KLLVM layer for native code. Notes: interpreter is simplest, JVM compiler is 2–3× harder, LLVM about 50% more, and a simulator + editor (with autocomplete/scoping work) materially improves usability.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50Agenda
  3. 1:52Why should we build languages
  4. 3:43Domainspecific languages
  5. 5:20Communication with domain experts
  6. 6:32Building a generalpurpose language
  7. 7:58The generalpurpose language
  8. 8:37The grammar
  9. 10:09Angular
  10. 12:06Parser
  11. 13:16Data Classes
  12. 15:30Operations Mapping
  13. 15:48Binary Operations
  14. 17:47Model
  15. 19:04InProcess
  16. 24:55Interpreter
  17. 27:03Evaluation
  18. 29:24JVM Compiler
  19. 30:30Multiplication
  20. 31:06LLVM Compiler
  21. 32:05Float Division
  22. 32:59Summary
  23. 34:35Editor
  24. 36:34Simulator
  25. 37:30Conclusion
  26. 38:46Conclusions
~/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.