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 · 428 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

JSLinux Now Supports x86_64

bellard.org · 9 Mar

Hardware · Low-Level Programming · Operating Systems

This technical overview lists available emulated systems, including architectures like x86_64, x86, and riscv64.

It covers operating systems such as Alpine Linux, Windows 2000, and Fedora 33. Key features include variations in User Interface, VFsync access, and specific hardware support like AVX-512 and APX, providing diverse environments for testing and development.

SectorC: A C Compiler in 512 bytes

xorvoid.com · 7 Feb

Low-Level Programming · Open Source · Computer Science

SectorC is a minimalist C compiler written in x86-16 assembly that fits within an incredible 512-byte boot sector.

Despite its extreme size constraints, it supports a functional subset of C including variables, functions, systems-level inline machine code, and control flow like if and while statements. To achieve this, the developer utilized a simplified 'Barely C' syntax where space-delimited tokens allow the compiler to use a simple atoi function as a makeshift hash for keywords and identifiers. This clever design minimizes the need for a complex lexer and symbol table, effectively trading potential hash collisions for extreme portability. The project demonstrates that complex software can be reduced to its bare essentials through creative engineering, enabling the creation of sine-wave animations and audio programs directly from a boot sector.

OpenSSL: Buffer overflow in EVP_EncodeBlock() (CVE-2026-121481, CVSS 9.8)

github.com · 20 Nov

Cybersecurity · C · Low-Level Programming

OpenSSL fixes CVE-2026-121481, a CVSS 9.8 buffer overflow in `EVP_EncodeBlock()`, by returning `-1` for NULL buffers, negative lengths, and encoded sizes exceeding `int`.

Similar validation is proposed for `EVP_DecodeBlock()`, alongside correcting `base64encode()` length checking in `http_client.c`. Tests and documentation are added. The vulnerability can be triggered through `openssl s_client` with a large `-proxy_pass`, supplied via an environment variable to avoid command-line length limits.

How 4 bytes of padding make array clearing 49% faster

blog.andr2i.com · 22 Jun

Low-Level Programming · Performance · Computer Science

Adding 4 bytes of struct padding in Go can improve array-clearing performance by 49% on Intel systems.

This speedup occurs because aligned memory allows the CPU to utilize efficient REP STOSQ instructions without triggering performance-degrading read-for-ownership cache line handling. Similar impacts on other architectures are minimal, highlighting the importance of memory alignment in low-level systems programming.

A nicer voltmeter clock

lcamtuf.substack.com · 16 May

Hardware · Low-Level Programming · Programming Languages

A hobbyist documents the design of a stylish voltmeter clock using analog panel meters and a custom wooden enclosure.

Created with an AVR128DB28 MCU, the project uses high-frequency digital pulse control instead of DACs to drive the meters. The build process highlights CNC milling and bent wood techniques for a polished, aesthetic finish.

Hardware backdoors in some x86 CPUs

github.com · 8 Aug

Cybersecurity · Hardware · Low-Level Programming

Project Rosenbridge exposes a hardware backdoor in certain VIA C3 x86 processors, comprising a hidden embedded core that bypasses security protections.

While typically inactive, it is enabled by default on some systems, allowing unprivileged users to escalate to kernel-level access. Researchers provided tools to detect and disable this vulnerability to improve system security.

Booting from a vinyl record (2020)

boginjr.com · 19 Nov

Hardware · Low-Level Programming · Computer Science

This technical project demonstrates a unique method of booting an original IBM PC, model 5150, using an analog record player.

By utilizing the often-forgotten built-in cassette interface, the author created a custom ROM bootloader that reads digital data stored as audio on a 10-inch vinyl record. The record contains a 64K RAM drive image featuring a modified FreeDOS kernel, a micro variant of COMMAND.COM, and INTERLNK for file transfers. To ensure successful data modulation via the cassette modem, specific signal adjustments were made through a vintage Harman&Kardon amplifier to manage RIAA equalization. The experiment highlights the flexibility of early PC hardware and the intersection of analog audio technology with legacy computing systems, proving that data can be reliably retrieved from unconventional storage media if signal integrity is maintained.

deepseek-ai/DeepGEMM

github.com · 6 Oct

Artificial Intelligence · C++ · Low-Level Programming · Machine Learning · Performance

DeepGEMM is a unified CUDA library of high-performance tensor-core kernels for LLM primitives, including FP8, FP4, and BF16 GEMMs, grouped and masked MoE operations, MQA scoring, HyperConnection, and Mega MoE.

It uses DeepJIT to compile kernels at runtime, avoiding CUDA compilation during installation, and favors a small, accessible codebase over heavy CUTLASS templates. It targets NVIDIA SM90 and SM100 GPUs and claims performance matching or exceeding expert-tuned libraries, reaching up to 1550 TFLOPS on H800.

Moving beyond fork() + exec()

lwn.net · 5 Jun

Linux · Low-Level Programming · Programming Languages

Linux developers are exploring alternatives to the traditional fork() and exec() system calls to improve process creation performance.

Li Chen proposed a 'spawn template' mechanism to accelerate repeated execution, but community feedback suggests moving toward a more efficient, native posix_spawn() implementation using pidfd abstractions to fundamentally avoid the costs associated with copying existing process states.

pithings/unkernel

github.com · 17 Nov

JavaScript · Linux · Low-Level Programming · Software Architecture · Operating Systems

unkernel compiles a real Linux 7.x kernel to one WebAssembly module, including its MMU, syscalls, scheduler, filesystems, and TCP/IP stack.

An embedded kwemu emulator runs unmodified aarch64 Linux binaries, while a runtime JIT accelerates hot code. It boots Alpine or Debian to a shell in under a second, entirely on-device in browsers or Node, with persistent disks, networking, devices, and a TypeScript SDK for embedding Linux applications.

Commodore 64 released September 1, 1982

dfarq.homeip.net · 1 Sept

Hardware · Low-Level Programming · Programming Languages

The Commodore 64 launched in 1982 with an unusually strong price-to-capability balance: 64KB RAM, colorful graphics, sprites, and the flexible SID sound chip.

Despite compromises, it sold roughly 12.3 million units and remained popular into the 1990s. Its accessible programming environment nurtured technical careers, shaped personal computing culture, and still inspires retro hardware and software projects.

You can beat the binary search

lemire.me · 27 Apr

Algorithms · Low-Level Programming · Performance

The SIMD Quad algorithm optimizes searching for 16-bit integers in sorted arrays by combining quaternary interpolation with SIMD instructions.

This hybrid approach outperforms standard binary search by leveraging data parallelism and memory-level parallelism, proving faster across both cold and warm cache scenarios on modern ARM and x64 processors.

What is malloc doing, anyway?

benmandrew.com · 8 Nov

C · Linux · Low-Level Programming · Operating Systems

In glibc, malloc avoids costly kernel calls by acquiring memory in larger chunks and serving subsequent small allocations from its internal pool.

A program making 1,000 malloc(16) calls triggers only two brk syscalls: one queries the program break and one expands the heap by 132 KiB. The process address space contains regions such as text, data, bss, heap, libc, and stack; huge gaps between them are typically unmapped and consume no physical memory.

ntfargo/Relapse-Exploit

github.com · 29 Sept

Cybersecurity · JavaScript · Low-Level Programming

Relapse-Exploit is a PS5 exploit chain supporting firmware 7.00–13.60.

It combines a WebKit/JSC browser vulnerability with a kernel-stage address leak and `aio_multi_wait` UAF race to obtain kernel read/write access, then loads payloads through an ELF loader. Intended for authorized security research, it carries stability, data-loss, and account-ban risks.

snuri00/ps2-web-recomp

github.com · 12 Oct

C++ · Low-Level Programming · Software Architecture

PS2 Web Recomp runs PlayStation 2 games in browsers without emulation by statically translating Emotion Engine code to C++, compiling it to WebAssembly, and linking it with a native PS2 runtime using WebGPU.

Gran Turismo 4 and God of War II boot through gameplay with sound, movies, and browser-persistent memory cards. It models PS2 floating-point behavior, vector units, GS rendering, I/O, and SPU2 audio; disc data streams through HTTP Range requests, while game-specific code is unnecessary for the two tested titles.

How Pizza Tycoon simulated traffic on a 25 MHz CPU

pizzalegacy.nl · 9 Apr

Low-Level Programming · Programming Languages · Computer Science

The 1994 game Pizza Tycoon simulated traffic on a 25 MHz CPU by using a simple, efficient grid-based system where road tiles dictate movement.

Rather than complex pathfinding or physics, it used one-way road logic, cheap pairwise collision checks with early exits, and pixel-based movement, maintaining performance by spreading computation across frames.

How Kernel Anti-Cheats Work

s4dbrd.github.io · 15 Mar

Cybersecurity · Low-Level Programming · Windows

A technical exploration of modern kernel-level anti-cheat systems.

It examines the architectural layers (ring 0 drivers), Windows kernel callback mechanisms, and memory protection techniques like VAD tree walking. It also addresses advanced threats like DMA-based cheats, BYOVD attacks, and the growing role of behavioral AI and hardware attestation in game security.

C for Rust Programmers

bd103.dev · 7 Oct

C · Low-Level Programming · Programming Languages · Education

C for Rust programmers highlights C’s major differences and hazards for systems developers coming from Rust.

Boolean support historically relied on integers and `<stdbool.h>`; strings use null terminators; integer widths vary by target, especially `long`; and errors commonly use sentinel values or `errno` without compiler enforcement. C also separates `.` and `->` field access, converts function array parameters to pointers, and provides only raw pointers, leaving memory safety to the programmer and risking out-of-bounds bugs.

Squashfs: Fix a lot of AI issues and AI style issues

lkml.iu.edu · 1 Dec

C · Linux · Low-Level Programming · Operating Systems

Phillip Lougher’s 23-patch Squashfs series addresses issues identified by AI analysis, including a NULL inode dereference in debug-enabled squashfs_lookup(), stricter metadata-padding validation, compressed-block checks, and index sanity changes.

Andrew Morton identified the lookup crash, questioned compatibility with existing images and patch ordering, and reported successful limited builds and reads. Lougher defended the stricter checks as intentional security validation, acknowledged minor errors, and objected angrily to the review, saying he might resign as maintainer.

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