~/talk

Hand-crafting WebAssembly

name:Emil Bay
github:emilbayes
slides:none on file

Shows how to handwrite WAT, compile it with the WebAssembly Binary Toolkit (wat2wasm / wabt) and bundle to JS using wat2js; a handcrafted square module compiles to ~44 bytes and runs. Reports microbenchmarks showing ~20–30% speedup over V8-optimized JavaScript for simple math but near-C speed for crypto when using i64; explains linear memory, manual pointers and page sizing, loops via br/br_if and a simple parser+macro DSL that generates readable WAT. Implements sodium-universal primitives in production.

AI-written summary · about

  1. 0:00Introduction to hand-crafted WebAssembly
  2. 2:07What is WebAssembly
  3. 8:17Why hand-write WebAssembly
  4. 10:23First WebAssembly module
  5. 23:50Distance between vectors
  6. 37:40Production use cases
  7. 39:24Macros and DSLs for WebAssembly
  8. 41:51Q&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.