~/talk

No free lunch: Limits of WASM as a bridge from Rust to JS

Talkat EuroRust 2022 · 2022-10-13..10-14· [rust, webassembly]
slides:none on file

A Rust language parser is compiled with wasm-bindgen and executed in Node.js to test the bridge: CPU-bound Rust can be up to 50× faster, but practical limits appear — panics become obfuscated runtime errors, stdout/stderr and panic unwinding are lost without ad hoc JS shims, many structs (vectors, non-C enums, lifetimes, String ownership) refuse automatic serialization, and WASI I/O gaps remain; tsify and serde mitigate typing but add macros, unsafe glue, and fragility.

AI-written summary · about

  1. 0:00Start
  2. 1:42Establishing expectations
  3. 3:29Serialization: Strings (1/2)
  4. 5:05Serialization: Lifetime (4/4)
  5. 10:12Serialization: Enums (ADTs)
~/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.