frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Microcrad – Micrograd Reimplemented in C

https://github.com/oraziorillo/microcrad
2•oraziorillo•1h ago

Comments

oraziorillo•1h ago
Hey HN, I'm Orazio. I built microcrad (with a 'c'), a tiny scalar-valued automatic differentiation engine, with a small multi-layer perceptron implementation on top. It's reimplementation of Andrej Karpathy's micrograd in C. For me, this was a learning project to revisit backpropagation from first principles, with the additional difficulties that come with programming in C.

The basic idea is the same as micrograd: each number is a `Value` node in a computation graph, ops connect nodes, and the `backward` function topologically sorts the graph before applying the chain rule in reverse. The C-specific parts are memory management and two simple data structures I needed to implement backprop: sets and vectors.

The source code is about 1,350 lines, MIT licensed, and well documented. Dependencies are just the standard library and libm. In addition, the repo contains two examples to showcase how the engine works: a toy regression and an MNIST task.

What this is not: a framework to build and train neural networks in production. Being scalar-valued makes it slow, and it wasn't built for numerical robustness or large datasets. There's no commercial aim here; it's a learning project.

If you read through it, I'd like to hear thoughts, both on the ML engineering aspect and on anything that reads as un-idiomatic C.

ctx, a hackable desktop workbench for coding agents, is now open source

https://ctx.rs/blog/open-sourcing-ctx/
2•luca-ctx•58s ago•1 comments

Seven Perfect Shuffles Randomize a Deck of Cards. But How Many Sloppy Ones?

https://www.quantamagazine.org/seven-perfect-shuffles-randomize-a-deck-of-cards-but-how-many-slop...
1•Tomte•1m ago•0 comments

GCC 17 Lands Initial Infrastructure For C++29

https://www.phoronix.com/news/GCC-17-std-CPP29-Experimental
1•rbanffy•3m ago•0 comments

Is web app discovery still a broken problem?

https://unstore.io
1•s_a_r_a•4m ago•0 comments

Show HN: Ratchet – CDI-native persistent job scheduler for Jakarta EE

https://github.com/ratchet-run/ratchet
1•jputney•4m ago•0 comments

UI IP Toolkit: I built a visual front end asset library with UI snippets

https://ui-ip-toolkit.vercel.app/
1•nexoproyectos•4m ago•0 comments

fff

https://github.com/dmtrKovalenko/fff
2•tosh•6m ago•0 comments

Uber, Lyft riders often see different fares for the same trip

https://ktla.com/news/uber-lyft-riders-different-fares-same-trip/
1•lxm•7m ago•0 comments

It's a Mother*& Ing Website

https://rnotte.art/its-a-mothering-website/
1•speckx•7m ago•0 comments

Agents-Collab.md – A live handoff protocol for multi-agent projects

https://github.com/Rlealbarili/Agents-Collab.md
1•Rlealbarili•7m ago•0 comments

Ekam – a shared canvas where 576 strangers each hand-paint one tile

https://ekam.ink
2•premaanshvyas•7m ago•0 comments

Improving token efficiency in GitHub Copilot

https://code.visualstudio.com/blogs/2026/06/17/improving-token-efficiency-in-github-copilot
2•soheilpro•8m ago•1 comments

I Analyzed All 30,093,975,536 Battleship Boards So You Don't Have to [video]

https://www.youtube.com/watch?v=ZBdajiTz48k
1•tantalor•8m ago•0 comments

Renewables shield Spanish consumers from elevated gas prices [pdf]

https://ember-energy.org/app/uploads/2026/06/Report-PDF-Renewables-shield-Spanish-consumers-from-...
2•leonidasrup•8m ago•0 comments

Firefox Roadmap and Team AMA next week

https://old.reddit.com/r/firefox/comments/1u7cyh7/introducing_the_firefox_roadmap_ama_next_week/
1•alberto-m•8m ago•0 comments

You don't know XPT files

https://kolistat.com/blog/xpt-files/
1•caerbannogwhite•9m ago•0 comments

Negative Karma

1•firatsarlar•9m ago•0 comments

Setting the temperature to zero will make an LLM deterministic?

https://www.zansara.dev/posts/2026-03-24-temp-0-llm/
1•zansara•10m ago•0 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•tobadzistsini•10m ago•1 comments

Why stdx is not on crates.io

https://kerkour.com/stdx-cratesio
9•Keyb0ardWarri0r•12m ago•1 comments

The Superpower No One Warned Me Abou

https://www.adhdwithsofia.com/blog/adhd-burnout-vs-normal-burnout-why-rest-alone-doesnt-fix-it
1•MelloS•13m ago•1 comments

ZCode

https://zcode.z.ai/en
3•chvid•15m ago•0 comments

The LCD7-Panel-LIME2: A Ready-to-Mount Linux Touch Panel Computer

https://olimex.wordpress.com/2026/06/17/introducing-the-lcd7-panel-lime2-a-ready-to-mount-linux-t...
3•jandeboevrie•16m ago•0 comments

Versioning the Harness Itself

https://blog.tacoda.dev/versioning-the-harness-itself-38ddf7abffe0
2•tacoda•17m ago•0 comments

Elon – Official Movie Trailer – The Story of Tesla – Based on a True Story[video]

https://www.youtube.com/watch?v=o-GbEHKeMM8
3•pgroverman•17m ago•1 comments

See What's Next for Firefox

https://www.firefox.com/en-US/whatsnext/
3•birdculture•18m ago•0 comments

Show HN: How to Read a Dosa Menu

https://dosadecoder.com/
2•michaeljnatkin•18m ago•0 comments

A Hidden Infrastructure: Arbuscular Mycorrhizal Fungi Networks

https://a-hidden-infrastructure.spun.earth/story
2•tinkelenberg•18m ago•0 comments

The Rape of Britain

https://world.hey.com/dhh/the-rape-of-britain-610412f8
5•Tomte•21m ago•3 comments

FP8 GEMM Optimization on AMD CDNA4 Architecture

https://rocm.blogs.amd.com/software-tools-optimization/cdna4-gemm-kernels/README.html
2•skidrow•21m ago•0 comments