News for hackers. Stuff that matters.
Re:Advice for the next 100 Rust GUIs by tauchunfall on Sunday November 22, 2026 @05:09AM (#50598068)
The commit messages (i.e. the pull request descriptions) are written in a similar fashion.

For example [1]: "core: Keep a device pixel for boxes under a pixel thick (#2841) [...] Frames are rounded to device pixels edge by edge (`rounded` in `core/mod.rs`), so neighbouring views meet. A box thinner than a pixel whose two edges round to the same pixel got no size at all and vanished.".

I wonder if humans need special abilities to read and understand this. And if these kind of bugs this commit attempts to fix could have been prevented in the first place.

> An app written in Rust is native code compiled into the app that ships it, as the rest of that app is, and runs with its trust

This also makes no sense if you use the Chinese version of the text and machine translate it to English.

[1] https://github.com/longbridge/nsh/commit/70a45b59ea5813bbc5f...

Re:Advice for the next 100 Rust GUIs by foldr on Sunday November 22, 2026 @05:41AM (#50598308)
The commit message seems fine. The bug is the following. Because boxes are rounded edge-by-edge, a box can end up with a zero size (and hence be invisible) if its dimensions are smaller than a pixel. If the box is solid, then it should display as a single device pixel in this case. That's what the bug fix accomplishes.

As for whether bugs like this could have been prevented in the first place, this seems squarely in the category of the kind of bug that humans are capable of introducing.