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.
Reading and writing are behaviorally asymmetric because buffering delays write execution and error reporting.
A buffered read typically encounters storage errors before returning data, while a successful buffered write may only copy data into memory; failures can emerge during `fflush`, `fclose`, or even `close`. A successful `write` also usually reaches the kernel’s buffer cache, not permanent storage. Reliable persistence requires checking all return codes, calling `fsync` (or `FlushFileBuffers`), and considering device caches and filesystem metadata.
Janet on x32: 32-bit Pointers, 64-bit Speed, 25% Less RAM
Linux · Low-Level Programming · Performance · Programming Languages
Compiling Janet with Linux’s x32 ABI reduced memory use by 21% overall (8–32%) while maintaining comparable speed, unlike conventional 32-bit `-m32`, which was about 50% slower.
Using 64-bit instructions with 32-bit pointers, `-mx32` lowered memory in benchmarks by up to roughly 25% and sometimes improved performance, though results varied. The experiment required kernel and compiler support, source changes, disabled FFI, and compiling libraries manually because major Linux distributions largely omit x32 support.
systemd has merged Rust support for leaf binaries, while keeping its shared core C-only for now because Rust lacks first-class stable shared-library ABI support and static linking is impractical across more than 180 binaries.
Rust components will use wrappers around systemd’s C APIs and follow uniform behavior, Meson builds, controlled dependencies, no_std, fallible allocations, no gratuitous rewrites, and optional adoption. The project may later pursue Rust core integration with the Rust community.
After a decade of reverse engineering, Patrick and the author added cooperative multiplayer to the DOS version of Wing Commander.
They identified game state in DOS memory through snapshot comparisons, traced physics and weapon functions, injected calls through DOSBox hooks and Borland-compatible trampolines, and synchronized players over TCP with protobuf messages. Entity-ID mapping, event queues, mission-state discovery, and chat completed a playable implementation, now available as a browser-based DOSBox experience.
GNU Emacs’s canvas patch has been merged upstream for the Emacs 32 release cycle.
It adds an image type backed by an ARGB32 pixel buffer, accessible through Emacs Lisp or dynamic modules, enabling efficient in-place updates via canvas-refresh without full redisplay. Demonstrations include animations, physics visualizations, and interactive 3D graphics, opening possibilities for readers, games, editors, and plotting tools.
Fil-C recompiles C/C++ with capabilities, runtime checks, and concurrent garbage collection, making legacy software memory-safe at runtime.
The proposal is an `extern "fil-c"` Rust FFI with safe wrappers, copied data, and opaque handles, while compiling complete dependency graphs under Fil-C’s ABI. filnix supplies a Nix toolchain, Zig is exploring a related ABI, and collaboration could unite these ecosystems.
Undefined behavior (UB) in C/C++ is not predictably limited to a segfault or the apparent source-code effect.
With GCC and clang, the same UB involving `std::unreachable()` can cause execution to fall through into an uncalled `explode()` function; replacing it with a null-pointer write can emit a zero write to address zero followed by `ud2`; adding 10 to the null pointer can emit a write of 99 to address 40. Compilers are not required to detect UB, so its consequences can be anything.
Reverse engineering Intel’s 1980 8087 shows how its microcode and datapath implement floating-point addition and subtraction, operations nearly 100 times faster than 8086 emulation.
The chip aligns exponents with a 68-bit shifter, uses a 69-bit integer adder, normalizes results through leading-zero detection, adjusts precision and exponents, and handles rounding. Shared microcode also manages signed zeros, infinities, NaN, denormals, underflow, and overflow, revealing hardware foundations that influenced the IEEE-754 standard.
Futhark fixed undefined behavior in generated C code for signed division of the most negative integer by -1, an unrepresentable case affecting 1 in 2⁶⁴ 32-bit input pairs.
Its runtime now checks for divisor -1 and performs unsigned negation, adding a branch to every signed division. CPU and normal GPU benchmarks showed no measurable impact, but a contrived CUDA division-throughput test slowed from 5,548 μs to 12,592 μs; unsigned division remains an alternative when negatives are impossible.
Rust 1.99.0 stabilizes defining C-ABI variadic functions, including C-unwind support, and adds APIs for layout information from raw pointers.
It recommends avoiding deallocating memory after Box::leak, favoring Box::into_non_null, and stabilizes numerous standard-library APIs. Users can install the release with rustup, while Cargo and Clippy also receive updates.
The authors bypassed a school grader’s AST-based allowlist to invoke forbidden execve without naming it.
Because ASan replaces printf but not execve, they leaked the fixed libc offset between allowed printf and mmap, reconstructed mmap’s address, and used it to allocate writable/executable memory. They copied a small x86-64 syscall stub there and invoked Linux syscall 59 (execve), launching /bin/sh. The proof of concept worked on the target VM and was reported to the school.
AssemblyForNeovim is a small Lua plugin that displays inline assembly for C, C++, and Rust code in a Neovim floating window on x64 and aarch64.
It shows the function under the cursor or selected lines, supports changing the compiler -O level and rerunning, and uses compile_commands.json when available. It requires cc/c++ or rustc/cargo on PATH, providing quick source-to-assembly inspection without leaving Neovim.
Evergreen is presented as a systems language that makes safety properties compiler-checked through types, preconditions, postconditions, and data invariants.
Its compiler tracks explicit memory layouts, ownership, borrowed references, and valid memory uses. Proofs, induction lemmas, and ideal computations are erased after verification, so executable code retains only necessary operations. Examples show a NonZero constructor enforcing its invariant and increment requiring protection against integer overflow.
The author built a 10,287-byte demoscene intro for a stock 128Kb ZX Spectrum using Z80 assembly.
It combines a smooth custom-font scrolltext, three-channel AY music converted from an Amiga module, bouncing VU meters, a twinkling logo, and a parallax starfield. Development used Pasmo, FUSE, Ruby-generated data, and real-hardware testing through TNFS. Key challenges included the Spectrum’s unusual screen layout, tight frame and memory budgets, and optimizing star movement and text rendering.
This talk explores the technical journey of bringing Linux support to Apple Silicon hardware, highlighting how it differs from traditional computer architectures.
The speakers explain their methodology for reverse engineering the hardware using a specialized hypervisor to trace MMIO access instead of relying solely on disassembly. A major focus is placed on the complexities of supporting Type-C ports, which necessitated changes across multiple Linux kernel subsystems. Furthermore, the presentation discusses the upstreaming process, demonstrating a significant reduction in downstream patches. Finally, the session addresses the future challenges involved in providing support for the newer M3, M4, and M5 chips.
Heol is an experimental 16-bit Lisp system for the Uxn virtual machine, with Varvara bindings.
It evaluates Lisp expressions using lists, atoms, closures, conditionals, arithmetic, recursion, sequencing, iteration, and I/O. Its compact language includes core procedures such as cons, lambda, define, print, and deo, and is implemented in Uxntal.
GEFS development for OpenBSD has advanced toward general use.
Ori Bernstein reports improved error handling, most important 9front bug fixes, an unused first filesystem block for disklabels, and initial userspace tools including OpenBSD `mkfs`. Snapshot control remains unfinished. The largest missing component is the consistency protocol; Bernstein is considering ordered commit barriers and synchronous I/O through syncer kprocs, while preserving ordering for arena headers and superblocks.
Hare 0.26.0 has been released, introducing significant language features like loop values with for..else, support for DragonflyBSD, and explicit error ignoring using underscores.
It also adds nameless struct fields for padding and @undefined for uninitialized variables. Joe Finney joins as a new maintainer alongside Drew DeVault.
A Rust concurrent cache replaces expensive JSON clones with Arc, but Arc cannot safely downcast from Arc<JSON> to Arc<String>.
The article develops PinRef: a pinned, self-referential wrapper retaining ownership while storing an internal pointer, then projects it through higher-ranked lifetime-preserving functions. It demonstrates clone-cheap typed access while warning that unsafe code may still contain undefined behavior.
The author explains why segmentation faults were not displaying when using the entr utility to run a C program.
The issue stems from bash optimizations where it executes sub-commands directly via execve, bypassing the reporting mechanism. Using subshells or adding subsequent commands ensures bash remains as a parent process to properly catch and report the segmentation fault signal.