~/talk

rustc in userland

Talkat Strange Loop 2015 · 2015-09-24..09-26· [rust]
links:none on file
slides:none on file

Claim: a rustc install exposes rustc internals in userland so user code can parse, transform and emit objects. Practicals: using nightly feature gates, the rust LLVM bindings and LLVM via rust bindings to drive codegen and linking, or the rustc driver hacks. Built examples: a naive brainfuck→x86 codegen and interpreter that emits object files (30,000‑byte tape in BSS), which runs real tests but needs a specific nightly rustc and accepts fragility around internal API and platform assumptions.

AI-written summary · about

  1. 0:00richo who is this guy
  2. 1:30Whyfor we're here
  3. 2:26The tiniest rust compiler
  4. 3:45Under the hood
  5. 4:25and why do I want one?
  6. 7:11Assembly
  7. 7:22Linkage
  8. 9:04Quick Wins brainfuck
  9. 9:51Naive Interpreter
  10. 15:32Naive Compiler Real like.. actual native code
  11. 16:17First step, fixing codegen
  12. 17:24clang
  13. 17:42LLVM Low Level Virtual Machine
  14. 19:19Aside: goddamit rust Why you ruin my talk in this way
  15. 21:30Ok but like building things
  16. 24:34Cheap thrills
  17. 25:31Let's build a thing!
  18. 26:03Pattern match like a champ
  19. 28:43POW! Data
  20. 29:04Conclusions
  21. 30:00neat ideas going forward
  22. 31:42Questions?
~/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.