Fixing a Memory Leak in a Production Node.js App
How I found and fixed a memory leak on kentcdodds.com
今日新增 29 篇 · 共 2,701 篇 · 来自 79 个博客
How I found and fixed a memory leak on kentcdodds.com
As developers, we don't like working with forms, but they're a critical part of most web applications! In this tutorial, you'll learn exactly how to wire up all of the different form controls in React. Never forget how to data-bind a checkb
AI 摘要The article explains why the Vello 2D GPU renderer (formerly piet-gpu) abandoned piet-gpu-hal, its hand-rolled GPU abstraction layer, in favor of wgpu and the WebGPU/WGSL ecosystem. Although the custom layer achieved goals like precompiled shaders (saving binary size and startup time) and access to advanced GPU features such as subgroups and descriptor indexing, wgpu offers a better developer experience, community tooling, and web deployment. The author reflects on lessons learned, notes WebGPU pain points, and says the roadmap may eventually revisit precompiled shaders and native back-ends to regain those lost capabilities.
AI 摘要The article argues that erasure coding—breaking data into M parts that can be reconstructed from any k of them—is an underused technique for reducing tail latency in cache and storage systems, offering more flexibility than all-or-nothing hedged requests. Beyond significantly reducing tail latency, it also improves median latency (by about 20% in the author's system), eliminates the availability impact of single node failures, and enables flexible load spreading across nodes. The author recommends considering erasure coding when building latency- or availability-sensitive systems, noting it is ubiquitous in storage and networking but rarely discussed more broadly.
AI 摘要This January 2023 update covers the release of SvelteKit 1.0, detailing new features like improved Storybook/Histoire support and vitePreprocess as the default, along with breaking changes such as disallowed unknown exports, updated fail/ActionFailure APIs, and a move to Vite 4. It also highlights new Svelte compiler features (direction for custom transitions, @const function updates, and the new svelte/elements type definitions), updated language tool requirements (Node 16, TypeScript 4.9, Svelte 3.55), and a community showcase of apps, learning resources, and libraries such as Konsta UI and tRPC-SvelteKit.
AI 摘要In its 2022 year in review, the Vue team highlights switching to Vue 3 as the default version in February, nearly 200% growth in Vue 3 NPM usage, improved tooling through Vite and Volar 1.0, and ecosystem milestones like Nuxt 3 and Vuetify 3 reaching stability, while Vue 2.7 backported key Vue 3 features for users staying on Vue 2. Looking ahead to 2023, the team plans smaller, more frequent minor releases with no big breaking changes, continued experimentation with Vapor Mode—an opt-in compilation strategy offering better performance and smaller bundles—and reminds users that Vue 2 end-of-life arrives in one year. Several in-person Vue conferences are also scheduled worldwide throughout 2023.
AI 摘要The author reflects on 2022 and sets goals for 2023, centered on his ambitious portfolio of Rust UI infrastructure projects. His biggest priority is shipping Vello, a GPU-accelerated 2D renderer (formerly piet-gpu), while Xilem, a reactive UI architecture he believes is the best for Rust, will depend largely on community contributions. He also plans to continue curve and GPU compute research, but explicitly rules out writing a shader language or academic papers, preferring his blog and open source work as his main channels for sharing results.
I was involved in a very bad car accident in 2022. Here's the story.
A review of what happened in the KCD world in 2022
This post explains the motivation behind the new ExDoc Cheatsheet feature. It also highlights other ExDoc features that show how ExDoc has been evolving to make the documentation experience in Elixir better and better.
AI 摘要The article argues that the web has long lacked meaningful structure, and that adding semantic markup will only become widespread if it is easier than not doing it. The author proposes the Block Protocol, an open, free standard for creating reusable, semantically-rich blocks (like 'book' or 'address') that can work across any conforming text editor, rather than waiting for individual vendors to build every block type. As a first step, the team has built a WordPress plugin—available in February alongside Block Protocol spec version 0.3—that lets anyone embed these blocks easily, leveraging WordPress's 43% share of the web to make the ecosystem immediately useful.
It's been months in the making but I'm excited to finally release our next website template — Protocol, a beautiful starter kit for building amazing API reference websites.
AI 摘要The article argues that while engineering rules of thumb are context-dependent and often misleading, they can be transformed into durable quantitative frameworks, as illustrated by Jim Gray's five-minute rule and a recalculated 'hardware is free, developers are expensive' heuristic. Some truisms, like Jevons' Paradox, resist quantification and thus remain limited in usefulness. The author concludes that software engineering should embrace quantitative and economic thinking as a core discipline.
AI 摘要After two years of development, SvelteKit 1.0 has been released as the recommended way to build Svelte applications of all sizes. It is an application framework built on top of Svelte that addresses common questions like routing, server-side rendering, and data fetching, drawing on ideas from frameworks like Next.js and Remix while offering flexible deployment options through adapters. Built on Vite with support for TypeScript and other tools, SvelteKit can be deployed anywhere JavaScript runs, and future plans include built-in i18n support and work on Svelte 4.