I Accidentally Finished a Filesystem

https://news.ycombinator.com/rss Hits: 1
Summary

HN4 The Post-POSIX Filesystem. HN4 is a high-speed storage engine built for modern hardware like NVMe SSDs and Zoned Storage (ZNS). It ignores old design rules鈥攍ike spinning hard drives and folder trees鈥攖o achieve instant access speeds and constant performance. If standard file systems are like filing cabinets, HN4 is a teleportation device. 1. System Overview HN4 is a standalone driver. It doesn't need an operating system's standard libraries (like libc ) to work. It uses Ballistic Addressing instead of lookup tables to manage storage. This means the driver doesn't "search" for empty space. It calculates where data goes using math. Reading a file takes the exact same amount of time whether the drive is empty or 99% full. Key Features Constant Speed: Performance never drops as the drive fills up. Performance never drops as the drive fills up. Flexible Size: Works on tiny 1MB IoT chips and massive 18 Exabyte servers. Works on tiny 1MB IoT chips and massive 18 Exabyte servers. Crash Safety: Uses a transaction ring (Epochs) to ensure data is never corrupted by power loss, without the slowness of a journal. 2. How It Works (The Logic) HN4 replaces complex file system structures with simple physics equations. 2.1. Ballistic Allocation (Finding Space) The Old Way: Traditional file systems use a "Bitmap"鈥攁 giant map of every block on the disk鈥攖o find free space. When writing, the CPU has to scan this map. As the drive fills up, this scan gets slower. The HN4 Way: HN4 calculates where data goes. It uses a trajectory formula. The Variables: Gravity Center ( $G$ ): The starting point of the file on the disk. Velocity ( $V$ ): The jump size between blocks. Scale ( $M$ ): The size of the chunks being written. The Concept: Imagine a clock face. $G$ is where you start (e.g., 12 o'clock). $V$ is how many hours you jump for every chunk of the file. If $V=1$ , you write to 12, 1, 2, 3 (Sequential). If $V=5$ , you write to 12, 5, 10, 3 (Scattered). Because this is pure math, the CPU ...

First seen: 2026-01-14 22:11

Last seen: 2026-01-14 22:11