Bob Nystrom's Avatar

Bob Nystrom

@stuffwithstuff.com

Dad, husband, brother, son. Working on Dart at Google, ex-game dev at EA, wrote "Game Programming Patterns" and "Crafting Interpreters". http://stuffwithstuff.com/

2,863
Followers
139
Following
46
Posts
08.06.2023
Joined
Posts Following

Latest posts by Bob Nystrom @stuffwithstuff.com

Preview
a close up of a cat with a caption that says heavy breathing ALT: a close up of a cat with a caption that says heavy breathing
05.02.2026 00:48 ๐Ÿ‘ 6 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

It could also be my honest opinion.

29.01.2026 20:40 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Both at the same time!

29.01.2026 20:38 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Typo in the headline, pretty sure they got "Bots" and "Humans" flipped.

29.01.2026 01:52 ๐Ÿ‘ 7 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
The Value of Things โ€“ journal.stuffwithstuff.com

Forgive me, I wrote a thing about AI: journal.stuffwithstuff.com/2026/01/24/t...

29.01.2026 00:37 ๐Ÿ‘ 77 ๐Ÿ” 10 ๐Ÿ’ฌ 7 ๐Ÿ“Œ 3

OH SHIT.

23.10.2025 13:58 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

For anyone in the market for some nerd knuckle tats:

P E E K โ€” P O K E
E X P R โ€” S T M T
P R E D โ€” S U C C
T H E N โ€” E L S E

22.10.2025 22:52 ๐Ÿ‘ 39 ๐Ÿ” 4 ๐Ÿ’ฌ 8 ๐Ÿ“Œ 2

I Reject The Timeline Where It Is Not Butter.

22.10.2025 22:49 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Ah, you're right. I assumed that the JSON spec went down to the encoding level, but it doesn't. (Though it does do a funny little dance to acknowledge that JSON string literals may contain UTF-16 surrogate pairs but then punts on whether an implementation treats them as a single code point or not.)

22.10.2025 22:36 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

The unicorn emoji ๐Ÿฆ„ is 1 code point (0x0001f984), 2 code units in UTF-16 (0xd83e, 0xdd84), and 4 bytes in UTF-16 (0xd8, 0x3e, 0xdd, 0x84). The answer is different for encodings like UTF-8 or UTF-32 (JSON is UTF-16). And there is a whole separate ball of complexity around grapheme clusters.

06.10.2025 17:40 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Is "length" here bytes, code points, or code units? :) I hate that I can't read anything about string length without that question immediately entering my mind.

22.09.2025 20:11 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0

Hashtag life goals.

18.09.2025 14:51 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Emoji Kitchen is the best thing Google has ever made.

05.09.2025 00:56 ๐Ÿ‘ 12 ๐Ÿ” 1 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 1

Have you considered using AI to detect AI posts? Then you could write a post about using AI to detect AI posts and post it.

18.07.2025 00:05 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Oh, yes! I just, uh, keep forgetting about it. :)

18.07.2025 00:05 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Really wish Hacker News would fork into "LLM news" and "all the other Hacker News". It's worse now than it was with crypto during the crypto bubble.

Yes, gen-AI is important and I want to learn about it, but there are diminishing returns in yet another dude's breathless vibe coding blog post.

17.07.2025 22:10 ๐Ÿ‘ 63 ๐Ÿ” 0 ๐Ÿ’ฌ 6 ๐Ÿ“Œ 0

Trivia: This use of the word "orthogonal" is older than us too. As far as I know, it's earliest use is in the ALGOL 68 report.

16.07.2025 21:12 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I must admit to being a political novice, but wasn't the RNC slightly more instrumental in Trump being elected?

16.07.2025 01:17 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

There are a bunch of reports in the issue trackers for both books already, but I'm trying to not touch them at all. (It's easy to fix the online versions, but then I worry about the online versions getting out of sync with the print versions and not realizing that if I update the print editions.)

16.07.2025 00:58 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Yeah, having written a parser for it... Markdown is just not a great language. CommonMark helps regularize it some, but in the early days, it was wild.

I don't have advice that would fit in a bsky post beyond the general "avoid inventing a language unless you have to (or want to)". :)

02.07.2025 00:55 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I need to know more about the Tears for Fears Trout sticker.

02.07.2025 00:53 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

The premise of LLMs leading to AGI is that if just you wordcel hard enough, a shape rotator magically pops out.

15.06.2025 00:39 ๐Ÿ‘ 51 ๐Ÿ” 4 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I still don't really understand this one. ๐Ÿ™ƒ

12.06.2025 01:59 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Introducing Dart 3.8! Here's everything you need to know โ†“

10.06.2025 22:55 ๐Ÿ‘ 41 ๐Ÿ” 6 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
Post image

yes

30.03.2025 01:24 ๐Ÿ‘ 33874 ๐Ÿ” 8879 ๐Ÿ’ฌ 162 ๐Ÿ“Œ 408

It's good to be writing again!

03.06.2025 17:09 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I use a stitch counter app on my phone, or a polyhedral die to keep track of counts.

31.05.2025 18:28 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Consider Knitting โ€“ journal.stuffwithstuff.com

I wrote a blog post about, of all things, knitting: journal.stuffwithstuff.com/2025/05/30/c...

31.05.2025 17:41 ๐Ÿ‘ 27 ๐Ÿ” 2 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 1

@mrale.ph would definitely know better than me. Compiler folks who work on optimizations are by nature cagey about definitive answers to questions like this because they want their future selves to have the freedom to change optimizations without breaking users who rely on them.

31.05.2025 01:23 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Access Control Syntax โ€“ journal.stuffwithstuff.com

Wrote a blog post on noodling around with syntax for access control modifiers in my hobby scripting language: journal.stuffwithstuff.com/2025/05/26/a...

26.05.2025 22:03 ๐Ÿ‘ 38 ๐Ÿ” 2 ๐Ÿ’ฌ 3 ๐Ÿ“Œ 0