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.
A recent LLVM update caused a 25% performance regression on RISC-V targets by preventing a double-to-float narrowing optimization.
The fix involved updating getMinimumFPType to identify where float-precision arithmetic can be used instead of double-precision, restoring efficiency by replacing fdiv.d with fdiv.s instructions.
Megadev is a comprehensive development kit for Sega Mega Drive and Mega CD hardware, featuring utilities, headers, and documentation.
Targeted at experienced C and M68k assembly programmers, it simplifies complex embedded development. The project emphasizes flexibility for skilled developers, offering an unofficial, non-profit framework for professional-grade homebrew creation on classic console hardware.
Linux has removed the C implementation of Android’s Binder driver, replacing it with Rust after more than five years of work.
Binder is Android’s primary IPC mechanism and a major security risk, serving billions of devices and enormous transaction volumes. The Rust version preserved behavior and tracepoints, addressed tail-latency and locking issues, and became faster through fewer syscalls. C remains in older kernels; vendor hooks delay migration, while removal landed in kernel 7.4.
A JIT bitmap text renderer for RP2350-class microcontrollers generates ARM code per string to render proportionally spaced, kerned glyphs within tight scanline budgets.
In vic-2350, packed glyph bitmaps and metadata minimize SRAM use; generated code fills a 1-bit buffer, then expands it to RGB565 at 1.75 cycles per pixel. The JIT costs 23 cycles per glyph, and the demo consumes about 2.6% of one RP2350 core’s throughput, enabling flexible text without a framebuffer.
Bluesky replaced mutex-protected double-hash Bloom filters with atomic-bloom, cutting deployment time from 90 to about 15 minutes.
It later deployed gloom, a one-hash Bloom filter that divides storage into pairwise-coprime partitions and derives all bit positions from one hash. Cache-line-sized, aligned 64-byte blocks make lookups require at most one cache miss, while ShardedAtomicFilter reduces write contention. The approach serves high-throughput backend and jetstream workloads, although it did not materially outperform atomic access for Bluesky’s original bottleneck.
At Kernel Recipes, Martin Uecker argued that C can substantially reduce undefined behavior and improve memory safety, though full safety remains difficult.
The C standard has about 100 undefined-behavior cases, while the C2y draft removes 45. Warnings, static analyzers, sanitizers, annotations, architectures such as CHERI, and formal verification can improve type, spatial, and temporal safety. C23 already removed problematic legacy features; C2y will add further “demon removal,” but restricted languages and verification remain necessary for the strongest guarantees.
Reverse-engineering the Intel 8087 reveals that FSCALE, seemingly a simple power-of-two scaling instruction, uses more than 140 micro-instructions and three subroutine levels.
Its microcode coordinates the shifter, adder, exponent converter, exception handling, denormals, NaNs, overflow, underflow, and rounding. The analysis also uncovers hidden behavior, including a condition-code indicator for rounding direction.
This experimental project demonstrates a port of Linux 6.12 to the ESP32-S31 microcontroller, utilizing Sv32 virtual memory, Supervisor mode, and XIP with a Buildroot userspace.
The port uses a custom CLIC driver and includes modifications for non-standard RISC-V interrupt handling. It is a proof-of-concept for research purposes, not intended for production usage.
The 1980 Intel 8087 floating-point co-processor revolutionized PC performance.
By reverse-engineering its complex 16-bit microcode, the Opcode Collective revealed how the FXCH instruction operates across 14 micro-steps. The study utilizes microscope imagery of the chip's ROM and datapath to decode how hardware manages floating-point registers, stack operations, and exception handling.
Endbot is a 256-byte audiovisual demo for DOS, presented at Revision 2026.
It utilizes FASM to create a real-time rendered robot sprite with damage effects, a scrolling checkerboard landscape, and MIDI audio. This compact masterpiece achieves complex graphics and sound using clever assembly hacks like the Rrrola trick and shared data buffers to fit within strict memory limits.
This guide demonstrates how to test big-endian code compatibility on little-endian systems using QEMU user mode emulation.
By cross-compiling with GCC and running binaries through QEMU for architectures like MIPS or s390x, developers can easily verify memory byte ordering without needing physical big-endian hardware.
Linus Torvalds Working On A Hefty Linux Kernel Improvement With Claude Code
Artificial Intelligence · Linux · Low-Level Programming · Operating Systems · Claude
Linus Torvalds is developing Linux kernel changes with Claude Code to eliminate folio references when reading from the page cache.
The noref-filemap-read-with-llm branch addresses contention caused by many threads performing small reads from one file, using revised memory-management code, tests, reviews, and a draft cover letter created with AI under his direction. Torvalds reports significant performance gains, and the patches may enter the Linux 7.4 merge window.
x86’s ud2 is a guaranteed invalid-opcode instruction used by compilers to crash safely when execution reaches unreachable code.
It became official after software relied on earlier unofficial sequences, 0F FF and 0F B9, later named ud0 and ud1. Unlike them, ud2 has no operands, avoiding page-boundary decoding inconsistencies and ensuring predictable exceptions.
torvalds/linux is the source tree for the Linux kernel, which manages hardware and system resources and provides core services to operating systems and applications.
It includes subsystems for memory management, scheduling, networking, filesystems, security, power management, drivers, and more. Extensive role-specific documentation supports developers, researchers, administrators, maintainers, hardware vendors, distribution maintainers, and AI coding assistants, with defined contribution, security, licensing, and attribution requirements.
C’s flexible integer sizes were deliberate: `int` represents a machine’s natural integer width rather than a fixed 32 bits, enabling efficient operation across historical architectures with diverse word sizes, byte widths, pointer models, and signed representations.
Minimum ranges and `<limits.h>` preserve portability, while `<stdint.h>` supplies exact widths when required. Lua demonstrates this approach.
The Space Shuttle utilized five general-purpose computers, each paired with an Input/Output Processor (IOP).
The IOP managed data bus networks using an advanced 'barrel processor' architecture with 25 virtual processors. It featured custom circuit boards, hybrid analog modules, and Manchester encoding to ensure high performance and reliability during flight.
A technical investigation into frequent crashes in a third-party application revealed a recursive exception death spiral.
Analysis showed that combase.dll was forcibly unloaded from memory, causing subsequent DLLs to crash when calling its addresses. The investigation concluded that shell32.dll was merely a victim of memory corruption, confirming a 'bucket spray' scenario caused by an unidentified component.
A €40 Cable Matters USB-C hub was modified to work as a Nintendo Switch 2 travel dock by reverse-engineering USB-PD and DisplayPort firmware.
A 540-byte VL103 patch emulates the official dock’s Nintendo identity and vendor-message handshake, enabling TV mode and faster docking; a 108-byte RTD2142 patch corrects HDR colorimetry over HDMI. The hub still charges and supports normal PC/phone use, but VRR remains unsupported and must be disabled.
The XL1200 Hardware Emulator recreates the Symbolics XL-1200 Lisp machine with a 40-bit Ivory Rev 4 CPU, Merlin-II hardware, virtual peripherals, and Genera 8.3 boot support.
A portable C11 core reaches about 150 MIPS on Zen 4 using AVX-512 and supports hot reload, checkpoints, scripting, debugging, and live control. SDL3 and microui provide a Linux and Windows workbench, while the included Boot PROM supports SCSI disks, CD-ROMs, networking, serial I/O, and video capture.
Meta developed a vendor-neutral accelerator plugin architecture for LLDB’s lldb-server to debug applications spanning CPUs and GPUs in one session.
It represents the CPU and GPU as separate LLDB targets and debugger processes, preserving their distinct instruction sets, registers, memory spaces, and execution models while coordinating them through host-runtime events. Hardware-specific plugins translate device APIs into LLDB abstractions for threads, memory, modules, breakpoints, and stop reasons. The framework supports live and postmortem debugging, mock testing, and multiple vendors.