Skip to content

Instantly share code, notes, and snippets.

@john--kane
john--kane / microgpt.rs
Last active November 29, 2026 08:08
microgpt rs port
// Original: @karpathy
// AI generated Rust port: @john--kane
use std::{
collections::BTreeSet,
error::Error,
fs,
io::{self, Write},
process::Command,
};
const D: usize = 16;