Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a very good series if you want to build it in rust. https://os.phil-opp.com/

That minesweeper game seems to only use the vga buffer and that blog series explains that tech very well.



I doubt you'd be able to fit compiled Rust into 512 bytes, though.


True, fitting a game and a boot loader into 512 bytes is very impressive. You can build pretty tiny rust binaries if you don’t link the std library though. Check this out for some tricks: https://github.com/johnthagen/min-sized-rust

That blog post explains the vga buffer quite nicely so you should also be able to use the same information when writing assembler.


The smallest Rust binary that does something that I've ever seen is 145 bytes https://github.com/tormol/tiny-rust-executable

(I saw a wasm one get a bit lower but that isn't really apples to apples)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: