AI 摘要The article argues that GPUs, despite being 10-100x more powerful than CPUs, are prevented from becoming general-purpose parallel computers by an impoverished execution model and inadequate languages and tools, illustrated by the author's struggles with bounded memory in the Vello 2D renderer. Reviewing historical designs like the Connection Machine, Cell, and Larrabee, the author shows that promising parallel architectures existed but failed to catch on, leaving today's overly complex GPUs and limited AI accelerators. With workloads increasingly shifting toward compute, the author believes a simpler, more powerful parallel computer is possible and points to paths forward such as chips with large grids of CPU cores.
AI 摘要The author critiques Apple's new Metal shader converter, which eases porting DirectX 12 games by translating DXIL/HLSL shaders to Metal, arguing it adds underspecified complexity rather than advancing robust GPU infrastructure. A key complaint is that Metal remains the only major GPU API lacking device-scope atomic barriers (present in HLSL since Direct3D 11 in 2009), which prevents single-pass prefix sum implementations and reliable cross-threadgroup coordination, and in turn holds back WebGPU's performance. The author recommends Apple document which HLSL features are unsupported, and points to WebGPU and Asahi Linux's work as more promising paths toward well-specified, portable GPU compute.
AI 摘要The article describes refinements to curve-fitting techniques for approximating arbitrary curves with near-optimal Bézier paths, implemented in the Rust library kurbo, built around a new ParamCurveFit trait and efficient error evaluation using Green's theorem area/moment prefix sums. It covers error metrics, favoring Fréchet distance approximated via Tiller-Hanson ray casting, with a slower but more robust arc-length approach used for 'spicy' high-curvature regions, and goes beyond simple adaptive subdivision by optimizing subdivision point placement to minimize segment count. Finally, it addresses an unexpected problem where aggressively Fréchet-optimized curves develop bumps, solved by penalizing extreme control-point configurations to keep the output smooth at a cost of only one additional segment.
AI 摘要This is a satirical April Fools' post in which the author, a longtime Rust developer, mock-announces that the Linebender GUI projects will migrate from Rust to C++. In a deliberately persuasive style, the piece humorously dismisses memory safety concerns, praises C++'s abundance of build systems and rapid language evolution, and claims the C++ community is friendlier. The post is intended to satirize bad arguments commonly made against Rust, with the author noting afterward that its serious points and tone confused some readers.
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 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.
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.
AI 摘要This article presents a practical approach to approximating parallel (offset) curves of cubic Béziers using curve fitting, seeking the cubic Bézier closest to the true offset curve by employing numerical techniques such as cusp detection, Green's theorem, Gauss-Legendre quadrature, quartic root finding, and error measurement via Bézier/ray intersections. The claimed result has O(n^6) error scaling, producing visibly more accurate curves and fewer subdivisions than existing published algorithms. The author also discusses refinements like handling near-miss roots and degenerate control point configurations, and provides open-source (Apache 2) code implementations.
AI 摘要The article surveys the fragmented state of Rust GUI development, where no consensus has emerged among toolkits like egui, Iced, Druid, and Slint, largely because GUI design involves a large, sensitive tradeoff space with few obviously correct choices. The author argues that "native" is a confusing term that varies by platform, and recommends instead evaluating toolkits on concrete criteria such as text rendering, input methods, accessibility, and platform integration. It also discusses infrastructure-level fragmentation around windowing libraries like winit and druid-shell, and the tradeoffs of relying on the system compositor, urging developers to carefully consider alternatives and invest in improving this shared infrastructure.
AI 摘要The article introduces Xilem, a new architecture for building user interfaces in Rust, designed to overcome the problem that most existing UI architectures rely on shared mutable state, which is not idiomatic Rust. Xilem is based on a declarative, statically typed view tree that is diffed each cycle to incrementally update a persistent widget tree, with key innovations including event dispatching via id paths and Adapt nodes that enable clean component composition with separate mutable state access. The architecture draws on modern reactive patterns from toolkits like SwiftUI, Flutter, and React, and aims to deliver intuitive-to-write UI code with high performance through precise change propagation.