AI 摘要Bun v1.3.5 fixes 32 issues and introduces new features including a Bun.Terminal API, compile-time feature flags, and V8 C++ value type checking APIs. The release also improves Bun.stringWidth accuracy, adds Content-Disposition support for S3 uploads, and enables environment variable expansion in quoted .npmrc values. Additionally, it ships numerous bug fixes and Node.js compatibility improvements.
AI 摘要The O'Saasy License is a new license that works like the permissive MIT license but reserves the right to run the software as a commercial SaaS for the copyright holder, encouraging more production-grade back-end code to be open source while still letting creators earn a return. The author hopes it will restore the early web's 'View Source' learning culture, letting juniors and LLMs learn from real production software rather than toy examples. The license now has a home at osaasy.dev and is already being used for the author's project, Fizzy.
AI 摘要The article explores calling conventions, part of the ABI, focusing on the System V ABI for x86 Linux, where the first few parameters are passed in registers like rdi and rsi, and small structures can be efficiently packed into single registers. It demonstrates that once more than six parameters are used, arguments spill to the stack, though cleverly designed structs (e.g., of chars) can avoid this. Understanding these conventions helps developers make informed design decisions about parameter passing and type layout, such as with register-friendly types like std::string_view.
AI 摘要The author describes how his energy, motivation, and stamina declined with age despite consistent healthy habits, until a friend introduced him to testosterone replacement therapy (TRT) through a men's health company called Bolt Health. After seven months of daily low-dose testosterone injections, his levels rose from 415 to 730 ng/dL and he experienced roughly a 50% boost in youthful energy and vitality, with no more 'sucky tired days.' While acknowledging TRT's controversial reputation and risks (such as reduced fertility and potential blood clots), he advocates that middle-aged people with genuinely declining hormone levels consider it, after first establishing healthy lifestyle habits and proper medical supervision.
AI 摘要This weekly Clojure Deref roundup announces that the 2025 State of Clojure and ClojureScript surveys are now live, urging community participation to shape the future of the ecosystem. It also lists upcoming events such as Clojure Jam 2026, Babashka Conf, and Dutch Clojure Days, alongside recent podcasts, blog posts, and articles. Finally, it highlights new library releases like clj-simple-stats and clj-artnet, as well as updates to tools including mulog, next-jdbc, neil, and calva-backseat-driver.
AI 摘要The author argues that programming has steadily evolved toward specification—writing down what programs should do rather than how—and that natural language will form the core of future programming languages, despite long-standing objections about its ambiguity (e.g., from Dijkstra and Lamport). Since almost all software has always been specified through informal natural-language conversations with stakeholders, LLMs enable these same conversations to include computers, turning programming into an iterative feedback loop (as seen in vibe coding and spec-driven development) where ambiguity is resolved through back-and-forth rather than eliminated single-shot. For cases demanding precision, symbolic tools like Rust, SQL, and TLA+, or neurosymbolic approaches that keep humans in the loop, remain valuable, but the future of programming will look like a natural-language conversation loop with occasional descents into mathematical rigor.
AI 摘要The article explains how pointer aliasing blocks compiler optimizations in C++, using a Counter class example where accumulating into an int member forces redundant memory stores each loop iteration, while accumulating into a long lets the compiler keep the value in a register because strict aliasing rules guarantee no overlap with the int span. It suggests fixes such as accumulating in a local variable (e.g., via std::accumulate) or using the non-standard __restrict extension to promise unique pointer access. The author encourages using Compiler Explorer to spot unexpected memory writes that reveal aliasing-related lost optimizations.
AI 摘要The article explores how a relational database designed from scratch for modern hardware—NVMe SSDs, fast datacenter networks, and multi-AZ cloud deployments—would differ from legacy databases built around slow spinning disks. Using quantitative analysis, the author derives principles like sizing caches for roughly 30 seconds of accesses, targeting ~32kB transfer sizes for SSDs, incurring cross-AZ latency only at commit time, and replacing the traditional write-ahead log with a distributed log for multi-machine durability. The conclusion is to keep the relational model, SQL, and strong consistency, but to move durability, recovery, and scaling from single-system concerns into the distributed layer.
AI 摘要The author argues that although the decline of search engines has sparked anxiety that the web is broken or dying, this fear rests on the flawed assumption that websites need mass readership to be worthwhile. Drawing on Gabriel Zaid's observation that not all books need or deserve a mass audience, the author suggests most websites could instead resemble small book publications serving a few thousand dedicated readers. Ultimately, the death of search might benefit the web by freeing it from ad-driven business models and letting websites become small, private things once again.
AI 摘要This article, part of Matt Godbolt's 'Advent of Compiler Optimisations 2025' series, shows how loop-invariant code motion (LICM) can fail: incrementing a global counter inside a string-scanning loop forces the compiler to re-call strlen on every iteration. The reason is aliasing—char* may legally alias any object under the C++ standard, so the compiler cannot assume writing the global doesn't modify the string. The author notes that GCC, Clang, and MSVC all miss this optimization even for non-char types, and previews upcoming posts on helping compilers deal with aliasing.
AI 摘要After nearly ten years of blogging on WordPress since December 2015, the author is moving her blog to Substack, citing her frustration with WordPress's friction and the vibrant longform tech writing ecosystem there. She plans to share insights from writing the second edition of 'Observability Engineering' on Substack once her drafts are turned in. She will keep charity.wtf online to avoid breaking bookmarks and links (though old comments can't be exported), and readers can subscribe at charitydotwtf.substack.com.
AI 摘要This article, part of the Advent of Compiler Optimisations 2025 series, explains Loop-Invariant Code Motion (LICM), an optimisation where the compiler hoists calculations that don't change between iterations—such as vec.size() or a pure get_range() call—out of a loop. The author shows via assembly how clang successfully performs this transformation with clever branchless tricks, but is surprised that GCC fails to do so in the example, apparently because a returned std::pair doesn't undergo common subexpression elimination. The takeaway: trust the compiler, but know how to verify its output with tools like Compiler Explorer.
AI 摘要The author describes a discussion with the docs.rs team about why code samples are displayed in an unappealing way, prompting them to open a GitHub issue to understand the underlying reasons. Despite walking away from that discussion discouraged, they decided to ignore the existing constraints and tackle the problem from three different angles. This effort resulted in arborium, a tree-sitter distribution.
AI 摘要The article explains 'loop unswitching', a compiler optimisation in which a loop-invariant condition (like a boolean flag) is hoisted out of a loop, causing the compiler to duplicate the loop into specialised versions—one that always performs the operation and one that never does. Using a sum/sum-of-squares example on ARMv7, the author shows that at -O2 the compiler keeps a branchless conditional multiply-and-add inside the loop, while at higher optimisation levels it duplicates the loop, trading code size for speed. The takeaway is to trust the compiler's decisions while understanding the trade-offs it makes at different optimisation levels, which can be verified with tools like Compiler Explorer.
AI 摘要This article reviews Hans Rosling's book 'Factfulness,' which argues that people hold an overdramatic, outdated worldview driven by instincts like binary thinking, negativity, fear, and urgency, causing them to see the world as worse and more dangerous than it really is. The book shows that the world is steadily improving—most people live in middle-income countries, violence is declining, and extreme poverty is rare—and urges readers to update their knowledge, question single-cause explanations, compare numbers with context, and embrace facts that contradict their beliefs. The reviewer rates the book 8/10, admiring Rosling's empathetic worldview and its core message of seeing the world accurately through facts.
A high severity Denial-of-Service (DoS) vulnerability has been found in React Server Components and Next.js. Deno has implemented mitigations in Deno Deploy. Immediate upgrades are required for other users.
AI 摘要This article explores the population count operation—counting the one bits in an integer—and shows a classic C implementation using the trick of clearing the lowest set bit with value &= value - 1. It demonstrates that when compiled with a modern target like -march=westmere, compilers such as gcc and clang can recognize the loop and replace it with a single hardware popcnt instruction, though using std::popcount in C++ is the more reliable way to guarantee that instruction. The post is part of Matt Godbolt's 'Advent of Compiler Optimisations 2025' series.
AI 摘要Security researchers have disclosed two additional vulnerabilities in React Server Components discovered while attempting to exploit patches for a critical vulnerability from the previous week. The flaws include a high-severity Denial of Service vulnerability (CVE-2025-55184) and a medium-severity Source Code Exposure vulnerability (CVE-2025-55183).