AI summaryA former Rust contributor reflects on the project's direction nearly two and a half years after stepping back, expressing both excitement about recent releases and apprehension about some choices the project has made. They welcome Niko's recent emphasis on stability and polish over grand new projects, and frame this post as the first in an upcoming series of thoughts on Rust's design in 2023, especially regarding async.
AI summaryThis article, part of a series on database scalability, examines 'false sharing'—the problem where evenly or randomly sharded databases get unlucky and place multiple hot keys on the same shard, making some shards hotter than ideal. Simulations with uniform and Zipf-distributed keys show random sharding can produce shard loads far above the ideal (e.g., nearly 80% of traffic on the hottest of two shards), and while larger databases slowly dilute the effect, size never fully solves the problem. The effect applies beyond databases to any sharded system such as microservices, queues, or network paths, and temporal locality of recently-created keys under range-based sharding can make shard heat imbalances even worse.
AI summaryDrawing on experience teaching React at a coding bootcamp, the author identifies nine common pitfalls that consistently trip up beginners. The article walks through each of these gotchas and demonstrates how to solve them, aiming to spare new React developers from unnecessary frustration.
AI summaryThis post continues a series on the 'send bound' problem—the need to add a Send bound to the future returned by an async function—by exploring 'Trait Transformers' as a proposed solution. The proposal emerged from a joint discussion among the author, Eric Holk, Yoshua Wuyts, Oli Scherer, and Tyler Mandry, building on Holk's inferred async send bounds proposal and the keyword generics group's work.
AI summaryThis March 2023 Svelte update covers the wave of new SvelteKit features since its 1.0 launch, including route-level adapter configuration, a snapshot mechanism for ephemeral DOM state, streaming promises in server load functions, and new preloading options, alongside Svelte language tool improvements like Call Hierarchy and TypeScript Inlay Hints. It also showcases community-built apps and sites, shares tutorials and learning resources, and announces events such as the SvelteHack hackathon with over $12,000 in prizes and the upcoming Svelte Summit. Finally, it rounds up a wide array of new libraries, components, helpers, and tools for the Svelte ecosystem.
AI summaryThe article describes major new SvelteKit features since the 1.0 release, starting with streaming non-essential data in load functions (SvelteKit 1.8), which allows pages to render immediately by returning nested promises that resolve and stream in later. It also introduces snapshots (since SvelteKit 1.5), a capture/restore mechanism stored in sessionStorage that preserves UI state like form inputs and scroll positions across navigation. Finally, SvelteKit now supports route-level deployment configuration, letting developers control per-route deployment settings, which on Vercel unlocks incremental static regeneration (ISR).
AI summaryThis post introduces Return Type Notation, an idea the author developed with Tyler Mandry for referring to the type returned by a trait method. It builds on the previously discussed 'send bound' problem, which concerns adding a Send bound to the future returned by an async function. The author considers finding the right syntax an open problem, noting that while many ingredients are known, achieving the correct balance remains delicate.
AI summaryVolar, 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.
AI summaryThe 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.
AI summaryThe 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.
AI summaryNightly 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.
AI summaryThe 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.
AI summaryThis 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.
AI summaryThis 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.
AI summaryThe 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.