Illustration of a typed state machine with phantom markers.

Encoding State Transitions with Phantom Types for Safety

A deep dive into using phantom types to model state machines in Rust, showing how compile‑time checks eliminate invalid transitions.

May 19, 2026 · 7 min · 1448 words · martinuke0
Illustration of abstract effect bubbles flowing into a handler container.

Decoupling Program Logic with Algebraic Effects and Handlers

Algebraic effects and handlers provide a principled way to decouple program logic from effectful operations, improving modularity and testability.

May 17, 2026 · 7 min · 1471 words · martinuke0
Feedback