nowfound

Work · April 7, 2023

A toy bootloader written in C++

Yes, this includes the MBR and partition boot sector. The partition table is modeled as a class hierarchy. Second stage loads a kernel from a FAT32 file. I'm normally a C programmer, but for a work project, I recently revisited C++, a language that I had an on-again-off-again relationship over the years. I did this as a fun training exercise on the side to get familiar with the language again, but obsessed a bit and kind of overshot the target. I thought the result might be of interest to someone.

A toy bootloader written in C++ launched on April 7, 2023 with 64 votes, #1,357 of 4,853 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 3 years on.

In plain words

This is a bootloader implementation written in C++ that includes the master boot record, partition boot sector, and a second stage that loads kernels from FAT32 filesystems. The partition table is structured using a class hierarchy. Built as a learning exercise by a C programmer exploring C++ again, the project demonstrates how object-oriented design can be applied to low-level system code. It is intended for developers interested in operating system fundamentals or bootloader development.

written from the facts on this page · September 2026

From the sources

Tiny C++ boot loader. Contribute to AgentD/hausboot development by creating an account on GitHub.

Does a similar job

all alternatives →
  • My microkernel-based OS built from scratch now has basic Unix commands2024 · github.com · ▲69

    This project contains no code from Linux, BSD, Minix, or any other OS. Everything up until this point is written entirely from scratch, including a pure microkernel (that only implements multiprocessor priority scheduling, memory management, and interprocess communication), a work-in-progress implementation of the standard C library, and a variety of servers that provide drivers and other essential OS functionality. At the time of writing this post, the servers provide drivers for the keyboard, NVMe SSDs (that works on real hardware), a Unix-like virtual file system (with a single root…

  • Convert your Containerfile to a bootable OS2024 · github.com · ▲219

    Support for bootable OS containers (bootc) and generating disk images - podman-desktop/extension-bootc

  • Banan-OS, an Unix-like operating system written from scratch2024 · github.com · ▲333

    This is my operating system that I've been working for the past 2 years. All of the code is written exclusively by me except from ported software. banan-os has a monolithic kernel targeting x86 (i686) and x86_64 architectures. The project consists of bootloader, kernel and userspace libraries (libc, libGUI, libFont, ...). It also uses my custom C++ standard library partly based on stdc++. Currently I have basic TTY and GUI environment with some of the basic UNIX utilities like cp, ls and stat. I have basic support for USB (keyboard/mouse/storage), disks (NVMe, AHCI), custom…

  • A new hobby OS from “scratch” in C#2017 · github.com · ▲310

    A multitasking monolithic Kernel based x86 targeting Operating System written in C# from scratch aiming for high-level implementation of drivers in managed environment. - amaneureka/AtomOS

  • A simple way to write standalone C programs for i3862019 · github.com · ▲147

    A simple way to write standalone C programs for i386 - luke8086/boot2c

  • 1.5kb Microkernel for Ben Eater's 6502 Computer2020 · github.com · ▲230

    Micro Kernel / Bootloader for Ben Eater's 6502 Computer - janroesner/sixty5o2

More work this month

the category →

Source: Show HN post ↗

Launched alongside, April 2023

the whole month →
  • Guidde AI▲1,476

    Create video documentation instantly with the magic of AI

    AI · 2023 · guidde.com

  • G4

    Hi HN, Today we’re launching GPT-4 answers on Phind.com, a developer-focused search engine that uses generative AI to browse the web and answer technical questions, complete with code examples and detailed explanations. Unlike vanilla GPT-4, Phind feeds in relevant websites and technical documentation, reducing the model’s hallucination and keeping it up-to-date. To use it, simply enable the “Expert” toggle before doing a search. GPT-4 is making a night-and-day difference in terms of answer quality. For a question like “How can I RLHF a LLaMa model”, Phind in Expert mode delivers a…

    AI · 2023 · phind.com

  • Lago▲1,013

    Open-source alternative to Stripe Billing and Chargebee

    Dev tools · 2023 · getlago.com

  • Chatscout▲691

    Shopping assistant powered by ChatGPT for e-commerce brands

    AI · 2023

  • Fabric▲690

    Make notes, tasks, and search, directly from the terminal.

    AI · 2023 · fabric.so

  • Rask AI▲683

    Say it in any language, AI based, sounds as good as a human

    AI · 2023 · rask.ai