AssemblyScript: TypeScript on Steroids Thanks to WebAssembly?
summary
AssemblyScript compiles TypeScript-like code to WebAssembly using the asc tool and a config file, producing a .wasm module plus TypeScript bindings for interop. It targets CPU-heavy workloads (big integer and bitwise operations) and shows large speedups—examples include Mandelbrot (~500ms JS → ~188ms WASM), a chess bitboard search (~15s → ~1s), and HDR Histogram (~7M ops/s → ~28M ops/s). Limitations are that generated WASM has no DOM or network access, runs synchronously with no JS garbage collector integration, and requires manual memory/GC tradeoffs.
AI-written summary · about
chapters (8)
- 0:00Start
- 8:38emscripten
- 15:55AssemblyScript is not a dynamic language
- 16:37unknown
- 19:19PERFORMANCE
- 21:52number
- 22:45BITWISE FTW
- 23:19JAVASCRIPT
related talks
44mWebAssembly and the Web in TypeScript
22mThe state of WebAssembly
32mWebAssembly for Front End Devs
25mWebAssembly: Binary in Plain English
26mWebAssembly as cross-platform architecture?!
40mWebAssembly for Web Developers
42mWebAssembly? Web and Assembler? WTF!
30mWebAssembly as cross-platform architecture?!
