cd /news/machine-learning/show-hn-karpathy-s-microgpt-in-rust-… · home topics machine-learning article
[ARTICLE · art-138370] src=softwarewrighter.github.io ↗ pub= topic=machine-learning verified=true sentiment=↑ positive

Show HN: Karpathy's microgpt in Rust and an array language

A developer ported Andrej Karpathy's microgpt Python code into Rust and into an array programming language called sw-MLPL, presenting the work as a Show HN post. The sw-MLPL version is more compact than both the Python and Rust implementations, and one example runs faster than the Rust port, according to the developer. The author says the exercise is dogfooding the language and has prompted planned improvements to ergonomics, readability, and speed, with literate programming explanations included at the linked code.

read1 min views2 publishedSep 23, 2026

A ML Study group stepped through Karpathy's python code on Colab, and we looked at a Rust version I created. I was asked to create a more readable version in my ML/array programming language.

This work is helping me with dogfooding my language. I am now adding several improvements to the language to improve ergonomics, readability, and possibly speed (one example in sw-MLPL actually runs faster than my Rust port). I was able to express the code more compactly than the Python or Rust versions.

The planned improvements will allow me to simplify many downstream demo projects that have been working around language deficiencies.

The link includes literate programming explanations of the code.

Comments URL: [https://news.ycombinator.com/item?id=49818692](https://news.ycombinator.com/item?id=49818692)

Points: 1

── more in #machine-learning 4 stories · sorted by recency
── more on @andrej karpathy 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-karpathy-s-m…] indexed:0 read:1min 2026-09-23 ·