编程 · 最新文章

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

Julia Evans··Julia Evans

"Rules" that terminal programs follow

AI 摘要The article describes a set of unwritten, descriptive 'rules' that terminal programs tend to follow despite there being no formal standards for their behavior, such as Ctrl-C quitting noninteractive programs, pressing q exiting TUIs, Ctrl-D exiting REPLs, sticking to 16 ANSI colors, mimicking readline keybindings like Ctrl-W deleting the last word, disabling colors when output goes to a pipe, and using '-' to represent stdin/stdout. The author explains that many of these conventions aren't laws of nature but are explicitly implemented by each program, often mimicking default OS behavior in cooked mode. Learning these rules took years of subconscious pattern recognition, and the goal of writing them down is to help others understand what behavior to expect from terminal programs and to more easily categorize exceptions.

Clojure News·

Clojure Deref (Dec 12, 2024)

AI 摘要This article is the December 12, 2024 edition of the Clojure Deref, a weekly news and link roundup for the Clojure ecosystem. It highlights recent podcasts, videos, and blog posts—including the Clojurists Together 2025 long-term funding announcement, the State of ClojureScript 2024 survey, and several ClojureDart experience reports—along with new releases of libraries and tools such as uix 1.3.0, pg2 0.1.23, cljstyle, and basilisp.

Clojure News·

Clojure Deref (Dec 6, 2024)

AI 摘要This Clojure Deref post is a weekly news roundup for the Clojure ecosystem covering podcasts, videos, blogs, and projects, including highlights like the State of Clojure 2024 survey results, Advent of Code in Clojure, and the jank compiler now running on LLVM IR. It also lists new releases and tools such as clein, aws-api, squint, next-jdbc, cider, and flamegraph pastebin Flamebin.

Marc Brooker·

DSQL Vignette: Wait! Isn't That Impossible?

AI 摘要The article explains how Aurora DSQL's multi-region active-active architecture achieves availability, durability, and strong consistency while respecting the constraints of physics and CAP theory. When one of the two full regions becomes unreachable during a network partition, DSQL keeps the majority-side endpoint fully available by relocating stateless adjudicators—whose transient state can be reconstructed from committed transactions thanks to its optimistic concurrency control design—so customers experience no unavailability. The author recommends active-active application patterns using latency-based DNS routing, letting DSQL handle replication, consistency, and failover rather than burdening applications with those complexities.

Marc Brooker·

DSQL Vignette: Transactions and Durability

AI 摘要This article explains how Aurora DSQL handles writes and transactions, using optimistic concurrency control (OCC) combined with MVCC to defer all coordination to COMMIT time, where an adjudicator service checks for write-write conflicts before approving a commit. Once approved, committed transactions are written to the Journal for durable, ordered replication across AZs and regions, allowing storage replicas to apply changes without protocols like 2PC, Raft, or Paxos. This disaggregated architecture delivers scalability along with strong durability, availability, and consistency, even when an AZ or region becomes unavailable.

React Blog··The React Team

React v19

React 19 is now available on npm! In this post, we'll give an overview of the new features in React 19, and how you can adopt them.

Marc Brooker·

DSQL Vignette: Reads and Compute

AI 摘要This article explains how Aurora DSQL handles SQL execution and transactional reads, highlighting how disaggregating storage and compute allows each to scale independently. Each query processor runs as a dedicated PostgreSQL-based engine inside a Firecracker MicroVM, and reads achieve strong consistency and snapshot isolation by using timestamped as-of reads with MVCC at the storage layer, eliminating coordination between replicas. By pushing filtering, aggregation, and projection down to storage over a logical row-level interface, DSQL avoids the need for a large coherent cache next to the SQL engine.

Marc Brooker·

DSQL Vignette: Aurora DSQL, and A Personal Story

AI 摘要AWS announced Aurora DSQL, a serverless, PostgreSQL-compatible SQL database designed for transaction processing, featuring active-active multi-region capabilities, strong consistency, snapshot isolation, and automatic scaling without infrastructure management. The author recounts a personal story of how customer feedback about the friction between serverless compute and traditional relational databases, combined with AWS technologies like Caspian, Firecracker, EC2 time sync, and formal methods, led to building DSQL starting in 2021. A standout design feature is that cross-region latency is only incurred on COMMIT of read-write transactions, while reads and individual statements stay fast and local.

Coding Horror··Jeff Atwood

The Great Filter Comes For Us All

AI 摘要The article discusses the Fermi paradox—the puzzling absence of evidence for extraterrestrial civilizations despite the immense age and scale of the universe—and introduces the Great Filter theory, which proposes that some nearly insurmountable barrier in evolution may explain why intelligent life seems so rare. The author also draws an analogy between the lack of alien contact and the absence of time travelers, suggesting both may indicate fundamental impossibilities. Finally, the author offers a personal hypothesis: advanced civilizations may follow technology's trend toward smaller and faster forms, eventually abandoning physical matter entirely, which would render them undetectable to us.

Josh W. Comeau··Josh W. Comeau

Next-level frosted glass with backdrop-filter

Glassy headers have become a core part of the “slick startup” UI toolkit, but they’re all missing that final 10% that really makes it shine. In this tutorial, you’ll learn how to create the most realistic lush frosted glass anywhere on the

Clojure News·

State of Clojure 2024 Results

AI 摘要The 2024 State of Clojure survey shows strong adoption of Clojure, with 73% of users employing it for work—especially in web development and finance—and rapid uptake of the newly released Clojure 1.12.0 (58%) and Java 21 (54%). The survey also highlighted the popularity of alternative dialects like Babashka, used by 93% of respondents, and revealed that new users increasingly come from JavaScript and Python backgrounds. Drawing on data collected since 2010, the results include longitudinal trends and heartwarming community appreciation responses.

Svelte Blog·

Advent of Svelte

AI 摘要Svelte Society ran an 'Advent of Svelte' series, releasing one new feature or improvement per day until Christmas, spanning both Svelte and SvelteKit. Highlights include long-awaited error boundaries, exported snippets, function bindings, reactive modules like Spring and Tween, $app/state, hash-based routing, single-file and fully self-contained app bundles, and built-in clsx support for class attributes. The article concludes by thanking readers for following along and wishing everyone a Merry Christmas.

Svelte Blog·

What’s new in Svelte: December 2024

AI 摘要The December 2024 Svelte newsletter recaps a milestone year featuring two Svelte Summits and the release of Svelte 5, along with recent bugfix releases (5.1.x–5.2.x) and new features in SvelteKit, the CLI, and Language Tools such as the isActionFailure helper and a runes mode code lens indicator. It also highlights community showcases like Unsubscribe and NeoHtop, learning resources, and updated libraries and tools including shadcn-svelte, Zag, Skeleton V3, and Storybook 8.4, which now support Svelte 5.

Julia Evans··Julia Evans

Why pipes sometimes get "stuck": buffering

AI 摘要The article explains that pipes like 'tail -f file | grep thing1 | grep thing2' can appear 'stuck' because programs such as grep use block buffering when writing to a pipe or file (saving up ~8KB before writing) but switch to line buffering when writing to a terminal, which is why adding a second grep makes output disappear. It catalogs which common commands and programming languages buffer their output along with the flags that disable buffering, notes that pressing Ctrl-C on a pipe loses buffered data, and presents several workarounds such as grep's --line-buffered flag, using awk, stdbuf, or unbuffer.

Bun Blog·

Bun v1.1.38

AI 摘要Bun v1.1.38 fixes 7 bugs, including a debugger hang in the VSCode terminal, a crash in the postgres npm package, a TypeScript minification issue, and a rare crash in fetch(). It also adds a reusePort option to Bun.listen and node:net, improves console.log, and updates SQLite and c-ares.

Clojure News·

Clojure Deref (Nov 28, 2024)

AI 摘要This is the November 28, 2024 edition of the Clojure Deref, a weekly news roundup for the Clojure ecosystem, featuring podcasts, videos, and blog posts on topics like scripting Minecraft with ClojureScript and restrained Datalog implementations. It also lists numerous new library and tool releases, including tools.build, data.json, honeysql, datalevin, and basilisp, spanning areas such as build tooling, databases, machine learning, testing, and profiling.

Brett Cannon··Brett Cannon

What the PSF Conduct WG does

AI 摘要The PSF Conduct WG has four main functions: maintaining the PSF Code of Conduct, notifying PSF members who violate it publicly while promoting their membership, recording conduct violations reported by other groups, and providing advice to Python community groups that ask for it. Contrary to common misunderstandings, the WG does not proactively search for violations or misconduct online, and it has no power to compel any group or individual to take action—enforcement and moderation remain entirely with the groups seeking its advice. Its most frequent activity by far is offering guidance, which groups typically (though not mandatorily) choose to follow.