News for hackers. Stuff that matters.
Re:The Smallest Brain You Can Build: A Perceptron in Python by utopiah on Monday June 08, 2026 @11:31AM (#48446686)
One day I'll write about my 1-liner physics engine...

    let gravity = setInterval( _ => { if (projectile.object3D.position.y > 0) projectile.object3D.position.y \*= .99 }, 100)
Jokes aside I find that providing ridiculously short toy examples that provide the very limited foundation of a concept are extremely empowering in pedagogy. You "get" it right away because it "fits" in your mind, then you dare tinker with it and quickly see how limited it is, then get excited again. It's a powerful trick to learn more IMHO.
Re:The Smallest Brain You Can Build: A Perceptron in Python by DevarshRanpara on Monday June 08, 2026 @12:55PM (#48447843)
Yeah, I will try to make more of these, I like to lean things from core, and I like to keep everything as simple as possible.