Programming · Latest articles

28 new today · 2,704 articles · from 79 blogs

V8··Darius Mercadier

Land ahoy: leaving the Sea of Nodes

AI summaryV8's optimizing compiler Turbofan, long known for using the Sea of Nodes intermediate representation, has over the past three years been migrated to Turboshaft, a more traditional control-flow-graph-based IR, which now covers the entire JavaScript backend and the whole WebAssembly pipeline. The article recounts how Turbofan was created in 2013 to replace Crankshaft, explains how Sea of Nodes differs from a CFG by letting operations float freely via value, control, and effect edges, and details why the V8 team concluded its downsides outweigh its benefits. Key problems include that Sea of Nodes graphs are hard to visually inspect and reason about, and that too many nodes end up tied to the effect chain or requiring control inputs, undermining the flexibility the IR was supposed to provide.

Baby Steps·

Dyn async traits, part 10: Box box box

AI summaryThis article, a divergence from the author's 'Rust in 2025' series, explores the author's latest thinking on how to support dyn Trait for traits containing async functions in Rust. The core challenge is balancing Rust's ability to express high-level, productive code with its philosophy of revealing low-level details, which are in direct tension for async functions in traits. This continues a discussion the author began nearly four years earlier in the first post of the series.

Raph Levien·

I want a good parallel computer

AI summaryThe article argues that GPUs, despite being 10-100x more powerful than CPUs, are prevented from becoming general-purpose parallel computers by an impoverished execution model and inadequate languages and tools, illustrated by the author's struggles with bounded memory in the Vello 2D renderer. Reviewing historical designs like the Connection Machine, Cell, and Larrabee, the author shows that promising parallel architectures existed but failed to catch on, leaving today's overly complex GPUs and limited AI accelerators. With workloads increasingly shifting toward compute, the author believes a simpler, more powerful parallel computer is possible and points to paths forward such as chips with large grids of CPU cores.

Clojure News·

Clojure Deref (Mar 21, 2025)

AI summaryThis Clojure Deref weekly roundup (March 21, 2025) highlights news and articles from the Clojure ecosystem, including Rama becoming free for production use and a series of Replicant posts on data-driven form processing. It also lists numerous new library and tool releases, such as ClojureDart, datalevin, pg2, Calva, Fulcro, FlowStorm Debugger, and squint.

Coding Horror··Jeff Atwood

The Road Not Taken is Guaranteed Minimum Income

AI summaryIn a speech at Cooper Union, the author reflects on the American Dream and describes their 'Stay Gold, America' pledge, which includes millions of dollars in charitable donations and a commitment to give away half their remaining wealth over five years. They argue that extreme wealth concentration has pushed America into a 'second Gilded Age,' blocking millions of people from a fair chance at the Dream. Pointing to precedents like Social Security, SSI, the Earned Income Tax Credit, and Stockton's guaranteed income pilot, they advocate Guaranteed Minimum Income as the most effective long-term solution and announce a new rural GMI initiative in partnership with GiveDirectly and OpenResearch.

Baby Steps·

Rust in 2025: Language interop and the extensible compiler

AI summaryThe article argues that Rust should aspire to serve as the new 'lingua franca' for interoperability between programming languages, a role long held by C, by making it easier to combine Rust with other languages in the same process. Rather than extending rustc with built-in knowledge of other languages, the author proposes investing in an 'extensible compiler' built on Rust's core premise of extensibility. This would let crate authors create ergonomic, efficient bridges between Rust and other languages, supporting Rust's goal of targeting foundational applications.

Steve Klabnik·

Does unsafe undermine Rust's guarantees?

AI summaryThe article argues that Rust's `unsafe` keyword does not undermine Rust's memory safety guarantees, because a language's semantics are distinct from the implementation code that carries them out, just as Ruby remains memory safe despite possible segfaults caused by interpreter bugs or C extensions. Every memory safe language necessarily relies on a small amount of trusted code—implementations interacting with hardware and foreign function interfaces—whose bugs fall outside the language's guarantees, whereas unsafe languages require trusting a large amount of code. Drawing on syllogisms, Hoare Logic, and Separation Logic, the author shows that assuming some code is safe is foundational to how we prove properties of programs, making Rust's small, explicit trusted code acceptable on a deep, not merely practical, level.

Trey Hunner··Trey Hunner

Django components: sometimes an include doesn't cut it

AI summaryThe article explores the problem that Django's {% include %} template tag cannot accept blocks of content, making it awkward to reuse templates like modals whose inner content varies. The author compares hacky workarounds (splitting includes into top/bottom parts), copy-pasting HTML, and Django component libraries, concluding that django-cotton provides a cleaner, more maintainable solution despite feeling somewhat 'magical.' Ultimately, a more elegant component tag would require Django's template language to support multi-line tags, which it currently does not.

Ben Kuhn··Ben Kuhn

How I've run major projects

AI summaryThe author shares their playbook for running major, time-sensitive projects at Anthropic, arguing that excellent project management is a rare, high-leverage skill whose core principles apply broadly, not just in crises. Key practices include clearing one's schedule to focus fully on the project, maintaining a detailed concrete plan to detect trouble early, running the fastest possible OODA (observe-orient-decide-act) loop since information processing is usually the critical bottleneck, and overcommunicating so team members can make good autonomous decisions. Once a project grows beyond roughly 10 people, the author recommends delegating management of crisply-scoped subprojects to highly organized, goal-focused leaders rather than necessarily the strongest technical contributors.

Clojure News·

Clojure Deref (Mar 14, 2025)

AI summaryThis edition of Clojure Deref, a weekly news roundup for the Clojure ecosystem dated March 14, 2025, highlights recent podcasts, videos, and blog posts, including topics like debugging with FlowStorm, rewriting a Flask app in Clojure, and AfterHour's scalable chat service built with Rama. It also lists a wide range of new library and tool releases this week, such as core.async 1.8.718-beta2, honeysql, calva, clojure-lsp, next-jdbc, and various ClojureScript and Babashka-related projects, and announces the upcoming Clojure/Conj in Charlotte, NC (Nov 12-14).

Steve Klabnik·

Choosing Languages

AI summaryThe author reflects on the backlash to Microsoft's decision to rewrite the TypeScript compiler in Go, arguing that language choices depend on contextual factors outsiders often don't know—such as Microsoft's choice being driven by how easily the existing codebase could be ported rather than rewritten. He criticizes the aggressive 'rewrite it in Rust' pressure surrounding the decision and recounts a formative 2013 incident in which he mocked someone for writing a grep tool in Node.js, an experience that made him recognize the toxicity of contempt culture in the Rails community and inspired him to help build a kinder Rust community. His conclusion is that people choose programming languages for valid, varied reasons, and disagreeing with someone's choice is no reason to be a jerk about it.

Hillel Wayne·

A Perplexing Javascript Parsing Puzzle

AI summaryThe article explains a JavaScript quirk where `x --> 0` at the start of a line is parsed as a line comment (equivalent to `//`), so `x = 1` followed by `x --> 0` prints 1 rather than evaluating a decrement-and-comparison. This behavior is a legacy hack from the Netscape Navigator 2 era, when developers wrapped scripts in HTML comments so older browsers wouldn't render the code as plain text. Because the standards committee refuses to break existing websites, the 2015 ECMAScript standard officially added `` as legal comment tokens, and browsers—as well as Node and Electron via their shared V8 engine—continue to support them.

Bun Blog·

Bun v1.2.5

Fixes 75 bugs (addressing 162 👍), and adds +69 passing Node.js tests. Improvements to the frontend dev server, CSS modules support, a full rewrite of Node-API, faster `Sign`, `Verify`, `Hash`, `Hmac` from `node:crypto`, and bug fixes for `n

Baby Steps·

Rust in 2025: Targeting foundational software

AI summaryRust turns 10 years old in 2025, prompting the author to launch a blog series called 'Rust in 2025' examining the language's current state and future direction. This first post presents a general vision for how Rust fits into the computing landscape, with a focus on foundational software, while upcoming posts will outline the major focus areas needed to realize that vision. The author anticipates—and hopes for—some controversy along the way.

Brett Cannon··Brett Cannon

Why I won't be attending PyCon US this year

AI summaryThe author announces they will skip PyCon US for the first time since 2003 in protest of the US trade war against Canada, viewing the tariffs as an economic act of war motivated by a desire to weaken and potentially annex Canada rather than by fentanyl concerns. They emphasize they don't blame Americans who voted differently, but plan to avoid US travel for the foreseeable future and attend Python community events outside the country instead. They believe the Canada-US relationship has been damaged for at least a generation, and will only consider returning once all tariffs are completely repealed.

Julia Evans··Julia Evans

Standards for ANSI escape codes

AI summaryThe article explains ANSI escape codes—the sequences terminals and programs use to communicate things like colors, cursor movement, and clipboard access—and surveys the standards that cover them, including ECMA-48, xterm control sequences, and the terminfo database. Because escape codes are only partially standardized, they can be unreliable and frustrating to debug, which has led some programs to abandon terminfo in favor of hardcoding a widely supported common set of codes. The author hopes that a clearer standards landscape, similar to how web standards improved over time, could eventually make terminal features more reliable and easier to adopt.