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

Replacing a Rust Enum with a 64-Bit Word Made My Interpreter 17% Faster

pointersgonewild.com · 5 Sept

Low-Level Programming · Performance · Programming Languages

The Plush interpreter replaced a 128-bit Rust tagged enum with a 64-bit low-bit-tagged Value representation supporting fixnums, flonums, immediates, and pointers.

Despite boxing edge cases, benchmarks showed lower memory usage and faster execution across the board, primarily through reduced register spills, memory traffic, and improved generated code. Plush now renders roughly 10,000 polygons interactively.

Paper Tape Is All You Need – Training a Transformer on a 1976 Minicomputer

github.com · 25 Mar

Artificial Intelligence · Low-Level Programming · Machine Learning

ATTN/11 implements a single-layer, single-head transformer in PDP-11 assembly.

By using custom fixed-point arithmetic and lookup tables for transcendental functions, the model achieves 100% accuracy on sequence reversal within 350 training steps. The project demonstrates efficient machine learning on 1970s hardware while providing a cycle-accurate path for retro-computing enthusiasts.

Everyone Says Assembly Is Untyped—Everyone Is Wrong

gingerbill.org · 20 Aug

Low-Level Programming · Programming Languages

The article argues that assembly is inherently typed because each instruction constrains operand kinds, widths, registers, immediates, and clobbers.

Odin’s new inline assembly models these semantics with typed, hygienic asm templates, named bindings, inferred clobbers, multiple returns, and one syntax across ISAs. Backed by core:rexcode, compile-time diagnostics replace opaque string-based assembler errors, reportedly implemented in seven days.

GitHub – DOS 1.0: Transcription of Tim Paterson's DOS Printouts

github.com · 29 Apr

Low-Level Programming · History · Operating Systems

A collection of 86-DOS 1.00 kernel source listings by Tim Paterson has been recovered and transcribed into compilable formats.

The project includes historical PC-DOS utilities and BASIC-86 compiler runtimes. Users can access the original scans and the reconstructed buildable source code, which requires traditional Seattle Computer Products assembly tools to compile successfully.

Decoding the NEC V20 Microcode

martypc.blogspot.com · 3 Sept

Hardware · Low-Level Programming · Machine Learning

A reverse-engineering project decoded the NEC V20’s 29,928-bit microcode ROM and activation PLAs from high-resolution die photography.

Using MaskRomTool, Python, PyTorch, and a CNN, the author automated bit classification, reconstructed 29-bit words, mapped instruction decoding and microcode fields, and uncovered V20/V30 shared-mask circuitry. The results enable a cycle-accurate MartyPC V20 core, though some fields remain unresolved.

Computer-generated dream world: Virtual reality for a 286 processor

deadlime.hu · 2 Mar

Hardware · Low-Level Programming · Computer Science

A developer successfully simulated a computer environment around a physical Harris 80C286-12 processor using a Raspberry Pi Pico and MCP23S17 IO expanders.

The project involved manual clock stepping, wiring 57 pins, and writing MicroPython code to handle memory instruction reads, data transfers, and basic assembly execution in a 'virtual' hardware reality.

tylertms/Stela

github.com · 11 Nov

Low-Level Programming · Rust · Operating Systems

Stela is a general-purpose Apple Silicon layer that lets x86-64 PCs boot macOS and most apps through a UEFI program combining an arm64e-to-x86-64 translator, a model of Apple silicon hardware, and an NVIDIA Metal driver.

Its AOT/JIT compiler covers more than 3,000 AArch64 encodings, maps registers, and caches translated code, while AIR is compiled directly to NIR. It supports x86-64-v2 CPUs and GTX 16/RTX 20+ GPUs, currently models Mac mini (M2) and runs macOS 27, but remains slow and experimental.

The Lost Atomic Update on Loongson CPU

jia.je · 24 Sept

Hardware · Low-Level Programming · Computer Science

A Loongson LA664 CPU erratum causes relaxed atomic operations to lose updates across physical cores when interleaved with certain memory reads, including LASX-accelerated memcpy.

The bug can trigger infinite loops and memory-safety failures. AI-assisted reproduction helped identify the cause; Loongson provided tested firmware that fixes it with minimal performance impact.

PC Engine CPU

jsgroth.dev · 7 May

Hardware · Low-Level Programming · Computer Science

The PC Engine (TurboGrafx-16) features the HuC6280, a custom 8-bit CPU based on the 65C02.

It runs at up to 7.16 MHz and includes a built-in MMU for bank switching. While lacking the complex 16-bit capabilities of the SNES or Genesis, its high clock speed, lack of memory latency, and efficient block-transfer instructions make it a uniquely capable machine.

Minimal x86 Kernel Zig

github.com · 17 Feb

Low-Level Programming · Programming Languages · Computer Science

A minimal bare-metal kernel written in Zig that boots on x86 via the Multiboot 1 protocol.

It features zero assembly files, using Zig's cross-compilation capabilities to target x86-freestanding-none. The kernel manages memory-mapped I/O for VGA text-mode display and demonstrates low-level system programming without external dependencies or complex bootloader installations.

ItsNotRexed/Leonida

github.com · 22 Nov

C++ · Low-Level Programming

Leonida is an early-stage static recompilation project that aims to run the Xbox Series version of Grand Theft Auto VI natively on Windows, built locally from the user’s own copy.

It reimplements console system software, translates all 26,503 RDNA2 shaders to SPIR-V for Vulkan, exports models, textures, and audio, and provides PE/import shims plus an in-progress Xbox D3D12-to-Vulkan layer. The game does not boot yet, and the repository includes no game files, keys, or executable.

Copper – A minimal low-level programming language with OOP and generics

tibleiz.net · 30 Oct

Low-Level Programming · Programming Languages

Copper is a minimal low-level programming language intended as a replacement for C, combining explicit, Ruby-style syntax with object-oriented programming and generics.

It supports inheritance for any type, multiple return values, out-of-order definitions, headerless imports, deferred statements, iterators, option types, and fast compilation. Its design prioritizes simplicity and understandable constructs. The example defines a Point class and main function, while Copper and its standard library/compiler are BSD-licensed.

The C64 Dead Test Font

masswerk.at · 24 May

Low-Level Programming · History · Computer Science

This article explores the unique font used in the Commodore 64 'Dead Test' diagnostic cartridge.

It analyzes the font's design similarities to the MICR E-13B standard, uncovers a hidden character Easter egg, and explains the technical implementation via the C64's Ultimax mode, which allows the cartridge to function independently of the system's built-in ROMs.

Frame – Linux X server in Assembly

isene.org · 17 Jul

Low-Level Programming · Performance · Open Source

A developer created 'frame', a custom, lightweight X server written entirely in Assembly to replace X11.

This minimalistic build significantly reduces complexity and CPU usage compared to standard stacks. By prioritizing individual control and power efficiency, the developer successfully created a stable, personalized desktop environment while open-sourcing the entire project for public benefit.

WolfIP: Lightweight TCP/IP stack with no dynamic memory allocations

github.com · 12 Mar

Hardware · Low-Level Programming · Open Source

wolfIP is a TCP/IP stack designed for resource-constrained embedded systems, featuring zero dynamic memory allocation and a fixed memory footprint.

It supports BSD-like non-blocking APIs, Ethernet, IPv4, TCP, and UDP. Recent updates include a POSIX shim for host-tool injection and a FreeRTOS port, providing lightweight networking under the GPLv3 license.

Spinning around: Please don't – Common problems with spin locks

siliceum.com · 26 Jan

Distributed Systems · Low-Level Programming · Software Architecture

This technical analysis explores the complexities and common pitfalls of implementing spin-locks.

The author argues that custom spin-locks often lead to significant performance degradation, high power consumption, and severe issues like priority inversion. Key technical insights include the evolution of the PAUSE instruction latency across CPU architectures, the importance of exponential backoff with jitter, and the necessity of using OS-level primitives like Linux futex or Windows WaitOnAddress. By bypassing the OS scheduler, simplistic spin-locks risk 'lock convoys' and livelocks, especially on real-time systems. The article concludes that developers should prioritize OS-provided synchronization primitives over rolling their own implementations, as modern kernels are far better equipped to manage thread scheduling and hardware efficiency than manual loops.

llvm/llvm-project

github.com · 27 Sept

Low-Level Programming · Performance · Programming Languages

LLVM is a modular, reusable toolkit for building highly optimized compilers, optimizers, and runtime environments.

Its core processes intermediate representations into object files and includes assemblers, disassemblers, and bitcode tools. Clang supports C, C++, Objective-C, and Objective-C++, while related components include libc++ and LLD.

SIMD in the 90s: Programming Intel's Pentium MMX

pikuma.com · 12 Aug

Hardware · Low-Level Programming · Performance

MMX, introduced with Pentium MMX in 1997, brought accessible integer SIMD to mainstream x86 PCs through eight 64-bit registers aliased to x87 registers.

Packed arithmetic, saturation, comparisons, and shifts accelerated multimedia, though EMMS and CPUID were required. MMX lacked floating-point SIMD and had register conflicts; SSE/SSE2 superseded it, making MMX a pivotal transition.

Show HN: Forkrun – NUMA-aware shell parallelizer (50×–400× faster than parallel)

github.com · 27 Mar

Linux · Low-Level Programming · Performance

forkrun is a high-performance, drop-in replacement for GNU Parallel and xargs that optimizes shell data processing.

Leveraging NUMA-aware design and lock-free architectures, it scales linearly across modern CPUs, delivering 50x–400x speedups. Its self-tuning mechanism, zero-dependency bash distribution, and efficient memory management make it ideal for high-frequency, low-latency workloads on multi-socket hardware.

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