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.
Uncovering Hidden TCP Throttling in the Linux Kernel
Backend · Linux · Low-Level Programming · Performance · Operating Systems
CDN77 traced intermittent nginx download throttling to hidden Linux cgroup socket pressure, not network, configuration, or userspace issues.
During cache misses, failed memory reclaim within nginx’s non-root cgroup triggered vmpressure(), shrinking TCP receive thresholds to four advertised MSS values and throttling every socket in the cgroup, even with abundant free RAM. Moving nginx to the root cgroup stopped the issue. Since Linux 6.19, memory.events exposes a sock_throttled counter for this mechanism.
Rust’s borrow checker accepts an unsound program involving a generic type with a custom `Drop` implementation.
The example stores a reference to a stack-local `String` in `Q`, whose `Drop` moves it into a global `Mutex<Vec<Box<dyn Any + Send>>>`, then reads it after the local expires. It compiles on current nightly and stable versions back to 1.85.0, prints unrelated stack data, and triggers AddressSanitizer’s stack-use-after-scope error.
This repository provides a comprehensive reverse-engineered source code analysis of the 1982 Atari 2600 classic, Raiders of the Lost Ark, originally designed by Howard Scott Warshaw.
The analysis detail includes the disassembly of 8KB of ROM code across two banks, explaining how the 6502 assembly manages the hardware limitations of the Atari Television Interface Adaptor (TIA). Key technical features explored include the bank-switching mechanism using zero-page RAM trampolines, the division of game logic across TV signal phases (VSYNC, VBLANK, Kernel, and Overscan), and the specific rendering kernels for rooms like the Thieves' Den and the Ark Room. The project also documents unique programming tricks such as using bit 7 of sprite data for inline TIA register modification and the logic behind inventory management, collision detection, and the scoring system.
15M web servers on one VM – smoltcp, DPDK, AF_XDP
Backend · Linux · Low-Level Programming · Performance · Operating Systems
Running 15 million web servers on one 10GB, one-core VM requires replacing Linux’s per-socket overhead with a custom runtime and userland networking.
A kernel socket consumes roughly 3,300 bytes, causing out-of-memory near 2.5 million servers. Using LFI isolation, a scheduler, and smoltcp over DPDK or AF_XDP, the proof of concept reached 16 million servers, using about 620 bytes per idle server and roughly 1KB per active one; DPDK performed best, with AF_XDP close behind.
Christopher Domas’s skitter-creek-bath-salts research demonstrates how modifying undocumented AMD Family 16h DRAM-controller address transformations can create aliases to protected memory.
Using cache/TLB coordination and GF(2) linear algebra with z3, the toolchain reportedly reads or writes PSP, SMRAM, C6 state, and microcode stored in DRAM, exposing limits of higher-level isolation mechanisms.
Armstrong Subero challenges Dmitry Grinberg’s criticism of RISC-V, acknowledging flaws in extensions and encoding but arguing they matter less than affordability, availability, and openness.
Using CH32, Baochip, and OrangePi examples, he shows one ISA scaling from ultra-cheap MCUs to protected Linux-class systems, unlike ARM’s licensed product boundaries, enabling global education and experimentation.
An OS with no threads: The Actor Model
Design Patterns · Low-Level Programming · Rust · Software Architecture · Operating Systems
DbgOS uses an actor-based, threadless concurrency model in which isolated actors communicate only through messages, avoiding shared writable memory, locks, blocking, and re-entrancy.
Rust-generated type metadata serializes and migrates state, while bounded handlers let the OS safely hot-swap entire modules after active work finishes. This enables applications, drivers, and UI components to update without rebooting or losing state, at the cost of cooperative multitasking for CPU-intensive work and manual async structuring.
Writing USB drivers is accessible without deep kernel knowledge, thanks to userspace libraries like libusb.
This guide explains USB enumeration, endpoints, and descriptors using an Android phone in Fastboot mode. By understanding device identification and transfer types (Control, Bulk, Interrupt, Isochronous), developers can create functional drivers in userspace, mirroring simple network socket communication.
FEX explains why emulating x86-TSO on ARM remains difficult: ARM’s weaker ordering, alignment rules, split-lock atomicity, and write-combine memory create severe performance and correctness problems.
Newer LRCPC/LSE2 features, Apple’s hardware TSO mode, Qualcomm’s coherent cachelines, kernel patches, and UMA workarounds help, but full split-lock and uncached-memory support still require architectural improvements.
AOSP Source Releases Are So Late Developers Disassemble Libraries to Report Bugs
Android · C · Low-Level Programming · Mobile
Android 17 September 2026 builds contain a bionic libc regression in `wcscspn()` and `wcspbrk()`: with reject sets of at least two characters all below U+0100, both incorrectly stop at the first haystack character ≥ U+0100.
The table-based scan treats that character as a match, breaking Unicode text handling; `wcsspn()` remains correct. Pixel 7 and 8a are affected, and Visual Pinball required plain-loop workarounds. Public June sources do not contain the regression.
HackiOS boots Apple’s open-source XNU kernel (xnu-8796.121.2, iOS 16.5) on Android hardware and runs the unmodified iOS 16.5 user space, from launchd through SpringBoard and apps.
It combines an EFI loader, UEFI port, XNU patches, replacements for closed Apple drivers, a Linux Wi-Fi driver compatibility layer, and injected libraries. It supports QEMU and the POCO X5 Pro 5G, with touchscreen, GPU, Wi-Fi, sound, camera, and many apps working, while cellular, Bluetooth, Metal for apps, and charging remain unsupported.
Linux 7.3 has been released by Linus Torvalds, bringing a record 18,765 non-merge commits from 3,021 developers, including 807 first-time kernel developers.
Major changes include binfmt_misc extensions, group scheduling for large-system performance, failfs, fchroot(), global per-CPU BPF data, sched_ext completion, VM working-set tracking, ntfs3 alternative data streams, and numerous SMB server improvements. The 7.4 merge window opens next.
A compact UTF-8 DFA enables branchless shift-DFA transitions, parallel validation, and immediate error recovery.
Its 13 valid states are packed into overlapping uint32_t constants, shrinking the lookup table from 2 KiB to 1 KiB with help from a SAT solver. A SYNC state supports parallel chunks with four-byte overlap. The roughly 30-line scalar C implementation validates Chinese text about 2.5× slower than simdutf but 9× faster than Höhrmann’s minimal validator.
The article redesigns conversion of a daily timestamp into hour, minute, and second by breaking dependency chains and replacing division with fixed-point multiplication.
Its V1, V2, and V3 algorithms achieve substantially lower latency—down to five cycles—while preserving throughput, with platform-specific SIMD variants. It also covers milliseconds, leap seconds, compiler limitations, and benchmark results across x86, ARM, and Apple Silicon.
Wanted to download an ISO, ended up writing a kernel exploit
Cybersecurity · Hardware · Linux · Low-Level Programming · Operating Systems
A TP-Link EAP770 v1 corrupted large LAN-to-Wi-Fi downloads because Qualcomm’s qca-nss-dp driver mishandled DMA cache coherency during packet-buffer recycling, allowing dirty 64-byte cache lines to overwrite received data before checksum recalculation.
TP-Link had EOL’d the device and blocked the required sysfs changes, so the author used CVE-2022-0185 and pipe-buffer manipulation to gain kernel-level access and disable SFE/PPE. Corruption stopped, with download speed falling about 8%; a separate Qualcomm Wi-Fi firmware bug caused periodic transmission stalls.
xnulinux runs macOS userspace natively alongside Linux by loading Apple’s open-source XNU as xnu.ko inside an unmodified arm64 Linux kernel, without a hypervisor.
Its FKI module supplies CPUs, memory, faults, files, networking and host calls, while kexts provide disk, framebuffer, input and GPU access. On Apple Silicon Linux VMs, macOS 27.2.1 reaches the desktop and supports major apps; it requires a user-owned macOS installation and still uses patched AMFI, relaxed SIP and 4K-page memory.
Modern Windows apps, often built on memory-heavy web frameworks, have lost the unique visual identity of the Win32 era.
This technical analysis explores how raw Win32 API enables non-rectangular, custom-shaped, and animated windows. While challenging to implement, this low-level control offers a powerful alternative to generic, bloated desktop software, restoring creative freedom to application interface design.
After seven years with Rust, the author reimplemented JSONPath (RFC 9535) in Zig, comparing both languages through IDE support, build tooling, project structure, testing, functional programming, mutation, allocators, ownership, and libraries.
Zig’s CLI workflow, simplicity, speed, and low-level potential impressed them, but manual memory management, immature ecosystem, and evolving APIs made Rust safer and more readable.
FeSens/openTPU
Artificial Intelligence · Hardware · Large Language Models · Low-Level Programming · Performance
openTPU is an open-source AI accelerator that unifies SystemVerilog RTL, an 8×32-bit ISA, bit-exact simulator, kernel language/compiler, host tools, and profiler to make neural-network inference understandable and runnable on hardware.
It targets a 4 GiB Kintex-7 PCIe card, runs models including Qwen3, LFM2.5, and Qwen3.5, and matches simulator tokens bit for bit. Its explicit instruction-driven architecture exposes data movement and timing, while 4-bit weights and expert offloading extend capacity and improve decode speed.
Performance optimization requires understanding hardware-level data access.
By shifting from an Array of Structs to a Struct of Arrays, developers can improve cache utilization. Aligning data structures with CPU cache line sizes and minimizing working set sizes significantly reduces memory latency, especially in random access scenarios where CPU prefetching is ineffective.