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

Someone used AI to rewrite Nvidia's Linux driver in Rust, and its unlocked clocks already beat the original

xda-developers.com · 30 Nov

Hardware · Linux · Low-Level Programming · Performance · Rust

Eric Hartford released nvdriver v0.1, an AI-assisted, reverse-engineered Rust kernel driver for Nvidia GPUs that replaces the proprietary driver while still using Nvidia userspace libraries.

Tested only on headless Tesla V100-SXM2-32GB cards, it automatically raises memory clocks from 877.5 to 1107 MHz and beats driver 580.178.04 in most benchmarks, including 26.8% higher memory bandwidth and 9.7% faster FP16 GEMM. Display and gaming GPU support remains untested.

boykopovar/AnyPS5

github.com · 5 Oct

C++ · Low-Level Programming

AnyPS5 automatically ports PS5 executables to Linux and Windows without emulation or a separate runtime process.

Its relinker converts executables to native target formats, while implementations of system prx libraries support dynamic linking. The project includes SDL-mapped controller input, configurable keyboard and mouse controls, and a shader recompiler that produces validated SPIR-V. Dreaming Sarah reaches stable 60 fps on a GTX 1050 Ti and i5-7500; unsupported states terminate with std::runtime_error.

I Ported Mac OS X to the Nintendo Wii

bryankeller.github.io · 8 Apr

Hardware · Low-Level Programming · Computer Science

A developer successfully ported Mac OS X 10.0 Cheetah to the Nintendo Wii.

By writing a custom bootloader, patching the Mach-O kernel, and developing IOKit drivers for the Wii's Hollywood SoC, the project achieved a functional desktop environment. This effort involved solving complex challenges like endianness, framebuffer rendering, and USB hardware communication.

QuixiAI/nvdriver

github.com · 30 Nov

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

nvdriver is a clean-room, open-source #![

no_std] Rust Linux kernel driver intended as a drop-in replacement for NVIDIA’s proprietary driver. It supports unmodified CUDA, PyTorch, NVML, media stacks, and companion modules while removing stated product-tier restrictions such as limited P2P, BAR1, profiling, NVENC, and vGPU access. The repository reports physical validation on eight Tesla V100 GPUs, including 1,041.7 GB/s per-card HBM2 bandwidth, while other architectures remain offline-verified or awaiting hardware testing.

Hardware researcher spins up 'CPU deoptimization' project to find the slowest single x86 instruction, creates hall of shame — worst offender takes 198 billion cycles spanning 62 seconds to execute

tomshardware.com · 8 Aug

Hardware · Low-Level Programming · Performance

Hardware researcher Christopher Domas created the CPU Deoptimization leaderboard to identify the slowest x86 instructions.

By manipulating PCIe fabric through MMIO and state restoration, he achieved a record-breaking 198 billion cycle latency (62 seconds) for the xrstore64 instruction. This project highlights deep architecture vulnerabilities and provides a unique, tongue-in-cheek perspective on low-level performance bottlenecks.

Java4Shell: RCE in OpenJDK when processing Base64

calif.io · 17 Nov

Cybersecurity · Java · Low-Level Programming

Calif disclosed Java4Shell (CVE-2026-114938), a critical OpenJDK memory-corruption flaw in the x86-64 AVX-512 VBMI Base64 intrinsic.

Malformed input—64 “A” characters followed by “=”—can trigger a 64-byte write past a Java array, enabling heap disclosure and potentially RCE; OpenJDK 17 uses 128 “A” characters. Tested applications including Keycloak, Jira, Jenkins, and Elasticsearch were exploitable under various conditions. OpenJDK issued patches; users should update or disable Base64 intrinsics/AVX-512.

JustVugg/colibri

github.com · 2 Nov

Artificial Intelligence · C · Large Language Models · Low-Level Programming · Performance

colibri is a pure-C, zero-runtime-dependency inference engine that runs very large mixture-of-experts models on consumer hardware by keeping dense layers in RAM and streaming routed experts from disk.

It supports 13 engines, models up to 2.8T parameters, CPU execution, Vulkan and CUDA GPUs, GGUF files, and Apple Silicon Metal. Its adaptive expert caches, disk-read overlap, hardware-aware setup, OpenAI- and Anthropic-compatible APIs, dashboard, and System One decision interface distinguish it from conventional inference runtimes.

I trained a 1.51M parameter Transformer from scratch inside Ring-0 TempleOS V5.03 in pure HolyC (1,241 tok/s), plus a live browser TempleOS VM & SFT trainer

veriepicc.github.io · 2 Dec

Artificial Intelligence · Deep Learning · Large Language Models · Low-Level Programming · Machine Learning

veriepicc built and trained a 1.51M-parameter Transformer from scratch in Ring-0 TempleOS V5.03 using pure HolyC, achieving 1,241 tokens per second.

The project includes a live browser-based TempleOS VM for chatting with the model and a JavaScript SFT trainer that runs outside the VM because emulated training is too slow. Users can manually load Elijah weights, train on text, JSON, or JSONC datasets, and adjust kernel settings.

Docker is weird

codeandcake.dev · 22 Oct

Docker · Linux · Low-Level Programming · Operating Systems

Docker containers are Linux processes rather than virtual machines, assembled from namespaces, cgroups, networking, and other kernel features.

Docker images are directories used as a process’s root filesystem. Its runtime, runc, uses complex workarounds because Go is multithreaded and lacks fork, including a C module and re-executing /proc/self/exe. Docker typically requires root for kernel APIs, while rootless networking may require a userspace network stack.

Qwenputer: A functioning, deterministic RISC-V CPU inside Qwen3.5

divagr.com · 29 Oct

Artificial Intelligence · Large Language Models · Low-Level Programming · Machine Learning · Computer Science

Qwenputer embeds a deterministic 32-bit RISC-V CPU in Qwen3.5-4B’s weights, using Gated DeltaNet state as exact, addressable RAM and running entirely during forward passes without external tools or runtimes.

Compiled layers implement RV32IM, Zba, big-number arithmetic, C, and MicroPython; the CPU passes riscv-tests, ran 18 million instructions without error, and reaches 100% on NUPA long-integer arithmetic. An experimental filesystem stores up to 512 files, but the 18.8-GB model requires RvChat and runs slowly.

Storing 2 bytes of data in your Logitech mouse

timwehrle.de · 21 Mar

Hardware · Low-Level Programming · Rust

A developer successfully used the Logitech MX Vertical mouse as a tiny, persistent storage device by hacking its HID++ protocol.

By writing arbitrary two-byte data into the DPI register, they demonstrated that the mouse maintains state across devices. The project highlights reverse engineering, firmware communication, and understanding OS-level hardware management through experimental technical exploration.

Assembly Hall of Shame

github.com · 6 Aug

C · Hardware · Low-Level Programming

The Assembly Hall of Shame is a project by Christopher Domas that identifies the slowest possible single instructions on x86 architectures.

By deliberately triggering microcode assists, hardware traps, or saturating PCIe fabric with high-latency MMIO transactions, it reveals extreme performance penalties, with the record-holding 'fxrstor64' instruction taking over 198 billion cycles to complete.

Introducing CUDA Rust: Two Tracks for Writing GPU Kernels

developer.nvidia.com · 8 Sept

Hardware · Low-Level Programming · Programming Languages

NVIDIA is developing native GPU programming in Rust through two early-stage CUDA Rust tracks: cuda-oxide for SIMT kernels and cutile-rs for Tile kernels.

Both compile or JIT-compile Rust to GPU code while using Rust’s ownership and type systems to catch aliasing and safety errors. Tile simplifies architecture mapping; SIMT preserves low-level control, including performance-critical tuning.

Defeating a 40-year-old copy protection dongle

dmitrybrant.com · 1 Feb

Low-Level Programming · History · Computer Science

In a unique case of software archaeology, a researcher successfully bypassed hardware-based copy protection for a legacy RPG (Report Program Generator) II compiler used by an accounting firm.

The firm was incredibly still running Windows 98 in 2026 to execute 40-year-old software requiring a physical dongle on a parallel port. By using the Reko disassembler to analyze 16-bit x86 executables, the researcher identified a specific 0x90-byte code segment responsible for dongle communication. Analysis revealed that the routine returned a constant value in the BX register regardless of input. Through brute-force testing within DosBox, the constant was identified as 7606h. Applying a four-byte assembly patch (MOV BX, 7606; RETF) successfully emulated the dongle presence, allowing the software—and its compiler—to run on modern emulators without the original hardware.

The gold standard of optimization: A look under the hood of RollerCoaster Tycoon

larstofus.com · 22 Mar

Low-Level Programming · Performance · Programming Languages

RollerCoaster Tycoon remains a benchmark for game performance, largely due to Chris Sawyer’s expert use of Assembly and aggressive low-level optimizations.

By balancing technical constraints with design choices—such as clever pathfinding limitations and simplifying complex agent interactions—Sawyer prioritized engine efficiency, creating a seamless simulation that holds up decades later.

Frostbite: A new CPU architecture discovered, designed and verified by AI

architectlabs.com · 18 Nov

Artificial Intelligence · Hardware · Low-Level Programming · Computer Science

Architect Labs introduced Frostbite, a general-purpose CPU with a new instruction set designed and verified by AI.

Its interaction-net model makes dependencies explicit, values single-owner, and computation local, enabling spatial parallelism and local memories. Across 25 workloads, one quad achieved 4.59x performance-per-watt versus a silicon-proven dual-issue in-order TCPU, and 8.77x performance-per-area. Frostbite reached 500 MHz in final 7 nm GDS; planned steps include FPGA-hosted access, an operating system, broader benchmarks, and releasing its RTL and ISA.

Jailbreaking the Switch 2

pepsipu.com · 22 Oct

Cybersecurity · Low-Level Programming · Operating Systems

ns2jb is a software-only, tethered jailbreak for Switch 2 firmware 23.0.1 that enables native code execution as ordinary and built-in sysmodules.

A SmileBASIC integer-overflow exploit provides memory access, while a `fs` path-normalization buffer overflow enables arbitrary read/write and bypasses executable verification, allowing custom programs to run with sysmodule permissions. The jailbreak supports homebrew, save backups, peripheral access, reverse engineering, and game modding, demonstrated with a modified Mario Kart World.

hyperionaidev/smolmaxxing

github.com · 12 Nov

Artificial Intelligence · Large Language Models · Low-Level Programming · Performance · LLM Benchmarks

smolmaxxing enables different LLMs to run on extremely constrained hardware by optimizing llama.cpp for memory, CPU compute, and flash bandwidth.

On a Xiaomi TV Box S with about 1 GB usable RAM, it runs models from 260K to 16B parameters, including Qwen3.5-2B at 7.7 tok/s and Moon-Beam-8B-A1B at 7.2 tok/s. On a 2013 iPad Air, Bonsai-1.7B reaches 23.7–25.8 tok/s. Distinctive techniques include custom ARM kernels, pruned vocabulary heads, 1-bit lookup tables, expert paging, prefetching, and weight streaming, with experiments documented in detail.

synchopate/llama-modchip

github.com · 8 Nov

Artificial Intelligence · C++ · Large Language Models · Low-Level Programming · Performance

llama-modchip is a customized llama.cpp-based inference stack that enables local CPU or hybrid CPU/GPU execution of large MoE models without requiring dedicated GPUs.

Its Fractal-64 quantization, SwiGLU-H2 compression, cache-aware AVX kernels, MoE routing, and Stockfish-PVS speculative decoding fit DeepSeek-V4-Flash 284B in under 59 GiB RAM at 256K context, while Nemotron-3.5-30B-A3B reaches up to 60.4 tok/s on CPU. It also provides Windows, macOS, Linux, Apple Silicon, ARM64, Claude Code integration, benchmarking, and model-transcoding tools.

Rust Is Tier-1 Language at Microsoft

rustfoundation.org · 10 Sept

Low-Level Programming · Programming Languages · Windows

Microsoft has designated Rust a Tier-1 language, providing internal teams with secure toolchains, production workflows, and deep Windows integration.

Its new rustc_codegen_utc backend connects rustc to MSVC, enabling shared code generation, security, diagnostics, optimization, and Rust/C++ interoperability. Production-ready since early 2026, it already supports over 100 Microsoft repositories.

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