最新文章

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

The Vue Point·

Volar: a New Beginning

AI 摘要Volar, the official Vue.js VSCode extension, has extracted its framework-agnostic components into a new standalone project called Volar.js, an embedded language tooling framework that supports not only Vue but also Astro, Svelte, Angular, and regular single-language LSP servers. The original Volar extension and vue-tsc code have moved to the vuejs/language-tools repo, and a new Volar.js Core Team has been formed, with StackBlitz supporting full-time development. Future plans include Monaco support, better support for IDEs beyond VSCode, a Bun-based language server, a monoserver architecture, a Rules API for linting, and a Scripts API for CI usage.

Marc Brooker·

Hot Keys, Scalability, and the Zipf Distribution

AI 摘要The article explains how hot keys—keys accessed far more often than average—create bottlenecks that limit scalability in distributed systems like sharded databases, since adding more shards doesn't help the hottest keys. Through simulations using baby name popularity and Zipf-distributed data as examples, it shows that errors and latency start occurring much earlier than naive calculations predict, and Zipf's aggressive skew (e.g., the word 'the' being 7% of written English) caps scalability severely, with hard limits even at infinite key cardinality. The author concludes that scalability predictions are highly sensitive to the shape of the key distribution, especially at the head, and argues the systems community should benchmark with real workload distributions rather than over-relying on Zipf.

research!rsc··Russ Cox

The Magic of Sampling, and its Limitations

AI 摘要The article explains that random sampling allows surprisingly accurate estimates about very large populations from small samples, with accuracy depending only on the number of samples, not the population size—for example, 100 samples yield roughly 5% accuracy even when sampling just a tiny fraction of billions of items. It derives the margin of error mathematically using Go's standard math package, showing how to compute confidence intervals and required sample sizes. However, the technique has a key limitation: the sampling mechanism must align with the statistic being estimated (each item equally likely to be chosen), as skewed sampling causes systematic error that can only sometimes be corrected through weighting, as illustrated by M&M bag examples and Go's memory profiler.

Baby Steps·

Async trait send bounds, part 1: intro

AI 摘要Nightly Rust now supports async functions in traits under static dispatch, but users still need a convenient way to specify when an async function must return a Send future. The article provides background on Send futures, explains why the async_trait crate's solution is not desirable for the language itself, and outlines the general direction the Rust team intends to take, with follow-up posts to explore specific solutions.

Ben Kuhn··Ben Kuhn

Leaving Wave, joining Anthropic

AI 摘要The author announces their departure from Wave, where they served as CTO for about eight years, calling it the hardest decision they've ever made given their deep attachment to the mission, colleagues, and friends there. Two key shifts motivated the move: Wave's engineering team has matured to the point where the author is no longer critical, and recent rapid progress in AI has raised safety concerns that made them want to work on AI alignment. After surveying organizations in the space, they chose Anthropic for its impressive team and safety-focused approach to building large language models, and will relocate to the Bay Area later this year.

Svelte Blog·

What’s new in Svelte: February 2023

AI 摘要This article is Svelte's February 2023 monthly update, covering recent minor releases across Svelte and SvelteKit that focused on bug fixes and features following the SvelteKit 1.0 launch, including base path support for remote dev environments, a new text() helper, and configurable generated tsconfig. It also notes Svelte's increased satisfaction and interest in the State of JS survey results. Finally, it rounds up community showcases, learning resources like tutorials and videos, and new libraries and tools such as Sveltepress, Dapper UI, and Neodrag.

Marc Brooker·

NoSQL: The Baby and the Bathwater

AI 摘要This article, the introduction to a series on database scalability, examines what the mid-2000s NoSQL movement discarded—explicit schemas, transactions, strong consistency, joins and secondary indexes, and SQL itself—through the lens of what fundamentally limits scalability. The author argues that coordination, rather than mere computational expense, is the key limiter of scalability, meaning some NoSQL simplifications (like dropping unique keys and auto-increment) were justified while others (like abandoning transactions and strong consistency) were likely unnecessary. It concludes that NoSQL correctly identified real scalability problems but overreacted, partly due to a misunderstanding of what actually drives scalability.

Lil'Log·

The Transformer Family Version 2.0

AI 摘要This article presents a significantly revised and expanded version (2.0) of the author's 2020 overview post on Transformer architecture improvements, incorporating many new developments proposed over the past three years and roughly doubling in length. It begins by defining the mathematical notations used throughout, such as query, key, and value weight matrices, attention scores, and positional encodings. It then reviews Transformer basics, covering the vanilla encoder-decoder architecture from Vaswani et al. (2017) and simplified encoder-only (BERT) and decoder-only (GPT) variants used for language modeling.

Lara Hogan·

30-60 days in a new leadership role: run experiments for change

AI 摘要In the 30–60 day phase of a new leadership role, leaders should narrow their change ideas down to two time-boxed (2–3 week), measurable experiments that connect to the themes heard from teammates during the first 30 days. Success metrics should directly tie to each experiment's goal and address stakeholder concerns, and the experiments should be announced through a clear communication plan that helps people feel heard and included. After implementing the experiments and tracking learnings, the leader prepares to share results at the end of the first 60 days—still refraining from making permanent changes just yet.

Baby Steps·

Rust in 2023: Growing up

AI 摘要The author compares Rust's rapid growth to his daughter growing out of her clothes, noting that such fast expansion inevitably brings rough patches. These challenges exist both technically, as parts of the language don't scale to Rust's current size, and socially, as the project's processes must evolve to sustain growth. Heading into 2023, the author sees maturation and scaling as Rust's central theme, with the Rust 2024 edition two years away.

Lil'Log·

Large Transformer Model Inference Optimization

AI 摘要The article discusses the challenges of running inference on large transformer models, which, despite achieving state-of-the-art results across many tasks, are extremely expensive to use in terms of both time and memory. This high inference cost is a major bottleneck for deploying powerful transformers on real-world tasks at scale. Beyond the growing size of these models, two main factors (per Pope et al. 2022) contribute to the inference difficulty, and the article was also updated to include a section on distillation.