AI 摘要This article announces Gleam v1.14.0, a holiday release of the type-safe programming language for the Erlang VM and JavaScript, highlighting features such as @external annotations for external types (enabling precise Erlang and TypeScript type definitions), interference-based pruning extended to int segments, and number normalisation in pattern matching analysis. It also covers numerous compiler and tooling improvements, including better error messages, fault-tolerant analysis, redundant module and detached documentation warnings, record update syntax for constants, latest Elixir support, an outdated dependencies command, and enhanced language server features like new code actions and type-directed autocompletion.
AI 摘要Matt Godbolt describes being surprised by compiler optimizations when examining how GCC and clang compile a simple loop that sums integers up to a given value. While GCC cleverly processes two numbers per iteration using the observation that x + (x+1) equals 2x + 1, clang goes further and eliminates the loop entirely, algebraically deriving the closed-form solution v(v-1)/2 and turning the O(n) algorithm into O(1). The author reflects on how, even after twenty years of working with compilers, he remains amazed and inspired by their sophistication.
AI 摘要The author clarifies that she isn't against deploy freezes outright: they're a sensible pragmatic hack for teams that lack the observability to find problems before customers do, though she objects to people framing freezes as a moral virtue rather than an admitted workaround. She suggests two better alternatives: freeze merges instead of deploys, so developers can keep working without letting changes pile up into a risky January release, and if you normally deploy frequently, keep running the deploy process regularly (without shipping new code) to avoid breakage from two weeks of inactivity.
AI 摘要This article by Matt Godbolt explains that switch statements don't always compile to jump tables; compilers instead employ cleverer strategies when possible, such as arithmetic formulas for dense cases with predictable relationships, built lookup tables, bitmasks for sparse inputs like whitespace detection, and binary-search-style comparisons when tables aren't feasible. The author encourages programmers to write clear switch statements and trust the compiler to choose the most efficient optimization, noting that different compilers use quite different tricks.
AI 摘要The article presents the author's list of default apps for 2025, covering tools for note-taking (Obsidian + NeoVim), coding (Claude Code, uv), searching (Kagi), browsing (Vivaldi), audiobooks, budgeting, and more. The biggest changes from 2024 include switching from Pocket Casts to Podcast Republic, expanded LLM usage through Typing Mind and command-line coding agents, and growing adoption of apps like Focus Friend, Raindrop, Obsidian, and uv.
AI 摘要This edition of the Clojure Deref, a weekly Clojure ecosystem news roundup, announces that the 2025 State of Clojure and State of ClojureScript surveys are now live and urges community participation. It also lists upcoming events such as Babashka Conf and Dutch Clojure Days 2026, highlights recent videos, podcasts, and blog posts from Clojure/Conj 2025 and Clojure South 2025, and rounds up new libraries and tools including Oak 1.0, clj-kondo, and Calva updates.
AI 摘要Drawing on their experience at Linden Lab during the early days of AWS, the author argues that 2025 was for AI what 2010 was for cloud: the year AI shifted from experimental, peripheral technology to mainstream, foundational tech, at least in developer tools. They acknowledge that AI is riding a hype bubble, just as cloud and the internet did, but insist that froth doesn't disprove real value. Reflecting on how their own skepticism has softened since an SRECon keynote just eight months earlier, they conclude that it's an exciting time to be a builder.
AI 摘要This article by Matt Godbolt, part of the Advent of Compiler Optimisations 2025 series, examines how Clang compiles comparisons of a std::string_view against compile-time string constants, inlining and specialising the code instead of calling memcmp. For power-of-two lengths it emits simple length checks followed by direct byte/word comparisons, while for other lengths like seven it uses overlapping 32-bit reads, XOR operations against the constant, and a branchless sete instruction to produce the result. The author concludes that modern compilers apply these clever transformations automatically, so programmers should write clear code and let the compiler make it fast.
AI 摘要The article explains how compilers can auto-vectorize integer array summation using SIMD, but decline to do the same for floating-point sums because float addition is not associative—rounding after each operation means regrouping the additions changes the result. Global flags like -Ofast or -funsafe-math-optimizations can force vectorization but have program-wide side effects, so the author recommends a targeted GCC function annotation to permit reassociation only in the specific function. Understanding these floating-point quirks helps developers cooperate with the compiler to produce fast vectorized code.
AI 摘要On the thirteenth anniversary of his Rust journey, Steve Klabnik announces Rue, a new hobby programming language he started with the help of Claude after shifting from AI skeptic to using LLMs for most of his coding. He frames the project as an experiment to see whether a language can be built meaningfully without a large team or financial backing like Mozilla invested in Rust. He stresses that Rue is just a personal project for fun, still very janky and incomplete, with no explicit goal of building a community or growing beyond a hobby.
AI 摘要The article explains auto-vectorisation, a compiler optimisation that transforms simple element-wise loops into SIMD instructions that process multiple data elements at once, given the right flags (-O3 and a suitable -march target). Using an integer max-update example, it demonstrates how compilers use masked moves for conditional writes, can replace ternary logic with built-in vector 'max' instructions, and generate a fallback non-vectorised loop when arrays might overlap in memory. It concludes that with appropriate compiler flags and careful data layout, developers can let the compiler turn scalar loops into efficient batch-processing code.
AI 摘要This article explains tail call optimisation (TCO), where compilers transform a function that ends by calling another function (including itself) into a jump instead of a call, effectively converting recursive routines like GCD into loops and saving stack space. It describes Clang's [[clang::musttail]] annotation for guaranteeing tail calls, notes that arranging arguments in the same order as parameters makes TCO more efficient, and highlights a niche use in CPU emulators where TCO replaces a single switch-statement branch with per-instruction branches that give the CPU's branch predictor much better information.
AI 摘要After facing criticism for moving her blog from Wordpress to Substack, the author reconsidered but ultimately decided to stay, arguing that Substack—unlike platforms like Gab or Parler—is far from being a haven for extremists and that she needs a lightweight publishing platform to re-engage with the mainstream tech community. She explains that writing and interacting regularly is a core part of her job, which Wordpress's heavyweight feel had been hindering. To address ethical concerns, she outlines mitigations including never accepting paid subscriptions, encouraging readers to use email or RSS instead of the Substack app, and setting up auto-posting to Wordpress, while respecting those who choose to boycott the platform entirely.
AI 摘要The article explains partial inlining, a compiler optimisation in which the compiler splits a function into a thin wrapper handling a cheap fast path and an outlined separate function (e.g., process.part.0) containing the expensive cold path. When the function is later inlined, only the lightweight wrapper and fast-path checks are duplicated at call sites, while calls go to the shared outlined cold path, giving inlining's performance benefits without the full code-bloat cost. Using GCC assembly examples, the author shows how this works in practice and notes that compilers apply such heuristics differently, so it's worth inspecting hot code paths in tools like Compiler Explorer.
AI 摘要This article, part of a series on compiler optimizations, explains that inlining—copying a function's body into its call sites—is valuable less for avoiding call overhead and more for enabling further optimizations like constant propagation and dead code elimination, illustrated with an ARMv7 example of converting a string to uppercase. It also covers inlining's drawbacks, such as increased code size, the heuristics compilers use to decide when to inline, and the requirement that the function's definition be visible. The author concludes that inlining is the ultimate enabling optimization, giving the compiler a fresh copy of code to transform in ways impossible with a shared function body.
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.