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

  • Posted 2 hours ago by softwarewright
  • 1 points
https://softwarewrighter.github.io/microgpt-mlpl/
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 with math equations.

0 comments