Andy Simpson

6 Followers
57 Following
58 Posts

@samir Looks like GCC diagnoses unannotated fallthrough with -Wextra, and Clang does with -Weverything. Could add -Wimplicit-fallthrough to either, I suppose. https://godbolt.org/z/3Tco91845

What I do at work is turn on every warning I can get my hands on, and then selectively disable anything which is too annoying.

Compiler Explorer - C

int test(int num); int test2(int num); int test(int num) { int i = -1; switch(num) { case 0: i = 0; case 1: i = 1; break; default: i = num; break; } return i; } int test2(int num) { int i = -1; switch(num) { case 0: i = 0; [[fallthrough]]; case 1: i = 1; break; default: i = num; break; } return i; }

@samir Oof. C23 and C++17 have a [[fallthrough]] attribute, so compilers really ought to just default to unannotated fallthrough being an error.
@samir I installed Bazzite on my gaming PC a few months ago, and it’s working great. I hear that competitive multiplayer games with anticheat don’t really work, and Nvidia drivers could be better, but otherwise… Linux desktop gaming is here.
@graydon @ysbreker @cstross Trying to add a (computational) cost to sending email lead to the invention of proof-of-work, which lead to Bitcoin. It’s unintended consequences all the way down.
@samir With the person responsible for the iOS 26 UI (Alan Dye) quitting, I’m really hoping that Apple will course-correct. But the fact he wasn’t fired makes me worry that the rot is too deep.
@paul Reminds me of when I put a bet on “Leave” winning the Brexit referendum. Didn’t help me not feel like shit the next day.
@ScottStarkey @kaiarzheimer This is real. It’s the former site of the Birmingham Children’s Hospital, the hospital itself moved to another site in 1998.
@samir I am “sold my Apple shares” levels of worried about the rot at Apple demonstrated by this UI design.
@samir Yeah, all the icons in iOS 26 are kinda like that.
@samir That’s what XSLT does, a stylesheet for transforming an XML doc (like RSS) into viewable HTML. Apparently there’s even a standard way to declare that you want to use a particular XSLT: https://www.bennadel.com/blog/3770-using-xslt-and-xml-transformations-to-style-my-blogs-rss-feed-as-an-html-page.htm
Using XSLT And XML Transformations To Style My Blog's RSS Feed As An HTML Page

Ben Nadel demonstrates how to use XSLT (Extensible Stylesheet Language Transformation) to transform his RSS feed into an HTML page, taking what is normally a machine-readable XML document and outputti