~/talk

Wasm_of_ocaml

Talkat ML 2024 · on Friday, 2024-09-06· [webassembly]
links:none on file
slides:none on file

Wasm_of_ocaml converts OCaml bytecode to WebAssembly using the WebAssembly garbage‑collection extension (available in Chrome and Firefox, Safari soon), reuses browser GC so no custom allocator is implemented, and keeps JavaScript interop by boxing/unboxing OCaml values and mapping JS classes (uses JS Map for shared structures). Benchmarks show up to 2x speedups over Js_of_ocaml, compiling the compiler itself yields ~2x faster end result, requires minimal source changes, but exceptions very slow on V8.

AI-written summary · about

  1. 0:00Wasm_of_ocaml intro
  2. 1:53WebAssembly module structure
  3. 3:45JS interoperability challenges
  4. 5:35Reference types extension
  5. 7:06Motivation for OCaml to Wasm
  6. 10:01Compiler pipeline overview
  7. 13:19Implementing primitives in OCaml
  8. 17:10JS integration strategies
  9. 19:47OCaml to JS value interaction
  10. 23:07OCaml type handling
  11. 26:59Type checking and codegen
  12. 28:08Performance benchmarks
  13. 31:43CPS transformation
  14. 33:16OCaml backend comparison
  15. 34:45Production use and future
  16. 35:30Q&A
~/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.