Programming · Latest articles

29 new today · 2,698 articles · from 79 blogs

Lea Verou··Lea Verou

Today's Javascript, from an outsider's perspective

AI summaryThe author, a usability researcher at MIT, recounts helping a computer scientist friend run a simple JavaScript algorithm from a GitHub package, documenting a frustrating sequence of cryptic errors involving npm, Node, ES modules, MIME types, and a TypeScript file disguised as JavaScript. Despite the friend's technical background, he gave up after about an hour, concluding never to touch Node, npm, or ES6 modules again. The author uses this experience to highlight how hostile the modern JavaScript ecosystem's onboarding experience is, questioning what hope actual novices could have.

Mara Bos·

Writing Python inside your Rust code — Part 4

In this final part of the series, we’ll explore a trick to make the behaviour of a macro depend on whether it’s used as a statement or as part of an expression. Using that, we’ll make the python!{} macro more flexible to allow saving, reusi

Josh W. Comeau··Josh W. Comeau

Animated Sparkles in React

In this dazzling tutorial, we'll see how to build an animated component. Wrap it around text or images and watch them twinkle! This neat trick is a perfect way to emphasize positive or exciting things. Keep reading.

Travis Downs··Travis Downs

Ice Lake Store Elimination

AI summaryThis article analyzes zero-store elimination on Intel's Ice Lake architecture, finding that 256-bit stores achieve roughly 96% elimination of redundant zero stores in L3 and memory writebacks—a large improvement over both 512-bit stores (~56%) and Skylake—yielding speedups of up to ~45% in the L3 region. The author also documents a bimodal performance artifact caused by AVX-512 voltage/frequency management, where switching voltage levels temporarily reduces dispatch throughput during benchmarks. Why 256-bit stores outperform 512-bit stores in the L2 and L3 regions remains an unexplained puzzle, though the author suspects the difference in elimination rates largely accounts for it.

Travis Downs··Travis Downs

Hardware Store Elimination

AI summaryThe 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 summaryThe 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 summaryThe 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.