最新文章

今日新增 423 篇 · 共 7,436 篇 · 来自 241 个博客

Josh W. Comeau··Josh W. Comeau

A World-Class Code Playground with Sandpack

No developer blog or technical documentation site is complete without an interactive code playground. The CodeSandbox team recently released a wonderful tool called Sandpack, to help us create these live-updating code editors. In this tutor

The Vue Point·

Volar 1.0 "Nika" Released!

AI 摘要Volar, the official IDE/TypeScript tooling for Vue, has reached version 1.0 "Nika" after seven months of full-time development sponsored by Vue creator Evan You. The release brings widespread improvements including better UX and performance, a smaller bundle, out-of-the-box usage enhancements, stronger TypeScript support (such as vue-tsc --watch, Inlay Hints, and stricter template type checking), new VueLanguagePlugin and LanguageServicePlugin APIs, and a refactoring of the core to be framework-agnostic so it can power language servers beyond Vue. Future plans include improving the core framework in v2.0 to benefit tooling for other languages, plus a documentation website and further performance work.

Jay Alammar·

The Illustrated Stable Diffusion

AI 摘要This article provides an illustrated, accessible explanation of how Stable Diffusion works, breaking down its three main components: a CLIP text encoder that converts prompts into token embeddings, a UNet + scheduler that gradually denoises information in latent space, and an autoencoder decoder that produces the final pixel image. It explains how diffusion models are trained to predict and remove noise, and how text conditioning allows users to control what images are generated. The article also highlights the speed benefit of running diffusion on compressed latent representations rather than raw pixels, and notes that larger language models improve generated image quality.

Marc Brooker·

Atomic Commitment: The Unscalability Protocol

AI 摘要The article explains why atomic commitment (typically solved by two-phase commit) makes sharded transactional databases surprisingly hard to scale: maximum throughput equals the sum of per-node capacities divided by k, the mean number of shards each transaction touches, and with uniformly distributed keys and transactions touching multiple rows, adding shards yields almost no throughput gain. Concurrency makes things worse, since two transactions contending for the same shards under near-capacity load can both fail, causing goodput to drop as shards are added. Because scale-out depends on avoiding coordination while atomic commitment is inherently a coordination protocol, the author concludes it is 'the anti-scalability protocol.'

Lea Verou··Lea Verou

State of CSS 2022 now open!

AI 摘要The State of CSS 2022 survey is now open, featuring 30 new CSS feature questions added based on community feedback, along with redesigned freeform pain-point questions and the new ability to attach freeform comments to any question. This year's survey aims to reach a broader range of developers beyond the JS developers who have historically dominated responses, and includes a question to gauge how much time respondents spend writing CSS versus JavaScript. The results directly inform what browser vendors prioritize for implementation, making thoughtful responses valuable for the entire developer community.

Svelte Blog·

What’s new in Svelte: October 2022

AI 摘要This October 2022 Svelte update covers the two-day Svelte Summit, where Rich Harris announced the first Release Candidate of SvelteKit 1.0 with no planned breaking changes remaining. SvelteKit gained features like use:enhance for progressive form enhancement, improved build performance, and Cloudflare adapter support, while Svelte 3.50.0 added new accessibility warnings and type improvements. The post also highlights the new Svelte Discord forum, editor tooling updates, community projects, tutorials, and new libraries.

Baby Steps·

Rust 2024...the year of everywhere?

AI 摘要The author reflects on what Rust will feel like by 2024, arguing it will be the year of 'everywhere.' While Rust already has many nice features, they currently only work in certain contexts. By 2024, these features will work everywhere developers want to use them, which the author believes will significantly change how the language feels.

Baby Steps·

Dyn async traits, part 9: call-site selection

AI 摘要The author revisits an alternative previously dismissed for Rust's dyn async traits: allowing the choice of how to manage a future to be made at the call site. The post explores what call-site-based dispatch would require and what its ergonomics might look like, concluding that the approach is fairly appealing despite some limitations.

Sean Carroll··Sean Carroll

The Biggest Ideas in the Universe: Space, Time, and Motion

AI 摘要The author announces the release of his new book, The Biggest Ideas in the Universe: Space, Time, and Motion, the first volume of a planned three-volume series that grew out of his 2020 physics videos. Unlike casual video introductions, the book involved real research and preparation, covering classical physics from Aristotle through Newton to Einstein while embracing equations rather than avoiding them. With no prerequisites, it teaches calculus and vectors along the way so that interested amateurs can truly understand the ideas, culminating in Einstein's general relativity and black holes.

Baby Steps·

What I meant by the "soul of Rust"

AI 摘要The author clarifies that the 'soul of Rust' is not about explicitness in allocation, but rather about the tension between key values—particularly productivity and versatility versus transparency. Rust's goal has been to feel like a high-level language while offering the performance and control of a low-level one, and the community often finds 'third ways' that resolve these tradeoffs, though such solutions take time. It is precisely when difficult decisions must be made that questions about the 'soul of Rust' arise, prompting the author to explore the role of transparency and the tensions surrounding it.

Baby Steps·

Dyn async traits, part 8: the soul of Rust

AI 摘要The author and Tyler Mandry have been sharing a proposed design for async functions in traits, described in a 'User's Guide from the Future.' This blog post takes a deep dive into one aspect of that proposal: handling dynamic dispatch, with particular attention to the tricky question of how explicit the design must be about the possibility of allocation. The author frames this discussion as touching on a core question about the fundamental identity—or 'soul'—of Rust.

Raph Levien·

Parallel curves of cubic Béziers

AI 摘要This article presents a practical approach to approximating parallel (offset) curves of cubic Béziers using curve fitting, seeking the cubic Bézier closest to the true offset curve by employing numerical techniques such as cusp detection, Green's theorem, Gauss-Legendre quadrature, quartic root finding, and error measurement via Bézier/ray intersections. The claimed result has O(n^6) error scaling, producing visibly more accurate curves and fewer subdivisions than existing published algorithms. The author also discusses refinements like handling near-miss roots and degenerate control point configurations, and provides open-source (Apache 2) code implementations.