Upgrade to Pro — share decks privately, control downloads, hide ads and more …

BKK.JS #23 - Intro to WASM

BKK.JS #23 - Intro to WASM

Karn Wong

July 12, 2025

Transcript

19 slides
  1. Karn Wong Loves optimization Has too much fun cranking out

    benchmarks AWS Community Builder & HashiCorp Ambassador Blog & Portfolio karnwong.me Say hi at Bluesky @karnwong.me Independent Consultant
  2. Can be embedded as FFI Great for multi-platform apps* *Google

    does it: https://web.dev/case-studies/earth-webassembly Core Logic in WASM Swift Kotlin Go Rust Python Frontend
  3. Can be packaged into a container image Either directly or

    as native WASM image* *Ex. WasmEdge container runtime
  4. Binary vs Container Size arch binary_size_kb image_size_kb linux/amd64 477 8810

    wasm 100 150 Binary size difference: 377% Container size difference: 5773% https://karnwong.me/posts/2025/03/wasm-deployment-benchmark/
  5. WASM is great for following scenarios 1. Multi-platform apps -

    because core logic can be abstracted away as wasm, reducing time to re- implement in target languages 2. A small function is required, but is too hard to implement in javascript This function is easier to implement in another language, but it’s not worth standing up a dedicated api

More Decks by Karn Wong

Other Decks in Technology