frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Andrej Karpathy's microgpt.py to C99 microgpt.c – 4,600x faster

https://github.com/enjector/microgpt-c
34•Ajay__soni•1h ago
Andrej Karpathy showed us the GPT algorithm. I wanted to see the hardware limit.

The Punchline: I made it go 4,600x faster in pure C code, no dependencies and using a compiler with SIMD auto-vectorisation!!!

Andrej recently released microgpt.py - a brilliant, atomic look at the core of a GPT. As a low-latency developer, I couldn't resist seeing how fast it could go when you get closer to the metal.

So just for funzies, I spent a few hours building microgpt-c, a zero-dependency and pure C99 implementation featuring:

- 4,600x Faster training vs the Python reference (Tested on MacBook Pro M2 Max). On Windows, it is 2,300x faster. - SIMD Auto-vectorisation for high-speed matrix operations. - INT8 Quantisation (reducing weight storage by ~8x). Training is slightly slower, but the storage reduction is significant.

- Zero Dependencies - just pure logic.

The amalgamation image below is just for fun (and to show off the density!), but the GitHub repo contains the fully commented, structured code for anyone who wants to play with on-device AI.

I have started to build something useful, like a simple C code static analyser - I will do a follow-up post.

Everything else is just efficiency... but efficiency is where the magic happens

Comments

idiotsecant•11m ago
I get that the LLM wrote the code but can you at least write the description? I am getting second hand halitosis of the soul reading all these obvious slop project posts. Use your human mind to write human words to tell us about why this is important to you.

Show HN: Andrej Karpathy's microgpt.py to C99 microgpt.c – 4,600x faster

https://github.com/enjector/microgpt-c
36•Ajay__soni•1h ago•1 comments

Show HN: Scanned 1927-1945 Daily USFS Work Diary

https://forestrydiary.com/
45•dogline•2h ago•7 comments

Show HN: Free Alternative to Wispr Flow, Superwhisper, and Monologue

https://github.com/zachlatta/freeflow
91•zachlatta•4h ago•44 comments

Show HN: Jemini – Gemini for the Epstein Files

https://jmail.world/jemini
259•dvrp•19h ago•48 comments

Show HN: 2D Coulomb Gas Simulator

https://simonhalvdansson.github.io/2D-Coulomb-Gas-Tools/index_gpu.html
29•swesnow•6h ago•5 comments

Show HN: Maths, CS and AI Compendium

https://github.com/HenryNdubuaku/maths-cs-ai-compendium
54•HenryNdubuaku•10h ago•14 comments

Show HN: Simple org-mode web adapter

https://github.com/SpaceTurth/Org-Web-Adapter
52•turth•9h ago•5 comments

Show HN: WowAI.pet – Generate cinematic videos from blurry pet photos

https://wowai.pet/
2•zy5a59•2h ago•0 comments

Show HN: Nerve: Stitches all your data sources into one mega-API

https://playground.get-nerve.com/
11•mprast•2d ago•2 comments

Show HN: Wildex – we built Pokémon Go for real wildlife

https://apps.apple.com/us/app/wildex-identify-plants-animals/id6748092158
59•AnujNayyar•4h ago•44 comments

Show HN: ZIT: Zooplankton Image Tool for 2d rendering of biological locomotion

https://github.com/juleshenry/zooplankton-image-tool
2•juleshenry•4h ago•0 comments

Show HN: Vocalinux // 100% offline voice typing for Linux

https://vocalinux.com/
3•jatinkrmalik•4h ago•0 comments

Show HN: Scene It SF – Hollywood thinks San Francisco is 3 blocks wide

2•distribution14•4h ago•0 comments

Show HN: Your binary is no longer safe

https://reorchestrate.com/posts/your-binary-is-no-longer-safe/
3•seddonm1•4h ago•0 comments

Show HN: Scrappy – Open-source browser scraper written in Go

https://github.com/sunergos-ro/scrappy
6•RaulOnRails•5h ago•1 comments

Show HN: Microgpt is a GPT you can visualize in the browser

https://microgpt.boratto.ca
268•b44•1d ago•25 comments

Show HN: VOOG – Moog-style polyphonic synthesizer in Python with tkinter GUI

https://github.com/gpasquero/voog
92•gpasquero•1d ago•39 comments

Show HN: Telescope now queries Kubernetes logs directly

https://github.com/iamtelescope/telescope/releases/tag/v0.0.24
6•r0b3r4•5h ago•0 comments

Show HN: ViewLint – Lint UI, Not Code

https://github.com/EvanZhouDev/viewlint
2•EvanZhouDev•5h ago•0 comments

Show HN: Pangolin: Open-source identity-based VPN (Twingate/Zscaler alternative)

https://github.com/fosrl/pangolin
74•miloschwartz•1d ago•24 comments

Show HN: JeffTube

https://jmail.world/jefftube
27•dvrp•21h ago•3 comments

Show HN: Knock-Knock.net – Visualizing the bots knocking on my server's door

https://knock-knock.net
215•djkurlander•1d ago•89 comments

Show HN: GEDB – A pure-Go embedded database

5•ReturnErr•11h ago•0 comments

Show HN: Rollin – Wheelchair accessibility scores for 56K+ locations (free API)

https://joinrollin.com/
4•thattechiedude•7h ago•4 comments

Show HN: Interactive Chord Finder, Free Piano Scale and Chord Explorer

https://interactivechordfinder.com
2•magikMaker•7h ago•1 comments

Show HN: Nothing as a Service – Premium nothingness for minimalists

https://euphonious-blancmange-24c5b0.netlify.app/
2•Nabil_Bellaali•7h ago•1 comments

Show HN: Lightwave – Real-time notes app, 3.5 years of hand-rolled JavaScript

46•jv22222•1d ago•29 comments

Show HN: AsdPrompt – Vimium-style keyboard navigation for AI chat responses

https://asdprompt.com/
2•contrary2belief•8h ago•0 comments

Show HN: Claude-engram – Brain-inspired persistent memory, runs inside Claude.ai

https://github.com/mlapeter/claude-engram
5•mlapeter•8h ago•2 comments

Show HN: Tanin – TUI Noise Generator

https://github.com/AnonMiraj/Tanin
5•anongazelle•18h ago•2 comments