May 15, 2026

Rust, math, and a comment-section meltdown

Building ML framework with Rust and Category Theory

A math-heavy Rust AI book lands — and the comments instantly split into hype and eye-rolls

TLDR: A new draft book tries to explain small AI systems using heavy-duty math and Rust code, aiming to make abstract ideas feel practical. Commenters were split between curiosity and eye-rolls, with some calling it helpful structure and others saying it just sounds like normal programming dressed up in fancier language.

A new public draft called Category Theory for Tiny ML in Rust is trying to do something wildly ambitious: explain small machine-learning systems using both serious math and the Rust programming language. The authors pitch it as a practical guide, not just ivory-tower theory — a way to turn abstract ideas into code you can actually run. In plain English, they want to show how to build tiny artificial intelligence systems in a structured, disciplined way.

But the real action is in the comments, where readers immediately turned this into a classic internet showdown: genius framework or fancy relabeling? One camp was politely skeptical. A mathematically trained commenter basically sighed that category theory keeps showing up everywhere and confessed they still don’t feel it adds much, especially when machine-learning tools already work fine without it. Another reader delivered the thread’s sharpest side-eye: this all just looks like regular Rust, or honestly, regular programming with extra type safety and a fresh coat of mathematical paint.

Then there was the comedy relief. One of the first reactions wasn’t about deep theory at all — it was a plea to spell out ML as “machine learning” so nobody thinks the book is about the old ML programming language. That tiny confusion became the thread’s unofficial meme: is this cutting-edge AI, a math sermon, or a naming accident waiting to happen? In other words, the book promises elegance, but the crowd is still deciding whether it’s brilliance or just buzzwords in a tuxedo.

Key Points

  • The article introduces a public working draft book titled *Category Theory for Tiny ML in Rust*.
  • The book presents category theory as an engineering tool for building small machine-learning systems in Rust.
  • It describes a mapping from mathematical structure to software design, including Rust types, typed transformations, executable composition, and state-based training updates.
  • The draft is unfinished and open to public feedback on explanations, examples, references, terminology, and Rust code clarity.
  • The coauthors are Hamze Ghalebi, who contributes engineering and production-AI perspective, and Farzad Jafarranmani, who contributes mathematical and theoretical foundations.

Hottest takes

"expand ML to Machine Learning to avoid confusing with the programming language" — ctenb
"I sort of feel like it doesn't add much" — dauertewigkeit
"this looks to me like regular Rust, or regular programming" — oersted
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.