~/talk

Compilers

TalkinRussianat KharkivJS #5 2015 · on Saturday, 2015-11-07· [compilers-and-language-design]
links:none on file
slides:none on file

A tiny “matrix language” (scalars, row/col vectors, matrices, transpose, +, *) is specified, lexed and parsed using the Jison parser generator, and given a small runtime that implements print, addition, multiplication and transpose. The system produces both an interpreter and a straightforward compiler that emits JavaScript functions; the compiled code runs in Node or the browser, and compilation currently costs roughly 10× the raw execution time.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10Creating new languages
  3. 3:17Matrix language
  4. 4:41Matrix syntax
  5. 7:07Compiler tools
  6. 8:12Lexer rules
  7. 10:22Grammar rules
  8. 14:17BNF structure
  9. 15:19Operator grammar
  10. 16:22Expression parsing
  11. 17:25Matrix recursion
  12. 18:06Operator priorities
  13. 19:10Grammar testing
  14. 19:31Runtime environment
  15. 20:13Interpreter rules
  16. 21:39Matrix in code
  17. 22:44Writing compiler
  18. 23:46Compiler vs interpreter
  19. 25:56Compiler steps
  20. 26:38JavaScript parsers
  21. 27:01Q&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.