What to Use Today for WebAssembly?
summary
Compares languages that compile to WebAssembly—C, Rust, Go, and AssemblyScript—by implementing benchmarks like Gaussian blur, thresholding, and quicksort to measure execution speed and coding convenience. Notes earlier results where Go-compiled WASM performed poorly versus C/C++ and even single-threaded JavaScript, and re-evaluates choices now that LLVM support and new WASM-targeted languages have appeared. Provides practical guidance on which language to choose for small high-performance WebAssembly modules.
AI-written summary · about
chapters (33)
- 0:00Introduction
- 1:52About me
- 2:32Why use WebAssembly
- 4:00What is WebAssembly
- 6:26WebAssembly languages
- 7:10Languages compared
- 8:12Performance method
- 10:28Recursion test
- 12:59Recursion results
- 13:20Rust test
- 14:24Rust results
- 15:07Go test
- 16:32Go results
- 17:38Go binary size
- 18:41TinyGo solution
- 19:45Recursion summary
- 21:52Quick sort test
- 22:59Quick sort in C
- 24:02C performance issues
- 25:07C wrapper
- 26:10Quick sort in Rust
- 27:42Quick sort in Go
- 29:50Go array optimization
- 31:15Convolution filter test
- 32:18C convolution results
- 32:59Rust convolution results
- 33:20Go convolution results
- 34:27Video processing test
- 35:49Video processing results
- 36:36Final ranking
- 37:41Tool recommendations
- 38:43Pros and cons
- 41:17Q&A








