Zero-Cost 'Tagless Final' in Rust with GADT-style Enums

A deep dive into implementing the ’tagless initial’ pattern in Rust using enums and the never type to achieve zero-cost abstractions, demonstrated with optimized assembly output.

June 3, 2025

Abstract Methods with Auto-Inferred Arguments in Rust

Demonstrating how to define a single-argument abstract Method trait in Rust, and use a PhantomData-based hint technique to automatically infer generic types.

May 18, 2025

Simplifying Continuation-Passing Style (CPS) in Rust

In this post, we explore an advanced CPS (Continuation-Passing Style) implementation that leverages local memory pointers alongside arrow statements to declare an abstract program.

March 25, 2025