编程 · 最新文章

今日新增 30 篇 · 共 2,704 篇 · 来自 79 个博客

Clojure News·

Clojure Deref (Dec 16, 2025)

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.

Marc Brooker·

On the success of 'natural language programming'

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.

Matt Godbolt··Matt Godbolt

Aliasing

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.

Marc Brooker·

What Does a Database for SSDs Look Like?

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.

Matt Godbolt··Matt Godbolt

When LICM fails us

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.

Charity Majors··Charity Majors

Moving from WordPress to Substack

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.

Matt Godbolt··Matt Godbolt

Loop-Invariant Code Motion

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.

fasterthanli.me··Amos Wenger

Introducing arborium, a tree-sitter distribution

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.

Matt Godbolt··Matt Godbolt

Unswitching loops for fun and profit

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.

Matt Godbolt··Matt Godbolt

Pop goes the...population count?

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.

React Blog··The React Team

Denial of Service and Source Code Exposure in React Server Components

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).

Deno Blog··Bartek Iwańczuk

Deno 2.6: dx is the new npx

This release includes `dx` for running package binaries, more granular permissions, source phase imports, faster type checking with `tsgo`, native source maps, `deno audit`, and much more.

Clojure News·

Clojure 1.12.4

Clojure 1.12.4 is now available! Find download and usage information on the Downloads page. CLJ-2924 - LazySeq - fix visibility issues with non-volatile reads

Clojure News·

Clojure Deref (Dec 10, 2025)

AI 摘要This edition of the Clojure Deref, a weekly Clojure news roundup, announces that the 2025 State of Clojure and State of ClojureScript surveys are live and encourages community participation. It also lists upcoming events such as Clojure Jam 2026, Babashka Conf, and Dutch Clojure Days, and highlights recent podcasts, blog posts, and articles. Finally, it covers new library releases and updates, including Clojure 1.12.4, Babashka 1.12.213, and various community tools.

DHH··David Heinemeier Hansson

Europe is weak and delusional (but not doomed)

AI 摘要The article argues that Europe's self-image has drifted into delusion, pointing to censorship of platforms like X, thousands of yearly arrests for social media speech, a stagnant tech sector, punishing energy costs, and a widening economic and military gap with America. It claims Europe's political class keeps doubling down on failed policies—net-zero spending, defense underinvestment, and regulatory overreach—while the EU economy risks shrinking to half the size of the US within a decade. Nevertheless, the author insists Europe is not doomed, provided it revives nuclear energy, adopts selective immigration, abandons censorship and bureaucratic overregulation, and builds a true internal market to retain its talented people.

Deno Blog··Jo Franchetti

Build a dinosaur runner game with Deno, pt. 1

This series of posts will guide you through building a simple game using Deno. Each post corresponds to a stage in the development process, gradually introducing new features and concepts.

Real Python··Real Python

Learning Path: Python Coding With AI

AI 摘要This article presents a learning path for using AI coding assistants to write, review, and debug Python code more efficiently. It suggests choosing between an editor-based assistant like Cursor or a terminal-based one like Claude Code, and integrating the tool into your daily workflow. It also promotes a Python Tricks newsletter that delivers short Python tips to your inbox every couple of days.