编程 · 最新文章

今日新增 29 篇 · 共 2,701 篇 · 来自 79 个博客

The Vue Point·

On Escape's Vue 2 to Svelte Migration

AI 摘要This article is a rebuttal from the Vue team to a blog post by Escape about migrating from Vue 2 to Svelte, correcting several inaccuracies in Escape's comparison regarding typing support, TypeScript enums, error boundaries, and meta-framework capabilities. The authors argue that performance and bundle size advantages for Svelte are not guaranteed and depend on the app's scale and implementation, caution against using State of JS survey satisfaction ratings as a migration justification, and discuss trade-offs between Svelte's compiler-based reactivity and Vue's explicit Composition API. The article concludes by expressing respect for Svelte, advising teams to carefully weigh the real costs and benefits before large migrations, and noting that paid extended support for Vue 2 will be available after its end of life.

Svelte Blog·

What’s new in Svelte: December 2022

AI 摘要The December 2022 Svelte update announces that SvelteKit 1.0 is imminent with 99% of milestone issues completed, detailing new features like the willUnload property, hash link support, and preload functions, alongside several breaking changes such as renaming 'load'/'unload' to 'enter'/'leave' and replacing prefetch options with preload-code/preload-data. It also covers new Svelte compiler CSS options ('external' | 'injected' | 'none'), showcases community apps and sites built with Svelte, and shares learning resources plus new libraries and tools like Skeleton and threlte v5.0.

Marc Brooker·

Lambda Snapstart, and snapshots as a tool for system builders

AI 摘要AWS's Lambda Snapstart uses microVM snapshots to reduce cold start times by cloning pre-initialized sandboxes, amortizing initialization work (such as runtime startup and JIT compilation) across many concurrent executions. The author explores the challenges clones introduce—restoring uniqueness for random number generation, handling TCP/TLS connection state, and efficiently moving snapshot data at scale—along with techniques like layered incremental snapshots to cut data movement by up to 90%. Beyond Lambda, the author argues that fast, cheap microVM snapshots are a powerful but underused tool for building secure, scalable systems, opening rich research opportunities in systems, storage, and cryptography.

Josh W. Comeau··Josh W. Comeau

Color Formats in CSS

AI 摘要This article explores the various ways to express color in CSS, including hex codes, RGB, and HSL. It argues that choosing among these color formats is a surprisingly important decision, and guides readers through a tour of the available options to determine which one serves best.

Josh W. Comeau··Josh W. Comeau

An Interactive Guide to Flexbox

AI 摘要This article introduces an interactive tutorial on the Flexbox layout mode for CSS. It explains that mastering the Flexbox algorithm allows developers to build fluid layouts that stretch and shrink without relying on arbitrary breakpoints. The guide promises to reveal the inner workings of Flexbox and teach readers how to do remarkable things with it.

Marc Brooker·

Amazon's Distributed Computing Manifesto

AI 摘要The article reviews Amazon's 1998 Distributed Computing Manifesto, recently shared by Werner Vogels, which diagnosed the tight coupling between Amazon's applications and its database and proposed a three-tier, service-based architecture with well-defined interfaces encapsulating business logic. It emphasizes that the manifesto also required a cultural mindset shift from data-centric (database schema) thinking to API-centric design, and presciently discussed distributing workflows by moving data to processes rather than processes to data. The author finds the document both a fascinating historical time capsule and strikingly relevant to today's architecture debates, including the recent return of two-tier, embedded-database designs.

Raph Levien·

Minikin retrospective

AI 摘要In this retrospective, the author, who wrote the original Minikin text layout engine for Android around 2013, describes its design, which was shaped by compatibility with Android's text APIs and includes features like a Knuth-Plass-inspired line breaking algorithm optimized for mobile, itemization based on font fallback chains with bitmap acceleration, and handling of emoji presentation and backspace deletion. He encourages those working on text layout projects (such as new Rust efforts like cosmic-text and parley) to study existing open source codebases, since the knowledge is arcane and documentation scarce. He points readers to resources including the newly released 2013 Project Minikin slide deck, an LWN article, and his 2015 ATypI talk, noting that Flutter's LibTxt was originally based on Minikin.

Marc Brooker·

Writing Is Magic

AI 摘要The author argues that long-form writing is the most powerful tool for influencing others, driving consensus, and communicating ideas at work, calling it the closest thing to magic. Writing offers clarity by exposing sloppy thinking, captures readers' focused attention, scales across time and audiences, lends authority to ideas (which must be handled carefully to avoid becoming dogma), and serves as a personal memory record. While writing takes significant time, the author finds it almost always a worthwhile investment and recommends practicing deep reading while discouraging nitpicking in document feedback.

Lea Verou··Lea Verou

Position Statement for the 2022 W3C TAG Election

AI 摘要In this position statement for the 2022 W3C TAG election, Lea Verou announces her candidacy for re-election to the W3C Technical Architecture Group (and later confirms she was re-elected), citing her two years of service that included over 70 design reviews and co-leading the Web Platform Design Principles effort. She highlights her nearly two decades of web development experience, a decade of CSS Working Group and MIT-level HCI research, and her goal of ensuring web platform features are not only powerful but also learnable and approachable. As an independent candidate unaffiliated with big tech, she commits to spending hundreds of hours over the next term serving developers and end-users and keeping the TAG connected to the developer community.

Svelte Blog·

What’s new in Svelte: November 2022

AI 摘要This is Svelte's November 2022 monthly update, covering SvelteKit improvements such as a new update method for use:enhance, optional routing parameters, and several breaking changes, plus compiler updates including new accessibility warnings and expanded style support. The article also highlights a large community showcase of apps and sites, tutorials and articles for learning Svelte, and numerous libraries, tools, UI kits, and starter templates for Svelte and SvelteKit developers.

Mara Bos·

Do we need a "Rust Standard"?

AI 摘要This blog post examines whether Rust should receive a formal standards document like those that exist for C and C++. The author argues that while Rust needs an accurate specification, full 'standardization' may not be necessary depending on how it is defined. The post also provides an overview of the current state of Rust's stability guarantees and specification efforts.

Marc Brooker·

Give Your Tail a Nudge

AI 摘要The article discusses the Nudge scheduling algorithm, which improves tail latency over the ubiquitous First-Come First-Served (FCFS) policy by swapping a small job with the large job directly ahead of it in the queue, with each job eligible for only one swap. The author simulates Nudge in a single-server M/G/1 system and finds encouraging results showing it reduces latency across the whole tail at various load levels. Open questions remain before production use, including how Nudge behaves with real-world heavy-tailed job size distributions and how it generalizes to larger systems with multiple queues and servers.

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.