~/talk

Wasocaml: a compiler from OCaml to WebAssembly

links:none on file
links:none on file
slides:none on file

Wasocaml compiles OCaml (from the Flambda stage) to WebAssembly GC and ships a working prototype runtime that uses Wasm features like structs and subtyping, funcref/externref and the exception proposal; closures are closure-converted and encoded as recursive Wasm types, arrays and small ints map to Wasm arrays/32-bit refs, and a simpler fallback treats everything as shifted ints in arrays. The prototype has no full standard library and no browser-ready build yet, runs microbenchmarks about 2x slower than native but gives predictable performance.

AI-written summary · about

  1. 0:00WasOcaml introduction
  2. 1:07Compile OCaml to Wasm
  3. 2:56GC language challenges
  4. 4:43WMGC memory model
  5. 6:09OCaml compiler chain
  6. 8:17F Lambda representation
  7. 10:08Type representation and subtyping in WebAssembly
  8. 13:21OCaml modules handling
  9. 15:30Naive type encoding
  10. 16:15Encoding closures in WebAssembly
  11. 17:22Recursive types casting
  12. 19:08OCaml exceptions
  13. 20:14Compiler validation
  14. 21:38Current WasOcaml limits
  15. 23:46Performance benchmarks
  16. 25:55JS and web interaction
  17. 28:00Q&A exceptions
~/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.