OCaml tutorials and examples

Tutorial: 2D Rigid Body simulation

High-performance real-time rigid body simulation in under 400 lines of code.

Read more...

Tutorial: Mandelbrot Renderer

A 35-line OpenGL-based Mandelbrot renderer.

Read more...

Tutorial: Sudoku Solver

A 19-line Sudoku solver.

Read more...

Tutorial: Ray Tracer

A simple ray tracer with shadows, reflections and hierarchical spherical bounding volumes.

Read more...

Tutorial: Maze Generator

A 2D maze generator that renders on the screen using OpenGL.

Read more...

Book: OCaml for Scientists

Learn one of the world's most popular functional programming languages, with hundreds of awesome examples covering everything from simple numerical analysis to sophisticated real-time 3D visualisation using OpenGL.

This book contains over 800 color syntax-highlighted source code examples and dozens of diagrams that elucidate the power of functional programming to explain how lightning-fast and yet remarkably-simple programs can be constructed in this state-of-the-art programming language.

"Love the book!" - Joel Reymont, Wager Labs

Read more...