Don't call a React function component
The difference between React.createElement and calling a function component directly
32 new today · 2,698 articles · from 79 blogs
The difference between React.createElement and calling a function component directly
AI summaryThe author, the former CEO of Stack Overflow, explains that he has handed day-to-day leadership to new CEO Prashanth Chandrasekar and views this period as a busy sabbatical rather than retirement. He remains chairman of three companies—Stack Overflow, Glitch (formerly Fog Creek), and HASH, which is building an open-source agent-based simulation platform—and spends his remaining free time on electronics projects involving pixel-addressable RGB LEDs.
AI summaryThis article measures the previously unreported size of the AVX-512 mask register physical register file (PRF) on Skylake-X using a cache-miss probing technique, finding roughly 142 physical mask registers (134 usable for speculative state plus 8 for architectural state). Tests mixing mask register writes with general purpose or SIMD instructions show the mask PRF is not shared with those register files, though an unexplained limit around 212 in-flight instructions appears when they are mixed. The article also notes that, unlike GP and SIMD registers, mask registers do not benefit from move elimination, and discusses dependency-breaking zeroing idioms.
There is a playful way to study the architecture of computers of the past. Find a piece of software you know well and try to find out how it was ported to these machine you don't...
A letter you can copy/paste and send to your boss.
I've spent half of my career working remotely. This post chronicles those experiences, giving a real-world window into what it's like to work fully-remote as a software engineer. Keep reading.
A simple principle that can drastically improve your reusable code
AI summarySpawning tasks is a major pain point in the async ecosystem because Rust's standard library provides no API for it. As a result, library authors who need to spawn tasks must depend on one of several ecosystem executors, creating unwanted coupling to that executor. Ideally, many of these authors wouldn't need to spawn tasks at all.
AI summaryThe article argues that while engineers find it satisfying to implement clever, terse solutions using advanced tricks, such code is often hostile and inaccessible to junior team members. It advocates for writing simple, accessible code using familiar primitives that everyone understands.
The key prop is a mechanism for controlling component instances.
AI summaryThe author announces the release of iou, a library providing idiomatic Rust bindings to the C library liburing. Liburing is a higher-level interface for io_uring, a Linux kernel interface introduced in kernel version 5.1.
I took some time to study how NBA Jam arcade cabinet worked. Here is what I learned.
AI summaryThe first version of async/await syntax for Rust is in beta and is scheduled to ship to stable in Rust 1.39 on November 7. Although many additional async/await features could be added, the author prefers to hold off on further major changes. The goal is to let the ecosystem develop around the current feature set before sprinting toward more big language additions.
AI summaryStack Overflow has named Prashanth Chandrasekar as its next CEO, effective October 1st, after a search process that considered nearly 200 candidates. Prashanth, who began his career as a software engineer and later led the creation of Rackspace's Global Managed Public Clouds Business, was chosen for his rare combination of technical understanding and enterprise business leadership. Outgoing CEO Joel Spolsky, who remains Chairman of the Board, expressed confidence that Prashanth will help advance goals around fostering an inclusive community and growing the Teams enterprise business.
AI summaryThe article argues that the dramatic drop in lithium-ion battery prices has made electric scooters viable and affordable, citing the Xiaomi Mi M365 whose price halved from about $800 in 2017 to roughly $300 by 2019. The author reviews the M365 favorably as fun and an excellent value, while noting challenges such as inconsistent government regulation, pedestrian etiquette, and awkward portability and locking. He concludes that cheap electric scooters may finally deliver the transportation transformation the overhyped $5,000 Segway promised two decades earlier.
AI summaryThe article describes a recently committed Postgres patch that adds SortSupport to the inet and cidr network address types, roughly doubling their sorting speed by generating abbreviated keys that fit into a pointer-sized datum. It explains the structure and sorting rules of network types—including IP family, network bits, netmask size, and subnet—and how the abbreviated key design packs these components into the available bits while preserving correct comparison semantics. Finally, it walks through the C implementation, using bitwise operations such as bitmasking to efficiently encode each part of the key.
Dead code elimination by convention.
They’re not burritos.
AI summaryThe author observes that many Rust users who like but don't love the language believe there should be a smaller, simpler variant of Rust that sacrifices some power for ease of use. While the author agrees such a smaller Rust is possible, they argue that people are almost always wrong about what would actually need to change. The article therefore offers notes on where to begin creating that smaller Rust.