~/talk

The Cost of Abstractions

Talkat jsday 2025 · 2025-04-07..04-08· [frontend-architecture, webassembly]
slides:none on file

Benchmarks compare plain async TypeScript, an effects library, FPTS (old and newer), and Rust (native and WASM) on a 100,000‑order workflow with 5% failures and 20 warmups, taking the minimum of four runs. TypeScript shows 3x slowdown with the effects library, 5x slowdown with the newer FPTS, while the type‑state pattern has no runtime cost. Rust native keeps abstractions nearly zero cost; Rust→WASM adds about 2x overhead but still outperforms TypeScript with heavy abstractions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Talk origin and abstractions
  3. 2:27Library order workflow example
  4. 3:32Plain async TypeScript
  5. 3:53Effect composition abstractions
  6. 5:36Type state for errors
  7. 7:20Abstraction and maintainability
  8. 9:29Cost of abstractions
  9. 11:14Benchmarking TypeScript
  10. 14:44Zero-cost abstractions in Rust
  11. 17:38Rust benchmarks
  12. 20:50Rust vs WebAssembly
  13. 22:57Abstraction space navigation
  14. 24:24Avoiding tunnel vision
  15. 25:28Context-driven solutions
~/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.