Bob Nystrom
@stuffwithstuff.com
2.6K followers 130 following 37 posts
Dad, husband, brother, son. Working on Dart at Google, ex-game dev at EA, wrote "Game Programming Patterns" and "Crafting Interpreters". http://stuffwithstuff.com/
Posts Media Videos Starter Packs
stuffwithstuff.com
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.
stuffwithstuff.com
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.
stuffwithstuff.com
Hashtag life goals.
stuffwithstuff.com
Emoji Kitchen is the best thing Google has ever made.
stuffwithstuff.com
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.
stuffwithstuff.com
Oh, yes! I just, uh, keep forgetting about it. :)
stuffwithstuff.com
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.
stuffwithstuff.com
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.
stuffwithstuff.com
I must admit to being a political novice, but wasn't the RNC slightly more instrumental in Trump being elected?
stuffwithstuff.com
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.)
stuffwithstuff.com
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)". :)
stuffwithstuff.com
I need to know more about the Tears for Fears Trout sticker.
stuffwithstuff.com
The premise of LLMs leading to AGI is that if just you wordcel hard enough, a shape rotator magically pops out.
stuffwithstuff.com
I still don't really understand this one. 🙃
Reposted by Bob Nystrom
dart.dev
Dart @dart.dev · Jun 10
Introducing Dart 3.8! Here's everything you need to know ↓
Reposted by Bob Nystrom
stuffwithstuff.com
It's good to be writing again!
stuffwithstuff.com
I use a stitch counter app on my phone, or a polyhedral die to keep track of counts.
stuffwithstuff.com
@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.
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...
Access Control Syntax – journal.stuffwithstuff.com
journal.stuffwithstuff.com
stuffwithstuff.com
Sure! Thank you for asking. :)
stuffwithstuff.com
"It is a rare privilege to be able to spend ten years building a tool you want to use, and then be able to spend your time at work using it."

So true. One of the things that makes me excited to work every day and grateful that my career led where it did.
stuffwithstuff.com
Yeah, it was a deliberate choice to not use those (even though I personally love those features). The goal is to make the code as readable to as many people as possible, so I tried to stick within a fairly small subset of imperative/OOP code.
stuffwithstuff.com
I write how I talk. :)