Programming · Latest articles

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

Bun Blog·

Bun v1.1.13

Fixes 97 bugs (addressing 211 👍). Reliability improvements to bun install, WebSocket server, fetch, worker_threads. worker_threads now supports eval. `URL.createObjectURL`, stack trace error location improvements, several `bun install` fixe

Marc Brooker·

Not Just Scale

AI summaryThe article rebuts the popular claim that modern single machines are powerful enough to make distributed systems unnecessary, acknowledging the kernel of truth that today's hardware is extremely fast but arguing that scale is only a small part of why distributed systems matter. It highlights benefits single machines can't match—availability, durability, utilization, latency, specialization, isolation, and easier change management—and contends that simplicity is a property of entire systems (including people and processes), so single-machine designs often merely hide operational complexity. Finally, it notes that scale matters both technically and organizationally (e.g., avoiding coordination as teams grow), and that engineers should design for their business's actual needs and future risks rather than memes or strong opinions.

V8··Francis McCabe, Thibaud Michaud, Ilya Rezvov, Brendan Dahl

WebAssembly JSPI has a new API

AI summaryWebAssembly's JavaScript Promise Integration (JSPI) has a redesigned API shipping in Chrome M126 that removes explicit Suspender objects and WebAssembly.Function in favor of simpler constructs (WebAssembly.promising and WebAssembly.Suspending), and now only suspends when a JavaScript function actually returns a Promise. Emscripten users on version 3.1.61 or later need no code changes, while the old API will be removed after Chrome M128 (October 2024). Future work includes growable stacks to support millions of suspended coroutines and advancing JSPI through the W3C Wasm CG standardization process, where it is currently at phase 3.

Josh W. Comeau··Josh W. Comeau

Promises From The Ground Up

The “Promises” API is a surprisingly tricky part of modern JavaScript. Without the right context, it doesn’t make much sense at all! In this tutorial, you’ll build an intuition for how Promises work by getting a deeper understanding of Java

Baby Steps·

The borrow checker within

AI summaryThe author proposes a four-part roadmap of changes to Rust's borrow checker, dubbed 'the borrow checker within,' intended to help Rust better support code patterns that fit its spirit but currently violate its rules. While the author feels comfortable with the designs, details still need to be scoped out, and a-mir-formality is considered an ideal place to do that work.

Bun Blog·

Bun v1.1.11

AI summaryBun v1.1.11 fixes 36 bugs, including a peer dependencies resolution issue in bun install, and introduces the ability for bun update to save dependency updates to package.json. The release also delivers 5x faster setTimeout throughput on Linux, improved Node.js compatibility across fs, zlib, timers, http, dgram, and module, along with event loop improvements on macOS and Windows reliability enhancements.

Svelte Blog·

What’s new in Svelte: June 2024

AI summaryThe June 2024 Svelte newsletter highlights the maintainers' progress on the Svelte 5 Release Candidate, including improvements like disallowing bind: on component exports in runes mode, enhancements to the migration tool, MathML support, the $state.is rune, and a new rootDir compiler option. It also features a community showcase of apps and sites built with Svelte, such as Onlook and Equimake, along with learning resources like podcasts, videos, and articles about Svelte 5 and SvelteKit. Finally, the newsletter lists useful libraries, tools, and components, such as Floating UI Svelte and svelte-infinite.

Andrew Kelley·

Zig's New CLI Progress Bar Explained

AI summaryThe article explains the technical implementation of Zig's new CLI progress bar, which adopts a modern philosophy where an application spawned with stderr as a terminal assumes full ownership of it and leverages all available terminal features. The design centers on a thread-safe, lock-free API using statically pre-allocated nodes with a free-list allocator, an update thread that serializes shared data on a timer, and inter-process communication via progress pipes that lets child processes report progress semantically so the terminal owner can aggregate and display it. Benchmarks show the new implementation has negligible performance overhead, and it even helped uncover a long-hidden bug in Zig's child process spawning code before being merged.

Hillel Wayne·

What We Know We Don't Know: Empirical Software Engineering

AI summaryThis article accompanies a talk given at DDD Europe 2024 about Empirical Software Engineering (ESE), the discipline of studying what actually works in software development through data collection, studies, and peer review rather than relying on instinct. It outlines the main research methods used—controlled trials, natural experiments, and observational studies—and provides extensive links to the papers and sources referenced in the talk. The piece concludes with findings related to Domain-Driven Design and answers to audience questions about what science can and cannot conclude about software practices.

brandur.org··Brandur Leach

Eradicating N+1s: The Two-phase Data Load and Render Pattern in Go

AI summaryThe article explains the N+1 query problem, in which rendering a collection of records triggers an extra database query per record due to lazy loading of associations, and it surveys mitigation strategies such as ActiveRecord eager loading, Rails 6.1's strict loading, and Stripe's creative use of Ruby fibers to batch database intents. It then describes how the author adopted a two-phase load-and-render pattern in Go at their current company, which loads all required data in batched queries before rendering and has eliminated N+1s for two years. The pattern works well despite Go's inherent verbosity and lack of a good ORM.

Bun Blog·

Bun v1.1.10

Fixes 20 bugs. 2x faster uncached bun install on Windows. fetch() uses up to 2.8x less memory. Several bugfixes to bun install, sourcemaps, Windows reliability improvements and Node.js compatibility improvements

Bun Blog·

Bun v1.1.9

AI summaryBun v1.1.9 fixes 67 bugs, including issues with workspaces in bun install, sourcemaps in bun build, IPv6 and VPN connectivity, and Windows support for UNC paths, junctions, symlinks, and pnpm. The release also delivers performance improvements, such as faster fetch(), a new dns.prefetch() API, atob() becoming 8x faster, and toString('base64url') 5x faster. Additionally, it adds the expect().toBeReturned() matcher along with Node.js compatibility improvements and Bun Shell fixes.

React Blog··Ricky Hanlon

React Conf 2024 Recap

Last week we hosted React Conf 2024, a two-day conference in Henderson, Nevada where 700+ attendees gathered in-person to discuss the latest in UI engineering. In this post, we'll summarize the talks and announcements from the event.