最新文章

今日新增 411 篇 · 共 7,369 篇 · 来自 241 个博客

Ethan Marcotte··Ethan Marcotte

An interview for the Responsive Web Design newsletter.

AI 摘要This article is an interview with web designer Ethan Marcotte conducted for Justin Avery's Responsive Web Design newsletter. Marcotte discusses his work helping clients implement responsive design and refine their design systems, criticizes limiting device shorthand like 'mobile' and 'desktop' for concealing assumptions, and names web accessibility and the lack of container queries as top ongoing challenges. He also argues that Google AMP constitutes an abuse of Google's dominant market position and expresses hope for growing tech worker organization and unionization.

Travis Downs··Travis Downs

Hardware Store Elimination

AI 摘要The author discovered a surprising data-dependent performance effect in memory benchmarks: filling a buffer with zeros is consistently 17-18% faster than filling it with ones when the region exceeds L2 cache, despite identical machine code. Using Intel performance counters like l2_lines_out.silent, they show the hardware detects redundant zero writes, silently evicting unmodified lines from L2 without writing them back to L3, thereby reducing cache pressure. The article walks through benchmark results across L1, L2, L3, and RAM regions to explain this 'store elimination' optimization for zero values.

Mara Bos·

Writing Python inside your Rust code — Part 3

Have you ever seen the Rust compiler give a Python error? Or better, have you ever seen rust-analyzer complain about Python syntax? In this post, we’ll extend our python!{} macro to make that happen.

Josh W. Comeau··Josh W. Comeau

Lessons Learned Speaking at Conferences

Speaking at conferences is equal parts exciting and terrifying. This article is a behind-the-scenes look at what the experience is like, and shares tips for getting started as a conference speaker. Keep reading.

Without Boats·

Notes on io-uring

AI 摘要The author spent last fall building a library for safely driving futures on top of io-uring, releasing bindings to liburing called iou, though the futures integration, ostkreuz, was never released. Since several people have since started writing libraries with similar goals, the author shares notes on what they learned about working with io-uring and Rust's futures model. The post assumes some familiarity with the io-uring API.

Josh W. Comeau··Josh W. Comeau

Accessible Animations in React

I really love animation, but not everybody does. In fact, it can make some people literally sick! In this tutorial, we'll see how to ensure that we respect user preferences, and create animations that can be disabled. Keep reading.

Josh W. Comeau··Josh W. Comeau

Why My Blog is Closed-Source

AI 摘要The author explains their decision to keep their blog closed-source, breaking from the common trend of open-sourcing developer projects. They share their reasoning behind this choice and offer a workaround for those who really want to see the source code. The article is intended to help others who are deciding whether a project should be open-source.

Ethan Marcotte··Ethan Marcotte

Gardened.

AI 摘要The author discusses two recent pieces: Steve Workman's account of optimizing excessively bloated code from a software library, and Tim Kadlec's research showing that websites built with Angular, React, and Vue deliver far more JavaScript than ideal, costing users significant time and money. He argues these stories reveal the same systemic problem: popular frameworks ship with bad defaults, and producing quality work depends on teams voluntarily adopting best practices, which doesn't scale. He concludes that the tech industry's self-regulation amounts to a failure of governance and calls for formal standards, akin to building codes in other industries, particularly since the web provides life-saving information and services during a global health crisis.

Josh W. Comeau··Josh W. Comeau

The Quest for the Perfect Dark Mode

AI 摘要Dark mode has become a standard user expectation, but implementing it well in statically-built sites and apps is deceptively tricky. This in-depth tutorial explains how to build a perfect, flicker-free, and customizable theming solution for React/Next.js applications.