AI 资讯
Undefined CSS variables fail silently: two failures in one evening, and the guard that checks reality
The agent harness I work on has an Electron GUI that shares a renderer with a web shell. Last night it broke twice in one evening. The second break was caused by the first fix. Both were silent. The first one I could explain. The second one was the interesting one, because it exposed something the first fix's test suite could not see — and the fix was a guard that checks reality instead of checking the guard's own arithmetic. Failure one: the light-theme regression. The React shell used CSS custom properties for theming, but a chunk of the migration hardcoded dark-palette hexes directly in component CSS. In light mode the UI looked wrong: dark text on light cards, bad contrast, the exact shape of a half-finished theme refactor. The fix was to route everything through theme variables (the release shipped that as v0.2.84). Straightforward. Failure two: the fix had a hole, and the hole was invisible. After the theme-variable fix landed, a second round of breakage showed up: the task-form background rendered transparent, file-tab hover was dead, badge font sizes and radii were wrong. Nothing threw. No console error, no crash, no failing test. The cause: the fix consumed four variables — --fs-small , --radius-sm , --bg-1 , --bg-hover — that did not exist in tokens.css . A bare var(--x) with no fallback is not an error. At computed-value time the declaration becomes invalid at computed-value time , and the property is treated as if it were never specified. The element just falls back to the default — transparent background, no hover style, default font metrics. The failure mode of an undefined CSS variable is silence. This is the part I want to keep: the bug was not a wrong value. It was a value that was never there, consumed as if it were. The tests passed because the tests asserted behavior, and the behavior was "whatever the browser does with an invalid declaration". The guard that checks definedness. The fix was a guard, not just a value: a static test that walks ever
AI 资讯
Best Posture Correctors for Better Body Alignment (2026)
You’re hunched over your desk and phone for hours. I rounded up gadgets, a DIY trick, and even some yoga advice to help you straighten up.
开发者
The Best Google Pixel Phones of 2026: Comparison, Features, and Accessories
Let us help you choose the right Pixel phone. Plus, check out our Pixel accessory recommendations and smart software tricks to try.
产品设计
The Kindle Accessories I Never Want to Read Without (2026)
Looking to better protect your Kindle or add a little personality to your favorite e-reader? From cases and covers to page turners and even charms, this is the guide for you.
开源项目
The Best Home Theater Projectors in 2026: XGIMI, Hisense, Leica, and More
Home theater projectors are getting better and better, and have quickly become my favorite way to enjoy movies.
AI 资讯
The Best Multiuse Air Purifier for Home in 2026: BlueAir, Rabbit Air, Dreame
These WIRED-tested dual-purpose air purifiers also function as heaters, fans, art pieces, and more, offering the best of both worlds.
科技前沿
The 6 Best Laptop Docking Stations to Unlock the Full Desktop Experience (2026)
Docking stations expand what your laptop can do, and I’ve been testing the best of the best to see which you should buy.
科技前沿
The 4 Best Monitor Arms to Clear Up Your Desk Space (2026)
Your desk setup needs a monitor arm, and I’ve been testing every one I can get my hands on to find the best.
科技前沿
The Best Mattress Toppers I've Tried (2026): Supportive, Plush, Memory Foam
These toppers will transform your mattress into exactly what you need, whether that’s a super-plush pillow top, memory foam, or targeted back support.
产品设计
5 Best Electric Toothbrushes (2026): Philips, Oral-B, Quip, More
After two years of testing, these are the electric toothbrushes that impressed WIRED staffers the most.
科技前沿
The 3 Best USB Phone Chargers (2026): Anker, DeWalt
I put top-rated USB car chargers to the test for fast charging, value, heat, and safety. These are the best I found.
AI 资讯
Tokens per Second Benchmarks Explained: What You're Actually Measuring
What tok/s really measures, how concurrency changes it, and why a single-user benchmark is not the whole story for local LLM performance. A Few Moments Later… How Fast Is "Fast"? Every interface in the world of local AI eventually shows you that dreaded spinner, and on the wrong setup it sits there long enough that your brain supplies the meme: "A few moments later…" That pause is a number wearing a disguise. Somewhere inside your machine, the model is grinding out tokens — fragments of words — and the only question that matters is how many of them it produces per second. Tokens per second (tok/s) is the universal speedometer of local LLMs, quoted in every benchmark and every GPU review. But it is also one of the most misleading numbers in the field, because the same model can measure 45 tok/s or 793 tok/s depending on how you test it. This guide explains what the number actually means, why it moves so dramatically, and how to read a benchmark without fooling yourself. What a Token Actually Is Before speed makes sense, the unit has to. Models do not read words; they read tokens, which are chunks of text roughly three-quarters of a character on average in English. The word "calculator" might be one token or three, depending on the tokenizer, and this is not idle trivia — it is the reason the same prompt can cost a different amount across providers, as the Token Counter Calculator shows in practice. Because tokens are the unit of both billing and speed, "tokens per second" is the single number that connects all three corners of the local AI decision: how fast the model answers (tok/s), how big the model is (parameters), and what it costs to run (hardware amortized over time). A model doing 50 tok/s reads roughly 100-150 words per second — comfortably faster than you can read. A model stuck at 5 tok/s feels like a slow internet connection in 1998. The Single-User Number Is Not the Whole Story Here is the trap: most consumer benchmarks report tok/s at one user, one requ
AI 资讯
Best Merino Wool Clothing (2026): Base Layers, Hoodies, Jackets
Merino is one of the best fabrics you can wear. We explain the different blends, what “GSM” means, and how to care for your clothes.
AI 资讯
Sound-powered fire protection startup gets $15M to snuff out fires before they turn catastrophic
Sonic Fire Protection raised its new funding to help get its sound-powered fire protection system into everything from commercial kitchens to apartment buildings.
开发者
7 Best Cheap Laptops to Buy in 2026 (and Some to Avoid)
From surprisingly good $300 Chromebooks to excellent $650 Windows notebooks and more, these are the best budget laptops I’ve tested.
AI 资讯
The Best Cat Water Fountains of 2026: Petlibro, Petkit, Oneisall
Ensuring your cat stays hydrated is one of the best ways to keep your pet healthy. The right pet water fountain can help.
科技前沿
6 Best Apple Watch Accessories to Upgrade Your Watch (2026)
These are the Apple Watch accessories I recommend adding to your setup.
科技前沿
5 Best Apple Watch Bands: Nike, Nomad, and Hermés (2026)
We’ve been testing bands since the first Apple Watch launched in 2015. From silicone sports straps to leather bands, I’ve rounded up the best for every occasion.
开发者
A RAMageddon guide to back-to-school laptop shopping
If you’re a student looking for an affordable laptop, I have bad news and I have good news. The bad news is that computer prices are out of whack due to the ongoing RAM and storage crunch, making some a little pricier than they used to be and others wildly more expensive. The good news? […]
科技前沿
The 4 Best Planners of 2026: Roterunner, Hobonichi, Cloth & Paper
If digital calendars are leaving you lacking, these WIRED-tested paper agendas and notebooks could change your life.