~/talk

Hand-crafting WebAssembly

Talkat JSConf EU 2018 · on Saturday, 2018-06-02· [webassembly, web-platform]
name:Emil Bay
github:emilbayes
slides:none on file

Shows how to write WAT (WebAssembly Text-format) by hand, compile with wat-to-wasm and wrap with what.js, and converts real algorithms—distance, vector diff, crypto primitives—into explicit memory and instruction sequences. Claims hand-written WASM runs often under an order of magnitude slower than C, reports typical JS→WASM wins of about 20–30%, explains 32-bit linear memory (65 KB pages) and explicit type conversions, and demonstrates Sodium Universal production code (thousands of lines, ~2,000 downloads/week) plus a macro pre-parser that makes dense WASM manageable.

AI-written summary · about

  1. 0:00Start
  2. 8:30Modules are the basic unit
  3. 15:10Distance between points
  4. 18:36Distance between vectors arrays
  5. 18:51Linear memory and array input
  6. 23:19Loading bytes
  7. 24:17Loops and Branching
  8. 26:23Sneak peek
~/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.