编程 · 最新文章

今日新增 30 篇 · 共 2,704 篇 · 来自 79 个博客

Marc Brooker·

Pat's Big Deal, and Transaction Coordination

AI 摘要The article analyzes Pat Helland's CIDR'24 'BIG DEAL' proposal, in which scalable applications avoid concurrently updating the same key and databases avoid coordinating across transactions that touch different keys, in exchange for scalability. It explains that this deal relies on snapshot isolation, which permits a write-skew anomaly, and shows that upgrading to serializability would require tracking read sets and coordinating across many more keys, potentially harming asymptotic scalability. The author proposes an alternative 'serializable New Big Deal' that eliminates write skew but shifts the burden onto developers to carefully manage their reads to maintain good scalability.

Marc Brooker·

What is Scalability Anyway?

AI 摘要The author defines scalability as the range in which a system's marginal cost of handling additional work stays approximately constant, arguing this definition clarifies a term that is often used inconsistently. Using examples of single-machine systems, sharded/load-balanced multi-machine architectures, and serverless platforms, the article shows how each exhibits different marginal cost curves, with spikes at initial provisioning or at capacity limits. The author concludes that serverless offerings, with their nearly constant per-unit costs, provide the strongest scalability benefits and are therefore his preferred foundation for building systems.

Baby Steps·

What I'd like to see for Async Rust in 2024 🎄

AI 摘要The author reflects that while 2023 was a significant year for Rust, much of it laid groundwork for 2024, and announces a series of blog posts about their goals for the coming year. Framed around proposed project goals to make them concrete, the first post focuses on what the author hopes to see for async Rust in 2024.

Svelte Blog·

What’s new in Svelte: January 2024

AI 摘要The January 2024 Svelte update highlights the release of SvelteKit 2.0, which brings features like shallow routing, fine-grained search param invalidation, and a smooth migration via the svelte-migrate command. Meanwhile, the Svelte 5 preview introduced new capabilities such as the $inspect rune, nested reactivity by default with proxied $state, the unstate function, and the $state.frozen rune. The post also rounds out with a community showcase of apps, learning resources, and libraries built with Svelte.

The Vue Point·

Announcing Vue 3.4

AI 摘要Vue 3.4 'Slam Dunk' has been released, featuring a completely rewritten template parser that is twice as fast and a refactored reactivity system that makes effect triggering more accurate and efficient. The release also stabilizes the defineModel macro, introduces a same-name shorthand for v-bind, and improves hydration mismatch error messages. Additionally, several deprecated features have been removed, including the global JSX namespace and the experimental Reactivity Transform.

Lea Verou··Lea Verou

Eigensolutions: composability as the antidote to overfit

AI 摘要The article introduces 'eigensolutions'—general solutions that address multiple seemingly unrelated use cases—as the antidote to overfitting, a hallmark of poor design in creator tools where overly specific solutions fail to generalize. It argues that designing such solutions requires a mindset shift from linear design to composability, breaking features into smaller, reusable primitives. Layering high-level shortcuts on top of these primitives, as illustrated by Coda's table filtering, can both reduce the floor and raise the ceiling, making common things easy while keeping complex things possible.

Marc Brooker·

Why Aren't We SIEVE-ing?

AI 摘要The article discusses SIEVE, a remarkably simple yet highly effective cache eviction algorithm (to appear at NSDI'24) that improves on FIFO by adding a single 'visited' bit and a eviction hand, outperforming nine state-of-the-art algorithms on many real-world traces. The author speculates that SIEVE went undiscovered for decades because it lacks scan resistance, which matters for block and file workloads that mix random accesses with large sequential scans. To address this, the author proposes SIEVE-k, a variant using small saturating counters instead of a bit, which performs well against synthetic scan workloads but shows only mixed results on real-world traces, suggesting it is not a clear overall win over SIEVE.