Programming · Latest articles
30 new today · 2,704 articles · from 79 blogs
Why it took 4 years to get a lock files specification
AI summaryThe author recounts the four-plus-year effort to create a standardized Python lock file specification, culminating in PEP 751 and the pylock.toml format being accepted in March 2025. The journey involved early discussions starting in 2019, the rejection of PEP 665 in 2022 due to its wheels-only approach, and multiple drafts of PEP 751 that had to balance the needs and disagreements of tools like uv, Poetry, and PDM across nearly 2,000 forum posts. Despite burnout and setbacks—including scaling back features to reach consensus—the final spec supports multi-use, cross-platform lock files, and tools like PDM, uv, and pip have already begun adopting it.
Vibing a Non-Trivial Ghostty Feature
Bun 1.3
Bun 1.3 introduces zero-config frontend development, unified SQL API, built-in Redis client, security enhancements, package catalogs, async stack traces, VS Code test integration, and Node.js compatibility improvements.
Notes on switching to Helix from vim
AI summaryThe author shares notes from three months of using the Helix text editor after 20 years with Vim/Neovim, motivated mainly by Helix's built-in language server support and minimal configuration needs. They praise features like the contextual search, quick reference popups, and multiple cursors, while noting annoyances such as poor text reflow, no persistent undo, and occasional panics. Switching proved easier than expected—learning the 'Helix way' worked better than mimicking Vim keybindings—though they might still return to Vim someday.
Finding a VS Code Memory Leak
AI summaryIn 2021, the author discovered a massive memory leak in VS Code—reaching around 64 GB—despite never having used the tool, by noticing unusually high seven-digit process IDs during a remote pair-programming session with a coworker, which signaled a process-handle leak. Using Task Manager and an ETW trace, they quickly traced the leak to a missing CloseHandle call after an OpenProcess call, which leaked roughly 64 KiB per unclosed handle, and the bug was fixed within days of being reported. The author concludes by suggesting that automatic resource limits on handles and memory would help catch such bugs during testing.
Handy Python REPL Modifications
AI summaryThe author shares handy customizations for the Python REPL (Python 3.13+), including custom keyboard shortcuts for navigation, dedenting, line swapping, and inserting sample data, plus a Solarized Light color theme, all set up via a PYTHONSTARTUP file. They created the pyrepl-hacks library, a friendly wrapper around Python's private _pyrepl and _colorize modules, and monkey-patch sys.path so it can be imported in every interpreter and virtual environment. The author warns these hacks rely on undocumented implementation details that may break in future Python versions, but plans to maintain the library and welcomes feedback.
SymmACP: extending Zed's ACP to support Composable Agents
AI summaryThe post introduces SymmACP, a proposed extension to Zed's Agent Client Protocol that would allow AI tools to be composed like Unix pipes or browser extensions, so components such as TUIs, slash commands, or backends can interoperate without knowledge of each other. Unlike today's monolithic AI tools, this layered approach lets users swap or add pieces without rebuilding everything. Currently a thought experiment, the author plans to prototype SymmACP in Symposium and invites interested readers to join the discussion on the Symposium Zulip.
The Handle trait
AI summaryThe author discusses recent debates around ergonomic reference counting in Rust, which followed a lang-team design meeting and a discussion at the RustConf Unconf. Rather than writing one long follow-up post, they plan to publish a series of smaller posts covering individual takeaways. In this first post, they provide context and propose naming the trait 'Handle'.
Introducing the React Foundation
Today, we're announcing our plans to create the React Foundation a new technical governance structure
React Compiler v1.0
We are releasing the compiler's first stable release today.
Locality, and Temporal-Spatial Hypothesis
AI summaryPrompted by Andres Freund's PGConf NYC talk on async IO in Postgres 18—which showed large performance gaps between forward and reverse scans due to read-ahead optimizations—the article explores locality as a foundational concept in database performance. It focuses on the 'temporal-spatial hypothesis,' the idea that data written around the same time will likely be read around the same time and should therefore be stored near each other, noting it is trivially true for streaming and time-series systems but rejected by hash-based databases and UUID-keyed schemas that trade read locality for write-time hotspot avoidance. The author concludes the hypothesis is only weakly true for most OLTP workloads, so systems that depend on it must either use specially optimized data structures or design schemas with careful knowledge of the database's underlying storage.
Zig Builds Are Getting Faster
Where It's at://
From handles to hosting.
core.async and Virtual Threads
AI summarycore.async 1.9.829-alpha2 now supports Java virtual threads (Java 21+), reimplementing go blocks on virtual threads while preserving their existing parking semantics, which eliminates the need for the analyzer-based inversion-of-control rewriting and makes loading and compilation faster with no code changes required. The io-thread execution context now also runs on virtual threads, and a new clojure.core.async.vthreads system property lets users control virtual thread usage via unset, target, or avoid settings, with older IOC-compiled go blocks remaining compatible. The maintainers are asking for feedback on performance, latency, throughput, and heap consumption in the #core-async channel on Clojurians Slack.
What’s new in Svelte: October 2025
AI summaryThe October 2025 Svelte update brings significant improvements to remote functions, including a new query.batch function, lazy discovery for better tree shaking, and enhanced schema support for the form function, along with experimental async SSR now available in Svelte v5.39.3 and SvelteKit v2.43.0+. The release also includes smaller updates like the %sveltekit.version% placeholder and project creation from the playground, plus a large community showcase featuring apps, tutorials, libraries, and tools built with or for Svelte.
React 19.2
React 19.2 adds new features like Activity, React Performance Tracks, useEffectEvent, and more.
How Deno protects against npm exploits
Recent supply chain attacks on npm is a reminder that Node and npm grants unfettered access to your systems. Here's how Deno, with an opt-in security model, protects against these vulnerabilities.
In the economy of user effort, be a bargain
AI summaryThe article extends Alan Kay's maxim 'Simple things should be simple, complex things should be possible' beyond programming languages and APIs to all user interfaces, especially 'long-tail UIs' like creative tools where no clean 20-80 split of use cases exists. It introduces the complexity-to-effort curve and frames user effort as a currency, warning that 'usability cliffs'—where slight increases in task complexity cause disproportionate jumps in effort—leave users feeling ripped off. Using examples like Google Calendar, the HTML video element, Instagram's editor, and Coda, the author argues that designers should consciously smooth this curve by defining high-level abstractions in terms of low-level primitives so users can incrementally extend simple flows rather than start over.
Bun v1.2.23
AI summaryBun v1.2.23 fixes 119 issues and introduces pnpm-lock.yaml migration for seamless switching from pnpm to bun install, plus Redis Pub/Sub support and concurrent test execution with configurable parallelism. The release also adds platform-specific dependency filtering via --cpu and --os flags, system CA certificate support, Windows code signing for compiled executables, JSX configuration improvements in Bun.build, a sql.array helper, and randomized test ordering. Additionally, it delivers numerous Node.js compatibility improvements across modules including http, dns, worker_threads, crypto, http2, net, and tty.