编程 · 最新文章

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

Without Boats·

A four year plan for async Rust

AI 摘要The article marks four years since Rust's async/await feature shipped as a 'minimum viable product' in version 1.39.0, arguing that the project's failure to ship extensions to async/await since then is the primary controllable reason for async Rust's negative reputation. The author proposes a roadmap of features needed to improve the async Rust experience, organized by timeline: ones achievable in the next 18 months, ones requiring up to three years, and a potential longer-term language change.

Lea Verou··Lea Verou

Minimalist Affordances: Making the right tradeoffs

AI 摘要The article critiques GitHub's new comment UI, arguing that its minimalist redesign merged the text field and tabs into one irregular shape, weakening both affordances so badly that even experienced users struggle to recognize where they can type. It explains how UI conventions like link underlines and clickable logos only became standard through widespread exposure—unlikely for this uncommon combination—and warns against 'UX Stockholm Syndrome,' where users come to defend interfaces after prolonged exposure to poor usability. Following social media backlash, GitHub's Primer team responded receptively to the feedback and shipped an improved design with a clearly outlined textarea.

Svelte Blog·

What’s new in Svelte: November 2023

AI 摘要The November 2023 Svelte update announces Svelte Summit Fall on November 11th and highlights recent releases improving developer experience, including Svelte 4.2.2, better block folding in language tool extensions, inferred route parameter types in SvelteKit 1.26.0, and a new invalidateAll option for use:enhance in kit@1.27.0. The post also showcases community-built apps and sites, learning resources like tutorials and talks, and new tools such as Deno's out-of-the-box SvelteKit support and Cloudinary's official Svelte SDK.

research!rsc··Russ Cox

Running the “Reflections on Trusting Trust” Compiler

AI 摘要Marking the 40th anniversary of Ken Thompson's 1983 Turing Award lecture 'Reflections on Trusting Trust,' this article recaps the classic three-stage compiler backdoor attack: writing a self-reproducing quine, showing how compilers can 'learn' details that persist only in their binaries, and combining these to invisibly infect the login program. The author then obtained Thompson's actual original backdoor code (nih.a), which had never been requested or released before, and ran it in a V6 Unix emulator. The walkthrough demonstrates how the code modifies the C compiler to backdoor login and reproduce itself into newly compiled compilers, ending with the construction of both an 'evil' compiler and a clean one.

Baby Steps·

Idea: "Using Rust", a living document

AI 摘要The author reflects on how the Async Working Group previously created an Async Vision Doc using narrative 'status quo' stories, an experience they found valuable. Inspired by discussions at EuroRust, they propose adapting this approach into a living document about the Rust user experience, capturing what people are trying to do with Rust, where it succeeds, and where it needs improvement. They also see potential for this idea to enhance other processes such as planning, public communication, and RFCs.

fasterthanli.me··Amos Wenger

Just paying Figma $15/month because nothing else fucking works

AI 摘要The author explains they reluctantly pay $15/month for Figma because no other tool works well. They attribute their spending reluctance to a frugal upbringing, the belief that 'a poor craftsman blames their tools' (which they internalized as not deserving nice things), and a religious education that framed earthly possessions as temporary temptations to be avoided.

Marc Brooker·

Optimism vs Pessimism in Distributed Systems

AI 摘要The article explains that components in distributed systems inevitably make assumptions about each other's behavior, which can be classified as optimistic (avoiding or delaying coordination) or pessimistic (requiring coordination), with major consequences for scalability and performance. Using examples like cache TTLs versus optimistically serving stale data, optimistic concurrency control versus pessimistic locking, and leases as a hybrid of both, it illustrates how each choice trades off availability, consistency, and wasted work. The author advocates explicitly stating every assumption and labeling it optimistic or pessimistic to structure design reasoning and surface hidden tradeoffs, such as availability versus staleness.

Random ASCII··brucedawson

Localization Failure: Temperature is Hard

AI 摘要The article examines a localization error in a Guardian headline about Malawi, where a temperature 20 °C above average was reported as '68 °F above average' instead of the correct 36 °F. The author explains that while 20 °C as an absolute temperature equals 68 °F, converting a temperature difference requires only multiplying by 1.8—adding 32 °F in that context is wrong. This illustrates that translating temperatures demands context, since 20 °C could mean 68 °F, a 36 °F difference, or −4 °F depending on usage.

Andrew Kelley·

The Techno-Optimist Manifesto

AI 摘要This manifesto argues that technology is an increasingly powerful tool whose potential is thwarted by humanity's dark impulse to dominate others, which it identifies as the ultimate enemy of innovation. It declares free market capitalism, venture capital, and religion to be outdated systems in need of replacement, and calls for ending war, reducing military budgets, and building sustainable systems that prevent irreversible harms such as nuclear war, mass extinction, and ecological destruction. It concludes that dedicating one's life to science, engineering, and technology is justified by faith in humanity's ability to mature and wield ever more powerful tools responsibly.

Without Boats·

Why async Rust?

AI 摘要The article, written by a key contributor to Rust's async/await design (2017-2019), addresses how community reception of async Rust has shifted from initial excitement to increasing criticism on forums like Hacker News. The author argues that, despite the perception of async Rust as a messy design, there was no viable alternative given Rust's constraints, and aims to explain the original context and rationale behind the design decisions.

Baby Steps·

Eurorust reflections

AI 摘要The author reflects on attending the EuroRust conference in Belgium, which was their first Rust-focused conference since COVID and their first ever in Europe. Prior to the conference, the types team organized a three-day in-person meetup. Both events were great and sparked many ideas that the author plans to write about in upcoming blog posts.

Without Boats·

Thread-per-core

AI 摘要The author addresses a controversy in the Rust community over async runtimes defaulting to multi-threaded, work-stealing executors, which critics melodramatically call 'the original sin' of Rust async for forcing Send and 'static bounds on code. The author finds these sweeping criticisms off-putting and argues that such claims are not credible technical arguments. They conclude that the industry's discourse around this debate is rather unserious.

Random ASCII··brucedawson

32 MiB Working Sets on a 64 GiB machine

AI 摘要This article investigates an undocumented Windows behavior where calling SetPriorityClass with PROCESS_MODE_BACKGROUND_BEGIN caps a process's working set at 32 MiB, causing Chrome's setup.exe to spend 99% of its CPU time in page-fault handling. The author's tests showed this can make memory scans run 250 to 800 times slower, and because trimming the working set merely moves pages to the standby list without actually saving memory, the feature achieves nothing useful. The author recommends that Microsoft remove this behavior or at least document it, noting the issue has been known since at least Windows 7 and remains unaddressed.

Svelte Blog·

Hacktoberfest 2023 with SvelteKit

AI 摘要SvelteKit is participating in Hacktoberfest 2023, a global October event that encourages developers to contribute to open-source projects. Developers can register for the event and have their pull requests to SvelteKit count toward participation, with helpful issue tags like 'low hanging fruit' and 'contributions-welcome' for finding work. Contributors are encouraged to communicate early about the issues they take on and to ask questions in the project's dedicated Discord #hacktoberfest channel.