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.
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
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.
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.
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.
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.
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.
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.
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.
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.
In this part, we’ll extend our python!{}-macro to be able to seamlessly use Rust variables in the Python code within. We explore a few options, and implement two alternatives.