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.
This overview explores memory allocation across systems languages including Rust, Zig, Odin, C3, and Hare.
It details how modern languages treat allocators as first-class citizens with explicit control, compared to C's traditional libc approach. The article concludes by demonstrating how to implement a modern, interface-based allocator system in C to improve flexibility and error handling.
A custom HTTP/SSE server, c1bhttpd, held about 1.018 billion simulated IPv4 TCP connections on a laptop using 12.54 GiB—roughly 13.4 bytes per connection—by bypassing kernel connection state, using SYN cookies, compact hashing, table-based keepalives, and single-packet messages.
Over a gigabit link, 99.87% connected, remained 17 hours with 70,205 accidental drops, and delivered an alert to 1,018,540 subscribers. The experiment demonstrates C1B feasibility, not production readiness; TLS and richer TCP features were excluded.
turbopuffer reduced full-text search latency from 220ms to 47ms by optimizing Rust's "zero-cost" iterators.
They discovered that recursive iterator calls prevented CPU vectorization and SIMD optimizations. By implementing batched iterators—a classic database technique—they amortized merge overhead and enabled the compiler to generate highly efficient vectorized code for large-scale document filtering.
The author describes building a source-based NixOS installation for the Steam Link, an ARM device whose bootloader accepts only Valve-signed kernels.
A custom kernel module adds kexec to the stock kernel, enabling boot into a cross-compiled NixOS kernel and userspace. The article covers kernel and module builds, USB-image creation, hardware debugging, and trimming the image from 2.3GB to 1.2GB.
Verified Garbage: An experimental formally verified cryptography library
Cybersecurity · Encryption · Low-Level Programming · Performance
Verified Garbage is an experimental cryptography library that writes implementations in assembly and formally verifies correctness, well-definedness, and constant-time behavior for each supported ISA.
Lean specifications model cryptographic algorithms and CPU instructions, while LLMs help generate and optimize implementations. It supports all algorithms used by pyca/cryptography across x86, x86-64, ARMv7, ARM64, PPC64le, and RISCV64. The Rust library and rustls provider are available, but its LLM-authored specifications remain a human-reviewed trusted computing base.
rat's minimal register allocator
Algorithms · Low-Level Programming · Performance · Programming Languages
rat replaced its 1,392-line linear scan register allocator with a 584-line priority bin-packing allocator that assigns live ranges by priority, using coalescing, holes, spill weights, and physical-register hints.
It performs no eviction, splitting, or second allocation pass, yet produces better code: 3.6% fewer instructions and 22% fewer stores. On sqlite at -O0, allocator time fell 77% and total compile time 43%, showing that simpler heuristics retained most benefits.
Solaris popularized turnstiles, space-efficient structures that move waiter queues and priority-inheritance state outside contended mutexes.
Per-thread turnstiles are associated with locks through a hash table, enabling multi-hop priority propagation along owner chains while preserving low latency and scalable fine-grained locking. Variants appear in UNIX-derived kernels and runtimes, though multiple-owner locks remain difficult.
A reverse-engineering effort successfully unlocked local streaming on a cheap Tuya-based IP camera by modifying its firmware.
Analysis of the ARM `ppsapp` binary identified ONVIF on port 8000, RTSP on 8554, and a Tuya cloud-connectivity check that silently blocked requests. The author rebuilt the 4-KB JFFS2 and CramFS images, patched ONVIF and network-state logic, used UART and U-Boot access, and recovered the `pps_password`. After correcting a missing `lib` directory, the camera exposed a working RTSP stream.
Reverse engineering the Wii U’s DMCU firmware identified and fixed Wii Mode’s forced cropping and chroma bleed.
The DMCU, an M68HC11-based microcontroller also used in modern AMD GPUs, configured an overscan viewport that cropped up to 16 pixels. Two firmware typos prevented event handling and incorrectly controlled the CBCR_SWAP setting for image origins. OpenDMCUFirm includes the fixes, which can be loaded through the latest evWii release.
A bare-metal Rust experiment on the Terasic DE0-Nano-SOC successfully boots both Cortex-A9 cores, enables MMU and caches, and starts SMP.
However, Core 1’s update to a shared AtomicBool remains invisible to Core 0 despite configuring the SCU and cache controllers. The author documents the hardware, initialization code, and unresolved cache-coherence failure, seeking the missing configuration step.
Pin is a Rust pointer wrapper ensuring that self-referential types, such as async state machines, do not move in memory.
This prevents dangling pointers by restricting mutable access to !Unpin types. Developers typically manage pinning via Box::pin, the pin! macro, or Unpin implementations, ensuring Rust’s memory safety without a garbage collector.
A developer successfully ported Doom to a 2005 Snom 360 Business VoIP phone.
The process involved gaining shell access via serial port, reverse engineering custom drivers through Ghidra for the MIPS-based Linux 2.4 system, and implementing a display driver for the 132x64 1-bit screen using the doomgeneric framework to handle rendering and keypad input.
Proprietary NVIDIA drivers now work experimentally on musl in Chimera Linux through a pull request supporting the 580 and 620 branches on x86_64 and aarch64.
The solution switches Mesa to GLVND, updates gcompat, patches driver ELF files with patchelf, adds ifunc support and static-TLS handling to a custom musl-nvidia, and shims glibc-style mutex initialization. Testing succeeded with a GTX 980 Ti; reported results also include RTX 3070 Ti and partial AArch64 support, though packaging still needs refinement.
Redox OS’s August 2026 update highlights major performance and platform advances: Redox Rings boosted some I/O benchmarks by 14–15x, a kernel memory-leak fix cut GCC test compilation from up to 10 hours to about 30 minutes, and ARM64 multicore and NUMA support progressed.
Redox also ran QEMU, gained Linux dual-boot installation, and received extensive kernel, security, library, and tooling improvements.
The article highlights three programming language features: flow typing, which enables type narrowing with minimal runtime cost; Rust’s borrow checker, which prevents data races and memory errors at compile time; and D’s contract programming, which expresses assertions, preconditions, postconditions, and class invariants directly in code.
Babashka 1.13.220 introduces experimental babashka.ffi for calling C libraries from Babashka and JVM Clojure.
It adds explicit memory management, safer arena-based allocation, SQLite integration, and new demos. The release changes Linux binaries to mostly-static builds, while task improvements support dependency composition, inherited CLI options, direct exec arguments, and lazily loaded command trees.
A practical guide to programming CHIP-8 explains its 34-instruction virtual ISA, tight memory and hardware constraints, Octo syntax, and portability hazards caused by divergent interpreters.
It recommends conservative register, memory, graphics, input, timing, and control-flow practices, while showcasing self-modifying code and optimization techniques. CHIP-8 remains an accessible gateway to emulator and bare-metal programming.
lucyNES is a NES emulator written in Odin, developed over seven months and paused in January 2025.
It runs Battletoads and hundreds of other games, with a debugger, Save states, controller support, CRT Shader, partial sound, and seven supported mappers. The project showed that accurate NES emulation requires precise CPU–PPU timing and detailed cartridge mapper behavior. Odin’s strong typing, raw unions, bit fields, and manual allocators suited the work, but sound and mapper support remain incomplete.
This article explores technical techniques for executing code before fn main() in Rust.
By leveraging linker sections and constructor functions, developers can enable efficient, lock-free global initialization and dependency injection without runtime overhead. While powerful for performance and architectural decoupling, these methods involve complex linker interactions and require careful memory management to remain safe.
LEST is a pre-release first-person 3D game for an unmodified Commodore 64, designed to achieve full-resolution 160×200 multicolour graphics at a smoother frame rate than typical C64 3D games.
Its 6502 renderer uses character-mode framebuffer sampling, mirrored scenes, hinted ray casting, interpolation, caching, and hardware-sprite culling and occlusion. Ten levels load from disk or EasyFlash cartridge, with browser play via EmulatorJS. The repository includes assets, custom build tools, tests, and memory and load-time optimizations.