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 neat trick i found for reusing physical memory
C · Linux · Low-Level Programming · Performance · Operating Systems
A Linux mmap trick uses memfd_create and CoW to duplicate a memory-backed template without upfront physical allocation.
After filling a shared mapping, a MAP_PRIVATE mapping provides a virtual copy whose pages remain shared until written; modifying one byte allocates only its 4 KiB page. A 32 MiB test consumed 32.004 MiB total. The author also wonders whether a continuous region filled with identical non-zero data could initially use just one physical page.
This change enables NVIDIA power caps as low as 30 W when a compatible RM power client is detected, including values below the VBIOS minimum.
It detects supported layouts at runtime, preserves the native maximum, and maintains NVML behavior within the native range. Unit tests passed, including validation of a 150 W cap on driver 610.57.04.
In this submission for the Google AI Portfolio Challenge, software QA engineer Depa Panjie Purnama presents a unique, interactive portfolio experience built using Gemini 3 Pro and Google Antigravity.
Breaking away from traditional layouts, the project features a dark, immersive interface where visitors use a virtual torch to reveal content. The technical implementation is notable for its 'Zero Dependencies' approach, utilizing vanilla HTML, CSS, and JavaScript rather than heavy libraries like Three.js. Key highlights include a 60fps procedural fire simulation based on Perlin noise and fluid drag physics, glassmorphism UI effects, and a highly optimized Dockerized deployment on Google Cloud Run. The developer emphasizes high performance and intuitive UX, achieving near-perfect Lighthouse scores through lean, custom-coded Canvas 2D rendering.
The JavaScript ecosystem is undergoing a significant transformation as many fundamental developer tools are being rewritten in systems programming languages like Rust, Go, and Zig.
This shift is driven by the performance limitations of JavaScript when handling large-scale codebases, complex module graphs, and heavy build pipelines. Influential projects such as SWC, ESBuild, BiomeJS, and Oxc have introduced dramatic speed improvements, often outperforming legacy tools by 10x to 100x. Additionally, Microsoft is porting the TypeScript compiler to Go to resolve scaling issues. While these advancements provide faster build times and better developer experiences, they also introduce challenges, such as a higher barrier for contributors and a reduction in the traditional 'dogfooding' culture within the JavaScript community. Nonetheless, this native tooling revolution is redefining the future of web development infrastructure.
This article evaluates the performance of the build2 build system compared to Ninja, using Xerces-C++ as a benchmark.
While Ninja is highly optimized, it relies on external tools like CMake. build2 proves to be as fast or faster by utilizing multi-threading, efficient caching, and optimized header dependency extraction, demonstrating that modern native build systems can effectively challenge established industry benchmarks.
The Lix team released version 2.95 'Kakigōri', focusing on bug fixes, performance, and RPC integration.
Key updates include improved daemon performance, TOML configuration for remote builders, and progress in extracting Flakes into plugins. This release also clears technical debt, resolves old language issues, and integrates more Rust into the codebase.
Rust compiler performance improved substantially in November 2026 through simpler Span compression, hot-path optimizations, new trait-solver tuning, and miscellaneous changes.
Span work cut interning and delivered benchmark instruction-count gains above 3–4%; Diesel’s new trait solver overhead fell from 1.49× to 1.16×. Other changes reduced metadata size by up to 37% and peak memory by 7%. Across the month, relevant tests recorded 236 improvements versus four regressions, with mean wall-time down 2.85% and max-RSS down 4.46%.
Updated Mold benchmarks initially made Wild appear substantially slower, but the gap largely reflects hardware and methodology: ext4 versus tmpfs, deleting outputs, and --no-fork.
Reproductions show similar ratios. Mold also improved significantly in versions 2.42.0–2.42.1, while Wild is adding file-allocation and hugepage optimizations. Thread-count differences may explain remaining Threadripper results.
Common Lisp can achieve C-level performance by utilizing its metaprogramming capabilities to build domain-specific languages (DSLs).
By implementing a custom kernel-style DSL, the author demonstrates that Lisp code can remain readable, idiomatic, and performance-competitive with C in computational tasks like the nbody benchmark, challenging the notion that Lisp must sacrifice efficiency for expressiveness.
The Rust compiler team is nearing the completion of a next-generation trait solver to replace the current system.
This rewrite aims to improve compile times, fix soundness bugs, and resolve complex self-referential trait loops using advanced caching techniques. While currently experimental, it promises to enhance language flexibility and maintainability as it nears stabilization.
A brute-force superoptimizer found a branch-free 4-operation formula for extracting the lowest set bit of an f32 value, improving on a 6-operation implementation with an if for powers of two.
The author enumerated formulas using integer arithmetic, bitwise operations, constants, and final floating-point subtraction, testing candidates on representative cases and deduplicating equivalent outputs. A 5-operation result became 4 operations through intermediate reuse, but flips sign bit for powers of two.
Repo-slopscore is a diagnostic tool that scans software repositories to provide a readability and quality assessment.
It provides a structured overview of thousands of scanned repositories, including timestamps of their last comprehensive analysis, helping developers identify potentially bloated or unmaintained codebases across various platforms like GitHub, Codeberg, and GitLab.
A micro benchmark should generally be tuned to run for about 300ms.
This duration is precise and easy to read, long enough to reduce distortion from fixed costs such as interpreter startup, and short enough for rapid iteration and repeated runs. It also makes performance changes perceptible to humans—for example, seeing a slow CLI command become “instant.” The goal is less precise measurement than providing enough intuition to make sound decisions.
A Rustdoc team member made Rustdoc 33% faster on average through four PRs.
The improvements filtered trait implementations before expensive processing, skipped unnecessary primitive and synthetic-impl analysis, and avoided costly param_env queries. Wall time fell by up to 40% on real-world crates, while peak memory usage also declined. The changes will ship in Rust 1.99.
Apple rewrote its TrueType hinting interpreter from C to Swift, prioritizing memory safety for handling untrusted font data.
The project maintained pixel-identical rendering while achieving a 13% performance improvement over the original C implementation. The team utilized noncopyable types, projection structures, and careful memory management to ensure the new interpreter remains both efficient and secure.
Software bloat has become an industry problem.
This initiative advocates for lightweight software, proposing a 1.44 MB standard inspired by floppy disks. By embracing constraints, developers can foster creativity and efficiency, focusing on essential functionality rather than unnecessary size. Small, single-purpose tools improve user experience and demonstrate that performance optimization remains a critical discipline.
This article explains how TCP congestion control, specifically the 'slow start' mechanism and congestion window, limits initial data transfer.
Because TCP starts with a small window, the first RTT typically delivers around 13 kB. Developers should optimize websites to deliver critical content within this initial threshold to ensure rapid page rendering.
sukr is a high-performance, minimal static site compiler written in Rust that follows the suckless philosophy by producing zero JavaScript output.
Unlike traditional static site generators that rely on heavy client-side runtimes, sukr handles complex content delivery during the build process. It utilizes Tree-sitter for sophisticated syntax highlighting with language injection support, renders LaTeX via KaTeX into static HTML to avoid large browser bundles, and compiles Mermaid diagrams into inline SVGs for instant loading. By leveraging Tera templates for flexibility without recompilation and offering monorepo support through specific configuration flags, sukr provides a streamlined workflow for developers seeking speed and simplicity in web deployment.
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.
Deser is a Rust serialization library designed to address Serde’s architectural limitations, including lossy buffering, non-composable adapters, fragile format extensions, and stack-based recursion.
Its heap-based sinks and emitters enable lossless buffering, suspendable parsing, native flattening, improved errors, and extensibility across many formats. These benefits trade off runtime performance, binary size, unsafe internals, and ecosystem compatibility.