Skip to main content

Scala to WebAssembly: How and Why

Picture of Rikito Taniguchi, Scala Compiler (Wasm/Native)

Rikito Taniguchi

Scala Compiler (Wasm/Native)
Jul 18, 2024|17 min read
scala and web assembly logos
Image Alt

Image Alt

Image Alt

Image Alt

1;; struct / array definition
2(type $point (struct (field $x f64) (field $y f64)))
3(type $vector (array (mut f64)))
4
5;; allocate
6(struct.new $point (f64.const 1) (f64.const 2))
7(array.new $vector (f64.const 1) (f64.const 3))

Subscribe to our newsletter and never miss an article