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

Mold Linker Version 3.0.0 Release – Rewritten in Rust

github.com · 5 Oct

CLI · Low-Level Programming · Rust

mold 3.0.0 is the first Rust rewrite of the high-speed mold linker, replacing the C++ 2.42.1 release while preserving its command-line interface, target architectures, output, and linking performance.

Tests across supported targets, real-world workloads, and all Gentoo packages found no regressions. Rust adds bounds checks for corrupted inputs. The release also improves GNU ld compatibility, fixes crashes, incorrect or nondeterministic output, relocation and architecture-specific bugs, and changes builds from CMake to Cargo.

The most expensive instruction might be… cmov

questdb.com · 15 Jul

Algorithms · Low-Level Programming · Performance

This analysis investigates how HotSpot’s C2 compiler decides between using branches and conditional move (cmov) instructions.

By benchmarking patterns on x86, it reveals that the compiler relies on branch bias rather than hardware predictability. Consequently, the compiler's heuristic often makes suboptimal choices, causing significant performance regressions when data dependencies exist within loops.

How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale

engineering.fb.com · 10 Nov

Artificial Intelligence · Low-Level Programming · Machine Learning · Performance · Programming Languages

Meta built TLX, an extension to Triton that adds explicit MIMW-style warp-group, memory, synchronization, and cluster orchestration while retaining Triton’s Python, tensor-programming, and autotuning model.

TLX exposes hardware features including TMA and TMEM across NVIDIA Hopper, Blackwell, and AMD GPUs. In production, it helped GEM training reach 20–25% end-to-end MFU, reduced RecSys inference latency by up to two-thirds through IKBO, and powered distributed grouped GEMM for large-scale LLM MoE pretraining.

Claude Wrote a Full FreeBSD Remote Kernel RCE with Root Shell (CVE-2026-4747)

github.com · 1 Apr

Cybersecurity · Linux · Low-Level Programming

A critical remote kernel code execution vulnerability, CVE-2026-4747, affects FreeBSD's NFS server implementation.

A stack-based buffer overflow in svc_rpc_gss_validate occurs because the function fails to validate GSS-API credential lengths. By sendingmalicious packets to port 2049, attackers can use ROP gadgets to write and execute shellcode, leading to root-level system compromise.

Simplifying Vulkan One Subsystem at a Time

khronos.org · 5 Feb

Hardware · Low-Level Programming · Computer Science

The Vulkan Working Group is addressing the 'extension explosion problem' by transitioning from incremental API updates to comprehensive subsystem replacements.

Historically, numerous extensions increased complexity and created portability challenges for developers. To solve this, the group introduced VK_EXT_descriptor_heap, a total overhaul that replaces the traditional descriptor set subsystem. This new approach treats descriptors as memory and data rather than opaque objects, offering a more streamlined, console-like experience. While currently released as an EXT to gather community feedback, it aims for future core specification inclusion. This strategy reflects a broader commitment to simplifying the Vulkan API and improving cross-vendor compatibility through heavy industry collaboration and developer-focused roadmaps.

Muxcard, a dyi credit card size computer

github.com · 31 May

Hardware · Low-Level Programming · AI Agents

The developer created an ultra-thin programmable smartcard based on the ESP32-C3, featuring an e-paper display and NFC.

By mastering DIY flexPCB lithography and custom hardware design, the project achieves a credit-card-like thickness of ~1mm. Potential applications include smart-home control, secure offline authentication, and pentesting tools while maintaining a minimalist physical form factor.

A faster way to compute signed 64-bit floor division by constants

benjoffe.com · 27 Oct

Algorithms · C++ · Low-Level Programming · Performance

Ben Joffe introduces a compile-time constant algorithm for signed 64-bit floor division, using a sign-selected magic multiplier and wide multiply-shift.

Benchmarks report 10–20% higher throughput than existing methods on ARM for most divisors, and 5–10% gains on x86 for about 80% of positive and 60% of negative divisors, with trade-offs in remaining cases. The article compares Granlund–Montgomery and Robison techniques, derives implementation details, and warns of TensorFlow’s historical overflow bug.

The art and engineering of Sega CD Silpheed

fabiensanglard.net · 13 Jul

Hardware · Low-Level Programming · Software Architecture

This analysis explores the technical achievements of the game Silpheed on the Sega Genesis and Mega-CD.

By reverse engineering its efficient FMV format, the author explains how Game Arts overcame hardware constraints through clever tile-based compression, ASIC utilization, and artistic optimization, enabling high-quality visuals despite the limited bandwidth and processing power of the 90s console era.

Obscure audio codec is a perfect fit for the N64

phoboslab.org · 5 Nov

Algorithms · Low-Level Programming · Performance

ULC has been ported to Libdragon as a practical N64 audio codec, delivering 44100 Hz stereo at bitrates and quality close to Opus while using about 4% of the CPU and 5% of the RSP.

Its simple MDCT-based transform and nibble-aligned format avoid expensive entropy decoding, while a 16-bit fixed-point RSP implementation handles IMDCT, lapping, stereo interleaving, and scaling. ULC is roughly four times more complex than ADPCM but supports background music, speech, ambience, and long sound effects during gameplay.

mold: A Massively Parallel Linker

arxiv.org · 24 Aug

Low-Level Programming · Performance · Operating Systems

mold is a Unix/Linux linker designed to eliminate linking bottlenecks in large C++ builds.

Its clean-slate architecture decouples symbol resolution and archive processing, enabling data parallelism throughout the pipeline. On real-world programs, mold links multi-gigabyte debug binaries in seconds or less, achieving 2.4–16.1× the speed of lld and up to 112× GNU ld.

UEFI Bindings for JavaScript

codeberg.org · 9 Feb

Hardware · Low-Level Programming · Open Source

Promethee is an innovative proof-of-concept project that provides UEFI Bindings for JavaScript, allowing developers to write bootloaders using high-level scripting logic.

The core architecture uses the Duktape engine to execute JavaScript within a freestanding environment, requiring only minimal libc stubs. The project works by loading a script.js file from the boot volume and executing it through UEFI services. Users can interact with low-level systems such as the GraphicsOutput protocol to perform operations like video filling directly from JavaScript. This bridge between low-level firmware and high-level programming simplifies experimental bootloader development, utilizing C for the bridge and TypeScript for type definitions. It demonstrates the flexibility of modern script engines when stripped of their standard OS dependencies.

One Hash Bloom Filters

calabro.io · 19 Oct

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

Bluesky adopted a one-hash Bloom filter (OHBF), implemented in Go as gloom, to reduce hashing overhead while preserving Bloom-filter behavior.

It partitions the bit array into pairwise-coprime sizes, derives positions from one hash, and uses cache-aligned 64-byte blocks so lookups need at most one cache miss. Atomic updates replaced mutexes, cutting deploy time from 90 to 15 minutes; sharding further reduces write contention. The filter has run in production for nine months and also powers jetstream.

adrbn/bo2-mac

github.com · 11 Nov

C++ · Low-Level Programming · macOS · Performance · Software Architecture

bo2-mac statically recompiles the 32-bit x86 Windows versions of Call of Duty: Black Ops II into a native ARM64 macOS app built from the player's own Steam copy.

Remill lifts about 150,000 functions to LLVM IR; custom passes, a hand-written Win32 runtime, and a Direct3D 11-to-Metal layer replace Windows, Wine, and JIT execution. Campaign, six Zombies maps, and multiplayer against bots run locally at 51–60, 57–60, and 53–60 fps respectively on an Apple M1, with no game files distributed.

Show HN: I've updated my Linux System Call website and API

syscall.sh · 2 Nov

Linux · Low-Level Programming · Operating Systems

The Linux System Call website and API now provide syscall tables for 26 architectures, including calling conventions, kernel-entry instructions, register mappings, and counts per architecture.

Each table and plain JSON file records when syscalls appeared or were removed across kernel releases, with an API supporting release queries and diffs. Data is generated from Linux kernel source, while descriptions come from Linux man pages and liburing for io_uring.

ReBarUEFI: Resizable BAR for almost any UEFI system

github.com · 21 Sept

Hardware · Low-Level Programming · Operating Systems

ReBarUEFI is an open-source UEFI DXE driver that enables Resizable BAR on unsupported systems, improving GPU performance and Intel Arc compatibility.

It modifies firmware, requires configuring 4G Decoding and CSM, and uses ReBarState to set BAR size. The project provides UEFI patches, build instructions, compatibility guidance, troubleshooting, and Linux alternatives.

Designing an Ethernet Switch ASIC

essenceia.github.io · 23 Jul

Hardware · Low-Level Programming · Open Source

The author has designed the world's first open-source switch ASIC, a 3-port, cut-through, unmanaged ethernet switch.

Developed for the Tiny Tapeout shuttle, it uses an external PHY and implements custom address resolution logic. This project is part of the 'Coffee Shop' series of open-source networking hardware, with future plans for a full-chip 8-port switch and potential integration of Content-Addressable Memory.

Bijou64: A variable-length integer encoding

inkandswitch.com · 29 May

Cybersecurity · Low-Level Programming · Performance

bijou64 is a new variable-length integer encoding designed for security and speed.

By ensuring canonical representation by construction, it eliminates common vulnerabilities where systems inconsistently decode non-unique integer formats. With faster decoding through predictable branch patterns and contiguous byte loads, it outperforms LEB128 while maintaining compact size, making it ideal for signature-based binary protocols.

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