frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: A language model that lives in a boot sector

https://github.com/kerlenton/bootgpt
31•kerlenton•8h ago
All the ideas came from the boot sector demo scene where people had been writing chess and BASIC games in 512 bytes, even a C compiler. I wondered what one can do using a neural network instead of a program and generating boot logs for non-existent hardware was something fun to try.

Entire inference engine is 510 bytes of MBR, weights, vocab, and strings reside in the sectors following MBR. Small char-level neural network was trained on dmesg generated by machine, so machine produces Linux boot messages infinitely.

train.py performs precisely the same integer arithmetic operations as the asm code does and thus produces an output identical character-by-character to the one produced by QEMU. The difference analysis revealed my favorite bug. The characters at the beginning matched those generated by the simulator, but then the output diverged. I retrieved the hidden layer via QEMU’s debug port and compared the neurons' values with those of the simulator, one neuron at a time. Only the value of the first neuron was correct. The activation involves idiv, and idiv stores its remainder in edx. The pointer to the biases table was stored in edx, which resulted in the first neuron being biased correctly and the following ones using garbage. Now the bias' address is determined from the loop counter, and no pointers have to survive the division. Another bug I found simply by looking at the code before I did my first run-through: the BIOS print routine zeros out bx, but bx contains the predicted character number. This explains the push and pop of bx surrounding the print.

sectorllm is the most similar to my project, as it runs an actual 5-layer llama2 with attention mechanism in just 1.2K of assembly code. It is the trade-off in the opposite direction, as my engine needs to fit into one sector and therefore my network has just one hidden layer of int8 operations for dreaming the dmesg.

Show HN: NES Contra (1987) port (ASM –> C and then C –> WebAssembly)

https://epoyraz.github.io/nes-contra-us/
23•tevlon•2h ago•12 comments

Show HN: A language model that lives in a boot sector

https://github.com/kerlenton/bootgpt
31•kerlenton•8h ago•0 comments

Show HN: Ghostman – A fast, keyboard-driven TUI API client and webhook inspector

https://github.com/4yk5/Ghostman
38•4yk5•1d ago•25 comments

Show HN: A USB-C LTE modem that gives my computer a phone line

https://github.com/Koppar-AI/koppar-lte-modem
32•abijahkaj•5h ago•23 comments

Show HN: Marelleo, an open-source story box I built for my kids using ESP32

https://zebra.rodeo/en/blog/marelleo/
177•foOg•4d ago•48 comments

Show HN: Aruma – clean-room self-hosted backend for the official Firebase SDKs

https://github.com/arumadev/aruma
3•osama200•2h ago•1 comments

Show HN: Castov – Open-source dev tools and AI secret shield with zero telemetry

https://castov.com
2•castov•2h ago•0 comments

Show HN: Jointter – A daily word puzzle using dots and lines

https://www.jointter.com/
9•proy87•5h ago•17 comments

Show HN: To Honor Sir Patrick Stewart, Enjoy the TNG Episode Guessing Game

https://tng.episodle.com/
230•francisofascii•21h ago•72 comments

Show HN: Run Claude Code inside OpenCode through the official CLI

https://github.com/khalilgharbaoui/opencode-claude-code-plugin
2•kaygeee•3h ago•0 comments

Show HN: InterviewLint – Practice explaining code, not just writing it

https://interviewlint.com
2•aburayhanalif•3h ago•0 comments

Show HN: A working Nintendo in ~1GB of Qwen weights

https://github.com/dbreunig/nesformer
281•dbreunig•1d ago•143 comments

Show HN: Maclet – A native macOS container runtime written from scratch in Rust

https://github.com/sumant1122/maclet
3•paperplaneflyr•5h ago•0 comments

Show HN: Similarity, a spiritual successor to 2000s-era OkCupid

https://similarity.com
4•stickfigure•5h ago•2 comments

Show HN: Quit everything to make one website

https://hellojomp.com/
3•hellojomp•6h ago•0 comments

Show HN: Sketch Stadium – watch your agent play Pictionary

https://sketch.wakeshift.ai/games/q5ucru
35•ericlevine•1d ago•11 comments

Show HN: I rebuilt Kubernetes for ESP32 microcontrollers

https://github.com/arterialist/kube32
51•Arterialist•2d ago•16 comments

Show HN: I built a crawler that finds personal websites by a /.well-known/josh

https://joshternet.org/
4•TheWoollyBully•7h ago•0 comments

Show HN: I Turned DOOM into a Transformer

https://github.com/mottopanikeiku/doomformer
129•falperc•1d ago•35 comments

Show HN: Auto Dismiss Mac OS "Allow <app> to find devices on local networks?"

https://github.com/johncassil/dontallow
153•johncassil•2d ago•130 comments

Show HN: Mullvad as a rotating connect proxy

https://github.com/nicorobinreal/molehill
2•albinstman•9h ago•0 comments

Show HN: UPC Label Maker – 1:1 PostScript point barcode imposition for Avery/FBA

https://upclabelmaker.com/
2•dirtyfancy•9h ago•0 comments

Show HN: Million Piece Puzzle

https://puzzle.io27.com/
2•jeffbaumes•9h ago•1 comments

Show HN: Spinf-serve – inference server for bulk scoring and decisions

https://github.com/spinfinc/spinf-serve
22•giarec•1d ago•5 comments

Show HN: A proof-of-concept formalization of the IRS federal tax forms

https://github.com/emmilco/us-tax-model
81•RGS1811•3d ago•13 comments

Show HN: Fraktur, a DJ mixing app in the browser

https://greenvitriol.com/posts/fraktur
23•janesconference•1d ago•2 comments

Show HN: Imza – plan and review focused coding agent

https://github.com/umutsevdi/imza
3•umutsevdi•11h ago•0 comments

Show HN: I rebuilt my old canvas 3D library as a small WebGL 2 library – phoria2

https://kevs3d.co.uk/phoria2/
2•kevs3d•11h ago•0 comments

Show HN: I made a game about the 3k-year evolution of Chinese characters

https://chinese.vedranb.com/
3•vedran•4h ago•1 comments

Show HN: Lasm – Write formally verified webapps in Lean for Node/serverless/edge

https://github.com/Millillion/lasm
36•lastmjs•1d ago•20 comments