@sayrer

398 Followers
303 Following
4.6K Posts
these are tweets from the dark web
GitHubhttps://github.com/sayrer
Websitehttps://sayrer.com/contact
I have angered my parents by saying, "Oh, this is the 'Warring States' period of China".

@mwichary oh, yeah, I was wondering why I felt this way. It's because I use a MacBook Air and a Magic Keyboard, and I value how close the layouts are.

But on the Magic Keyboard, where I do most of the serious stuff, my left pinky hangs off the edge while I am mousing around with my right hand.

I may also be a strange case, since I use different hands for different things (not quite ambidextrous: I throw left-handed but bat right-handed, etc)

@mwichary I see. I suspect you're more of a tippy tappy typer than I am, where your fingers hit the keys more vertically. I type with them kind of flat, and never look, so this keyboard might drive me insane. But I could see a mechanical keyboard like this.
@mwichary it has a fatal flaw! the tilde key is not on the edge, but the edge location is what makes it easy to switch windows in a single app.

A form of golf I play is that you cannot use a computer without running code I have written.

These are always productive patches (I hope!). Today I got one in Unicode: https://github.com/unicode-org/icu4x/pull/7779

It's philosophical, too, though. My code is always MIT/Apache, or you can just have it in your CLA.

Fix UB: use || instead of && by sayrer · Pull Request #7779 · unicode-org/icu4x

in cast_bytes_to_slice alignment/length check The condition guarding from_raw_parts joined the alignment check and length check with &&, meaning the error was only returned when both were w...

GitHub
@glyph @slightlyoff you know, I don’t know if they will publish it, but that’s a good review

@slightlyoff @glyph since line 202 is right there, I am obligated to send you this link.

https://gist.github.com/sayrer/7e331ef093ff2ee9c0b9e4ba1def5b1e

gist:7e331ef093ff2ee9c0b9e4ba1def5b1e

GitHub Gist: instantly share code, notes, and snippets.

Gist
@slightlyoff @glyph it's kind of weird. You can always have the LLMs follow instructions like "roast my code". I do this constantly, but I will send them to other people if I think they won't get mad.
@hsivonen I sent https://github.com/unicode-org/icu4x/pull/7779, because that actually does look like a bug. That is from 10 minutes of Claude, but I do know my Rust and Unicode, so not in novice hands.
Fix UB: use || instead of && by sayrer · Pull Request #7779 · unicode-org/icu4x

in cast_bytes_to_slice alignment/length check The condition guarding from_raw_parts joined the alignment check and length check with &&, meaning the error was only returned when both were w...

GitHub