最新文章

今日新增 435 篇 · 共 7,471 篇 · 来自 241 个博客

Without Boats·

Three problems of pinning

AI 摘要The article discusses how the Pin API in Rust was designed so that high-level users would never need to interact with it, allowing futures to store self-references while remaining immovable during polling. However, Pin still leaks into high-level code in three ways: selecting a Future in a loop, calling Stream::next, and awaiting a Future behind a pointer. Two of these problems can be addressed through better AsyncIterator affordances, while the third stems from a design mistake that cannot be fixed without a breaking change.

Without Boats·

Coroutines, asynchronous and iterative

AI 摘要The author follows up on a previous post by examining coroutines for asynchrony and iteration from a more abstract perspective. They explain that their earlier point about AsyncIterator being the product of Iterator and Future makes more sense when considering the 'base case' of code that is neither asynchronous nor iterative. The post also features another ASCII diagram to illustrate the concept.

Baby Steps·

Project Goals

AI 摘要The author proposes 'project goals,' a new kind of RFC that defines a specific objective a specific group aims to achieve within a set timeframe, along with the commitments required from various teams to complete it. The teams being asked for support would decide whether to accept each goal, and accepted goals would serve as an incremental, rolling roadmap that declares intent and tracks follow-through. The author believes this mechanism would boost morale, help get work done, provide a clearer path to getting involved in Rust, and attract more paid maintainers, with plans to draft sample goals and a formal RFC to develop the idea.

Sean Carroll··Sean Carroll

New Course: The Many Hidden Worlds of Quantum Mechanics

AI 摘要The author announces a new 24-lecture course for The Great Courses/Wondrium titled 'The Many Hidden Worlds of Quantum Mechanics,' which follows the outline of his book 'Something Deeply Hidden.' The course serves as both a general introduction to quantum mechanics and an in-depth exploration of the Many Worlds approach, designed for a broad audience with essentially no equations. The author also notes that a sale on the course was ongoing at the time of writing.

Marc Brooker·

It's About Time!

AI 摘要This article explores how improved time synchronization—exemplified by AWS's new microsecond-accurate clock service for EC2—lets distributed systems rely on physical time more than the traditional advice of treating it as fit only for human consumption. The author walks through a progression of use cases, from log-based observability and absolute-time TTLs, to leases, consistent reads, consistent snapshots, and last-writer-wins conflict resolution, showing how better clocks with bounded error reduce the need for coordination while introducing subtle correctness risks. The conclusion is that high-quality clocks make time-based designs increasingly practical and safe, though some well-known downsides of coordination avoidance are fundamentally unrelated to clock quality.

Without Boats·

poll_next

AI 摘要The author argues that the Rust project should immediately stabilize AsyncIterator using the existing poll_next interface rather than continuing to pursue the alternative 'async next' design favored by some influential contributors. Responding to Yosh Wuyts' post defending the async next approach, the author finds its arguments uncompelling and reiterates that adopting poll_next now is the right course for the project.

Sean Carroll··Sean Carroll

Thanksgiving

AI 摘要In this annual Thanksgiving post, the author explains that quanta—such as discrete atomic energy levels and particle-like field excitations—are commonly misunderstood as evidence that reality is fundamentally pixelized. Using the simple harmonic oscillator as an example, he shows that quantum discreteness actually emerges from fundamentally smooth wave functions obeying differential equations with boundary conditions, combined with our practical focus on low-energy states. He concludes that quantum theory, as currently understood, is entirely smooth and continuous, and that genuinely discrete reality would require replacing standard quantum mechanics altogether.

Josh W. Comeau··Josh W. Comeau

An Interactive Guide to CSS Grid

AI 摘要This article is an interactive tutorial on CSS Grid, a powerful tool for building web layouts that comes with a significant learning curve. The author aims to help readers build a mental model of how CSS Grid works and how to use it effectively, sharing the biggest insights and 'lightbulb moments' from their own learning journey.

brandur.org··Brandur Leach

River: a Fast, Robust Job Queue for Go + Postgres

AI 摘要The author introduces River, a new open-source job queue for Go built on Postgres and the pgx driver, now available in beta. He explains why transactional, database-backed job queues avoid a host of distributed systems problems, and argues that past troubles with Postgres queues (like those at Heroku) are now mitigated by modern advances such as Go generics and goroutine concurrency, Postgres features like SKIP LOCKED and index optimizations, and a minimized single-dependency stack. River offers strongly-typed jobs, batch insertion, unique and periodic jobs, and solid performance, processing around 10,000 trivial jobs per second on a laptop.

Ethan Marcotte··Ethan Marcotte

Boston meetup: “Why do tech workers deserve a union?”

AI 摘要The author is hosting a Boston-area meetup on Tuesday, November 28 at 7pm at Remnant Brewing in Somerville for tech workers curious about unions. The evening will feature brief remarks about the book 'You Deserve a Tech Union' followed by group discussion on forming unions and organizing in tech, co-hosted by veteran labor organizer Rand Wilson. Space is limited, so attendees are asked to RSVP via Eventbrite and share the event with others.

Elad Gil··Elad Gil

Fireside chat with Satya Nadella, CEO of Microsoft

AI 摘要This article presents a fireside chat hosted by Stripe between Elad Gil and Microsoft CEO Satya Nadella, covering Microsoft's transformation from the 1990s to a $2.5 trillion company under Nadella's leadership since 2014. Nadella discusses the importance of 'refounding' the company around its core mission as a tools and platforms maker, adopting a growth mindset culture, and prioritizing organic growth and win-win partnerships like the one with OpenAI. He also argues that AI is as significant as past technology waves, reshaping user interfaces and data reasoning, and expresses strong belief in a future of copilots and agent-driven applications.

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.