top | item 47203703

(no title)

subset | 19 hours ago

I had good fun transliterating it to Rust as a learning experience (https://github.com/stochastical/microgpt-rs). The trickiest part was working out how to represent the autograd graph data structure with Rust types. I'm finalising some small tweaks to make it run in the browser via WebAssmebly and then compile it up for my blog :) Andrej's code is really quite poetic, I love how much it packs into such a concise program

discuss

order

amelius|8 hours ago

Storing the partial derivatives into the weights structure is quite the hack, to be honest. But everybody seems to do it like that.

hei-lima|13 hours ago

Great work! Might do it too in some other language...

thomasmg|4 hours ago

I got a convertion to Java. It worked (at least I think...) in the first try.

Then I want to convert this to my own programming language (which traspiles to C). I like those tiny projects very much!

pmarreck|11 hours ago

Zig, here.

Anything but Python