~/talk

Interaction with real-world JavaScript from compiled Rust

Talkat RustFest Kyiv 2017 · 2017-04-29..04-30· [rust, web-platform]
slides:none on file

Rust targets asm.js and WebAssembly and the talk demonstrates concrete interop steps: compile via LLVM/Emscripten, export functions with no_mangle and C ABI, and use no_exit_runtime to keep a module alive. A macro implements an EM_ASM macro–style bridge to embed JS strings; a binding layer registers types, boxes Rust objects as pointers for JS, and maintains a numeric handle table to avoid GC issues. A custom serializer roundtrips complex values; JSON-path is about four times slower than native JSON.parse, and the code runs in browser and Node (repo linked).

AI-written summary · about

  1. 0:00Intro
  2. 0:43JavaScript: true cross-platform target
  3. 3:59Rust (LLVM)
  4. 4:20Emscripten + Rust
  5. 9:52Exporting functions
  6. 10:45Generated code (asm.js)
  7. 11:26Optimized code (asm.js)
  8. 12:58Optimized code (WASM)
  9. 14:38Memory model
  10. 17:17Calling JavaScript
  11. 31:00_embind_register_
  12. 34:30Garbage collection
  13. 36:49Speed (2.8M JSON)
~/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.