OCaml Bridge Workshop
summary
Live OCaml top-level runs in the browser via JS_of_ocaml and an SVG backend, showing concrete code: translate/rotate/scale transformations, function composition and the repeat operator to produce patterns. They generate a spiral staircase by repeating 72 rotations at 5° with scaling, a three-layer “Rangoli” from rotated rectangles, and a Sierpinski level 4 fractal; tessellations use per-tile randomness. Share links are simple base64-encoded snapshots; everything renders interactively for ~20 participants.
AI-written summary · about
chapters (16)
- 0:00Welcome
- 1:29Setting up the OCaml to JavaScript environment
- 3:20Joy library basics
- 9:15Basic shapes
- 10:38Shape transformations
- 18:47Multiple transformations
- 24:01Rotate and scale
- 34:46Repeat for patterns
- 35:28Adding colors
- 45:42Rangoli with rectangles
- 46:25Spiral staircase pattern
- 53:33Tessellation with Joy
- 1:00:07Sierpinski triangle
- 1:05:59Joy's backend
- 1:08:57OCaml features quick dive
- 1:12:50Q&A
related talks
46mOCaml for Fun & Profit: An Experience Report
31mAbstract nonsense
26mAn Invitation to OCaml
20mDemo: New View on Plasma Fractals -- From the High Point of Array Languages
21mDemo: A functional EDSL for mathematics visualization that compiles to JavaScrip...
35mBuilding a Tagless Final DSL for WebGL in Scala
32mEffective Programming in OCaml
01h 18mA Tale of Two Lambdas: A Haskeller's Journey into OCaml
