← Tech Stack

WebAssembly

A compact binary format that browsers run at close to native speed, compiled from languages like Rust, C, and C++.

Official site ↗

WebAssembly lets code written in a systems language run inside a web page. The browser loads it next to the usual JavaScript, sandboxes it the same way, and runs it much faster than an interpreter would.

The ferry-demo map uses it this way. The whole app is Rust compiled to WebAssembly: camera math, tile decoding, label placement, and the code that feeds the GPU. JavaScript is only the thin layer that starts it.