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

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

github.com · 14 Mar

C · Hardware · Low-Level Programming

Megadev is a comprehensive development kit for Sega Mega Drive and Mega CD hardware, featuring utilities, headers, and documentation.

Targeted at experienced C and M68k assembly programmers, it simplifies complex embedded development. The project emphasizes flexibility for skilled developers, offering an unofficial, non-profit framework for professional-grade homebrew creation on classic console hardware.

Removing binder.c

lwn.net · 20 Nov

Android · Linux · Low-Level Programming · Rust · Operating Systems

Linux has removed the C implementation of Android’s Binder driver, replacing it with Rust after more than five years of work.

Binder is Android’s primary IPC mechanism and a major security risk, serving billions of devices and enormous transaction volumes. The Rust version preserved behavior and tracepoints, addressed tail-latency and locking issues, and became faster through fewer syscalls. C remains in older kernels; vendor hooks delay migration, while removal landed in kernel 7.4.

JIT bitmap text rendering for microcontrollers

linebender.org · 7 Nov

Algorithms · Low-Level Programming · Performance

A JIT bitmap text renderer for RP2350-class microcontrollers generates ARM code per string to render proportionally spaced, kerned glyphs within tight scanline budgets.

In vic-2350, packed glyph bitmaps and metadata minimize SRAM use; generated code fills a 1-bit buffer, then expands it to RGB565 at 1.75 cycles per pixel. The JIT costs 23 cycles per glyph, and the demo consumes about 2.6% of one RP2350 core’s throughput, enabling flexible text without a framebuffer.

One Hash Bloom Filters

calabro.io · 19 Oct

Algorithms · Backend · Go · Low-Level Programming · Performance

Bluesky replaced mutex-protected double-hash Bloom filters with atomic-bloom, cutting deployment time from 90 to about 15 minutes.

It later deployed gloom, a one-hash Bloom filter that divides storage into pairwise-coprime partitions and derives all bit positions from one hash. Cache-line-sized, aligned 64-byte blocks make lookups require at most one cache miss, while ShardedAtomicFilter reduces write contention. The approach serves high-throughput backend and jetstream workloads, although it did not materially outperform atomic access for Bluesky’s original bottleneck.

Reducing undefined behavior in the C language

lwn.net · 9 Oct

C · Low-Level Programming · Programming Languages

At Kernel Recipes, Martin Uecker argued that C can substantially reduce undefined behavior and improve memory safety, though full safety remains difficult.

The C standard has about 100 undefined-behavior cases, while the C2y draft removes 45. Warnings, static analyzers, sanitizers, annotations, architectures such as CHERI, and formal verification can improve type, spatial, and temporal safety. C23 already removed problematic legacy features; C2y will add further “demon removal,” but restricted languages and verification remain necessary for the strongest guarantees.

Microcode in Intel's 8087 floating-point chip: the scale instruction

righto.com · 12 Sept

Hardware · Low-Level Programming · Computer Science

Reverse-engineering the Intel 8087 reveals that FSCALE, seemingly a simple power-of-two scaling instruction, uses more than 140 micro-instructions and three subroutine levels.

Its microcode coordinates the shifter, adder, exponent converter, exception handling, denormals, NaNs, overflow, underflow, and rounding. The analysis also uncovers hidden behavior, including a condition-code indicator for rounding direction.

Linux on ESP32

github.com · 28 Jul

C · Linux · Low-Level Programming

This experimental project demonstrates a port of Linux 6.12 to the ESP32-S31 microcontroller, utilizing Sv32 virtual memory, Supervisor mode, and XIP with a Buildroot userspace.

The port uses a custom CLIC driver and includes modifications for non-standard RISC-V interrupt handling. It is a proof-of-concept for research purposes, not intended for production usage.

Microcode inside the Intel 8087 floating-point chip: register exchange

righto.com · 30 May

Hardware · Low-Level Programming · Computer Science

The 1980 Intel 8087 floating-point co-processor revolutionized PC performance.

By reverse-engineering its complex 16-bit microcode, the Opcode Collective revealed how the FXCH instruction operates across 14 micro-steps. The study utilizes microscope imagery of the chip's ROM and datapath to decode how hardware manages floating-point registers, stack operations, and exception handling.

A whole boss fight in 256 bytes

hellmood.111mb.de · 5 Apr

Low-Level Programming · Programming Languages · Computer Science

Endbot is a 256-byte audiovisual demo for DOS, presented at Revision 2026.

It utilizes FASM to create a real-time rendered robot sprite with damage effects, a scrolling checkerboard landscape, and MIDI audio. This compact masterpiece achieves complex graphics and sound using clever assembly hacks like the Rrrola trick and shared data buffers to fit within strict memory limits.

Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code

phoronix.com · 11 Oct

Artificial Intelligence · Linux · Low-Level Programming · Operating Systems · Claude

Linus Torvalds is developing Linux kernel changes with Claude Code to eliminate folio references when reading from the page cache.

The noref-filemap-read-with-llm branch addresses contention caused by many threads performing small reads from one file, using revised memory-management code, tests, reviews, and a draft cover letter created with AI under his direction. Torvalds reports significant performance gains, and the patches may enter the Linux 7.4 merge window.

torvalds/linux

github.com · 8 Nov

Linux · Low-Level Programming · Operating Systems

torvalds/linux is the source tree for the Linux kernel, which manages hardware and system resources and provides core services to operating systems and applications.

It includes subsystems for memory management, scheduling, networking, filesystems, security, power management, drivers, and more. Extensive role-specific documentation supports developers, researchers, administrators, maintainers, hardware vendors, distribution maintainers, and AI coding assistants, with defined contribution, security, licensing, and attribution requirements.

C's Flexible Integer Sizes Were Not a Design Mistake

pikuma.com · 25 Sept

C · Low-Level Programming · Programming Languages

C’s flexible integer sizes were deliberate: `int` represents a machine’s natural integer width rather than a fixed 32 bits, enabling efficient operation across historical architectures with diverse word sizes, byte widths, pointer models, and signed representations.

Minimum ranges and `<limits.h>` preserve portability, while `<stdint.h>` supplies exact widths when required. Lua demonstrates this approach.

Examining circuit boards from the Space Shuttle's I/O Processor

righto.com · 28 Jun

Hardware · Low-Level Programming · Computer Science

The Space Shuttle utilized five general-purpose computers, each paired with an Input/Output Processor (IOP).

The IOP managed data bus networks using an advanced 'barrel processor' architecture with 25 virtual processors. It featured custom circuit boards, hybrid analog modules, and Manchester encoding to ensure high performance and reliability during flight.

DLL that was not present in memory despite not being formally unloaded

devblogs.microsoft.com · 25 Jun

Cybersecurity · Low-Level Programming · Windows

A technical investigation into frequent crashes in a third-party application revealed a recursive exception death spiral.

Analysis showed that combase.dll was forcibly unloaded from memory, causing subsequent DLLs to crash when calling its addresses. The investigation concluded that shell32.dll was merely a victim of memory corruption, confirming a 'bucket spray' scenario caused by an unidentified component.

Making a €40 USB-C hub work as a Nintendo Switch 2 dock

blog.nozomi.space · 9 Nov

Hardware · Low-Level Programming

A €40 Cable Matters USB-C hub was modified to work as a Nintendo Switch 2 travel dock by reverse-engineering USB-PD and DisplayPort firmware.

A 540-byte VL103 patch emulates the official dock’s Nintendo identity and vendor-message handshake, enabling TV mode and faster docking; a 108-byte RTD2142 patch corrects HDR colorimetry over HDMI. The hub still charges and supports normal PC/phone use, but VRR remains unsupported and must be disabled.

Emulator for Symbolics XL-1200 Lisp machine

unya.github.io · 30 Nov

C · Hardware · Low-Level Programming

The XL1200 Hardware Emulator recreates the Symbolics XL-1200 Lisp machine with a 40-bit Ivory Rev 4 CPU, Merlin-II hardware, virtual peripherals, and Genera 8.3 boot support.

A portable C11 core reaches about 150 MIPS on Zen 4 using AVX-512 and supports hot reload, checkpoints, scripting, debugging, and live control. SDL3 and microui provide a Linux and Windows workbench, while the included Boot PROM supports SCSI disks, CD-ROMs, networking, serial I/O, and video capture.

Extending LLDB to Debug Applications That Span CPUs and GPUs

engineering.fb.com · 9 Nov

Low-Level Programming · Software Architecture

Meta developed a vendor-neutral accelerator plugin architecture for LLDB’s lldb-server to debug applications spanning CPUs and GPUs in one session.

It represents the CPU and GPU as separate LLDB targets and debugger processes, preserving their distinct instruction sets, registers, memory spaces, and execution models while coordinating them through host-runtime events. Hardware-specific plugins translate device APIs into LLDB abstractions for threads, memory, modules, breakpoints, and stop reasons. The framework supports live and postmortem debugging, mock testing, and multiple vendors.

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