Dev open-sources Usul, a C++ NN library that lets you express models as plain math

Exact-Contact-3837 · reddit · 2026-11-10

A Reddit developer released Usul, a C++ neural network library built around letting data scientists define models directly as math, without heavy frameworks like TensorFlow. It ships with built-in tensor support, auto-grad, back-propagation, and decent speed. The author stresses it isn't vibe-coded and politely bans vibecoded PRs.

The backstory: he taught himself numerical/analytical descent and backprop by hand on paper, solved XOR at scalar level, then learned matrix calculus and hand-wrote the XOR problem in matrix syntax with xtensor, manually backpropagating errors. He also frames the project as a detox from LLM dependency — instant LLM answers had started to erode his ability to absorb information. Repo and contribution ideas are on GitHub.

Original post →

More from Research

Research channel →