# Sectorforth: A 16-bit Forth squeezed into a 512-byte boot sector

Original title: Sectorforth is a 16-bit x86 Forth that fits in a 512-byte boot sector (2020)

> Hacker News story 49321934 · language: en · submitted 2026-08-16
> Web version: https://zeli.app/story/49321934
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 53 · by [sigalor](<https://news.ycombinator.com/user?id=sigalor>) · 💬 16
[original](<https://github.com/cesarblum/sectorforth>) · [HN discussion](<https://news.ycombinator.com/item?id=49321934>)

## Summary

Sectorforth is a minimal 16-bit x86 Forth implementation that fits entirely within a 512-byte boot sector. Inspired by a 1996 Usenet thread, it includes only eight primitives, five variables, and two I/O operations. Despite its tiny size, it features a colon compiler, allowing new words to be defined in Forth itself. The project compiles with NASM and runs in QEMU, offering a debug mode for GDB. Its code structure draws from jonesforth and is documented for those familiar with Forth internals.

## Key quote

> sectorforth contains only the eight primitives outlined in the Usenet post above, five variables for manipulating internal state, and two I/O primitives.

## HN discussion (16 comments)

### [Saltloaf](<https://news.ycombinator.com/item?id=49371218>)

> Eight primitives and a colon compiler in 512 bytes is a nice demonstration of how much you can bootstrap from almost nothing. The examples building up from there are the best part.

### [gabrielsroka](<https://news.ycombinator.com/item?id=49333264>)

> 2020

### [jxnsneb](<https://news.ycombinator.com/item?id=49328905>)

> Not that impressive considering this uses BIOS routines heavily and whole operating systems including basic interpreter fit in a couple of KiB

---

## Cite

- Page: https://zeli.app/story/49321934
- Date: 2026-08-16
- Source: github.com (https://github.com/cesarblum/sectorforth)
- Hacker News: https://news.ycombinator.com/item?id=49321934

## Other languages

- zh: https://zeli.app/zh/story/49321934 · markdown: https://zeli.app/zh/story/49321934.md
- ja: https://zeli.app/ja/story/49321934 · markdown: https://zeli.app/ja/story/49321934.md
- ko: https://zeli.app/ko/story/49321934 · markdown: https://zeli.app/ko/story/49321934.md
- de: https://zeli.app/de/story/49321934 · markdown: https://zeli.app/de/story/49321934.md
- es: https://zeli.app/es/story/49321934 · markdown: https://zeli.app/es/story/49321934.md
