Topic

Low-Level Programming

Low-level programming discussions covering assembly, memory management, systems programming, and hardware interaction from developer communities.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Low-Level Programming · 429 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

A minimal kernel in Swift, running in QEMU

carette.xyz · 6 Oct

Low-Level Programming · Swift · Operating Systems

A minimal kernel written in Embedded Swift now boots on QEMU’s AArch64 `virt` machine, prints through the PL011 UART, and echoes serial input.

The project uses a development Swift toolchain, a bare-metal `aarch64-none-none-elf` target, assembly startup code, a custom linker script, and small `putchar` and `memmove` implementations instead of an operating system or standard library. Input currently relies on inefficient polling; planned work includes `.bss` initialization, interrupts, timers, allocation, and scheduling.

Reverse-engineering the Intel 8087's tangent algorithm: more than CORDIC

righto.com · 26 Sept

Algorithms · Hardware · Low-Level Programming

Reverse-engineering Intel’s 8087 reveals that FPTAN combines 16-bit CORDIC pseudo-division and pseudo-multiplication with a Padé rational approximation, 3x/(3−x²), to achieve 64-bit tangent accuracy without directly performing division.

Die microscopy and microcode analysis explain its fixed-point scaling, datapath usage, exceptional cases, and performance—about 90 microseconds, roughly 100× faster than 8086 emulation.

Anatomy of a Texture

agentlien.github.io · 16 Sept

Algorithms · Low-Level Programming · Performance

Porting textures between PC and consoles requires calculating platform-specific memory addresses across BC7 block compression, texel swizzles, mip levels, tiled layouts, and non-contiguous streaming heaps.

These optimizations improve cache locality, bandwidth, and rendering cost, but complicate conversion and debugging. Correct handling requires mapping every block, tile, and mip while accounting for differing layouts and platform conventions.

Zig: Pointer Stability for ArrayLists

ziglang.org · 30 Aug

Low-Level Programming · Performance · Programming Languages

Zig’s 2026 Devlog reports broad compiler and tooling progress: pointer-stability checks improve ArrayList memory safety; build-system process separation and relocated package management accelerate builds; SPIR-V gains types, parallel codegen, and linking; @bitCast and LLVM lowering are redesigned; the ELF linker enables fast incremental builds; std.Io adds experimental io_uring/GCD backends; package workflows, Windows native APIs, and zig libc also advance.

Show HN: I worked on a new browser for 2 years, today it passed Acid 3

code.intellios.ai · 31 Jul

Low-Level Programming · Performance · Programming Languages

cwbrowser is a new, lightweight web browser built from scratch using Zig.

It features a custom rendering engine for HTML, CSS, and layout, while integrating Google’s V8 for JavaScript execution. Developed by one person over two years, it aims to prove that modern browsers can be smaller, faster, and more maintainable than current mainstream alternatives.

Running DOS on Behringers DDX3216 with a DIY x86-Bios from Scratch

chrisdevblog.com · 8 Jun

Hardware · Low-Level Programming · Programming Languages

The author successfully reverse-engineered the Behringer DDX3216 audio mixing console, which features an AMD Elan SC300 386 SoC.

By developing a custom bare-metal BIOS, the author learned about x86 boot processes and memory segmentation. After overcoming hardware initialization challenges, they successfully booted FreeDOS v1.4, demonstrating the device's compatibility with x86 operating systems.

80386 Memory Pipeline

nand2mario.github.io · 14 Apr

Hardware · Low-Level Programming · Computer Science

The 80386 achieved performance by using a highly efficient memory pipeline that obscured the overhead of segmentation and virtual memory translation.

Techniques like descriptor caching, parallel arithmetic for limit checking, and 'Early Start' address generation allowed it to function in near physical-memory speeds, making it a foundation for modern x86 operating systems.

Reverse Engineering the Prom for the SGI O2

mattst88.com · 8 Feb

Hardware · Low-Level Programming · Computer Science

This technical article details the comprehensive reverse engineering of the Silicon Graphics O2 (IP32) PROM firmware to enable CPU upgrades that were previously blocked for decades.

The author developed the ip32prom-decompiler, a tool that translates the binary firmware into modifiable, reassemblable MIPS assembly code. The process involved identifying custom 'SHDR' section headers, deciphering checksum algorithms, and visualizing the binary structure to distinguish code from data. By mapping out the entry points and memory regions like kseg0, and handling virtual subsections copied to RAM, the author successfully produced a bit-identical source representation. This work provides the necessary foundation for modifying the PROM to support 900 MHz RM7900 CPUs, effectively bypassing the need for original SGI source code or support.

A few CPU hardware bugs

taricorp.net · 5 Feb

Hardware · Low-Level Programming · Computer Science

This article explores various hardware and firmware defects in processors, ranging from cosmetic errors to critical pipeline bugs.

The author highlights instances where Intel processors returned misspelled CPUID strings, such as 'GenuineIotel' and 'ore i5', likely due to human error or bit-flip issues. While these don't impact performance, they reflect quality control lapses. More significantly, the author discusses a critical hardware bug in the ITE Tech IT81202 RISC-V embedded controller, where instructions following a multiplication operation fail to execute correctly. This flaw necessitates a performance-degrading software workaround to ensure system stability, illustrating the inherent complexity and risks involved in chip design for specialized embedded environments.

F-16 Falcon Strike

webchrono.pl · 18 Jan

Hardware · Low-Level Programming · Open Source

F-16 Falcon Strike is a combat flight simulator for the 8-bit ATARI XL/XE that operates within only 64Kb RAM.

The game features a 15-mission campaign, a procedural WARFARE mode, and was developed without the use of AI tools to honor classic 80s and 90s flight sims.

M8SBC-486 (Homebrew 486 computer)

maniek86.xyz · 14 Jan

Hardware · Low-Level Programming · Computer Science

The M8SBC-486 is a custom-built homebrew computer motherboard developed from scratch, featuring a 486 CPU and a Xilinx Spartan II FPGA as its custom chipset.

Designed for experimental purposes, the project achieves significant compatibility with older x86 systems, enabling it to run MS-DOS 6.22, FreeDOS, and even a custom Linux kernel. While missing some standard components like secondary PIC and DMA support, it features four megabytes of SRAM and support for 16-bit ISA slots. It successfully runs classic software such as FastDOOM and Wolfenstein 3D, demonstrating high technical complexity.

Conditions in the Intel 8087 floating-point chip's microcode

righto.com · 1 Aug

Hardware · Low-Level Programming · History

This technical deep dive explores the reverse-engineering of the Intel 8087 floating-point coprocessor from the 1980s.

The author details the silicon die's physical structure and the microcode engine that uses 49 specialized conditional tests to perform complex trigonometric and logarithmic calculations. By analyzing the chip’s hardware multiplexers and instruction decoding, the study reveals how this primitive-but-powerful processor optimized mathematical throughput for early IBM PCs.

Libreboot 26.10 "Ominous Olive" released with UEFI, Chromebook support

libreboot.org · 15 Oct

Low-Level Programming

Libreboot 26.10 “Ominous Olive” replaces its default coreboot payload with MrChromebox’s EDK2, bringing open-source UEFI support—and compatibility with Windows 10/11, UKIs, OpenBSD, and FreeBSD—to nearly all supported 64-bit hardware.

It imports all 233 Intel/AMD Chromebooks supported by MrChromebox (source-only), adds several Dell, Supermicro, and ThinkPad boards, and adopts a 15h.org coreboot fork for AMD Fam15h. GRUB EFI and SeaBIOS CSM remain available through EDK2 for backward compatibility.

bigcrimping/floppy3.5

github.com · 19 Nov

Hardware · Low-Level Programming

floppy3.5 is a portable WiFi NAS that reads FAT12 1.44 MB floppy disks from cameras such as the Sony Mavica, serves their root-folder files through a browser, and archives them to microSD.

A custom PCB combines an RP2354A Greaseweazle-compatible disk controller with an ESP32-S3 WiFi bridge, battery charging, display, and power management. It supports retry-aware reads, SHA-256 deduplication, OTA updates, a 3D-printed enclosure, and open hardware and firmware files.

Understanding the Odin Programming Language

odinbook.com · 12 Jul

Low-Level Programming · Programming Languages

Understanding the Odin Programming Language by Karl Zylinski is a comprehensive guide to learning the Odin programming language.

It covers both basic and advanced concepts, including memory management and data-oriented design. Designed for programmers of all backgrounds, the book emphasizes understanding how tools work to improve craftsmanship, supported by high-quality documentation and continuous updates.

Freeing the iPod Nano 5G

viktorkrapivin.com · 23 Nov

Cybersecurity · Low-Level Programming

A fully untethered boot chain now loads Rockbox from an iPod nano 5G’s NAND without a computer or button sequence after installation.

The method sets authenticated PRVD private-partition FirmwareStatus to 2, bypassing normal rsrc signature validation, then exploits CVE-2010-1797 through a modified font. An 808-byte assembly stub cleans inherited hardware state before a sub-28 KB loader initializes NAND/FTL, mounts FAT32, verifies Rockbox, and boots it. The same private-data bypass is confirmed on nano 7G and may apply to 6G.

Slap: Functional Concatenative Language... with a Borrow Checker?

taylor.town · 3 Apr

Low-Level Programming · Performance · Programming Languages

Slap is a high-performance, concatenative programming language combining the brevity of APL with the safety of Rust-like linear types.

It enables manual memory management without a garbage collector. Featuring a small, simple specification and robust stack effects, Slap ensures memory safety, preventing common issues like use-after-free and double-free while maintaining efficient execution.

Go Home, Windows EXE, You're Drunk

gpfault.net · 18 Mar

Linux · Low-Level Programming · Windows

The author explores running Linux syscalls directly from a Windows PE executable running under Wine.

While standard Windows syscalls break Wine's compatibility, using native Linux syscall conventions allows a Windows program to successfully interface with the Linux kernel directly, creating a functional but unconventional hybrid program.

Where it came fromHacker NewsLobstersCreate a Snapbyte.dev digest and choose Low-Level Programming as one of your topics.Build your digest