Practical OCaml
Sign in Subscribe
Parsing with Binary String Pattern Matching
pattern matching Featured

Parsing with Binary String Pattern Matching

If you've ever had to parse anything, (anything really), I want to show you a glimpse of what it could look like when you parse it binary string pattern matching in OCaml like you'd do on Erlang, Elixir, or Gleam.
31 Dec 2023 8 min read
unix Featured

Unix Module Considered Harmful

Recently I was working on a socket pool for a new scheduler for OCaml 5 (multicore baby!) and I ran into a strange issue. This new socket pool works by spinning up a series of lightweight processes to accept connections. Every one of those will wait for a client to
29 Nov 2023 5 min read
How to build type-safe State Machines using type-state
ocaml Featured

How to build type-safe State Machines using type-state

Tired of writing state machines full of invalid transitions? Type-state may be what you're looking for. In this issue of Practical OCaml we show you how to use it to build type-safe state machines.
29 Aug 2023 6 min read
domain modeling Featured

A quick guide to GADTs and why you ain't gonna need them

Ever wanted to use a GADT but did not know if you really needed them? You probably don't. And here's why.
28 Aug 2023 7 min read
ocaml

How I explore domain problems cheaply and fast with OCaml: modeling a web router

You've heard of Domain-Driven Design, now buckle up for Type-Driven Domain..wait. Typed Domains Driving...nevermind. We're gonna use Only Types to Understand our Domain Problems Very Fast! 🚀
24 Aug 2023 9 min read
ocaml

{ hello = `world; }

And here we are! After writing my share of ReScript at Practical ReScript, I figured I'd start a blog for OCaml that would help consolidate my experiences with it into some Practical advice, that you can use to start new projects, to contribute to existing ones, hell even
23 Aug 2023 1 min read
Page 1 of 1
Practical OCaml © 2025
  • Practical ReScript
  • Practical Rust
  • Abstract Machines
  • @leostera
Powered by Ghost