Posts by dabeaz@mastodon.social
(DIR) Post #B1oM18NMlaoCv9EEz2 by dabeaz@mastodon.social
2025-12-29T15:39:32Z
0 likes, 0 repeats
Made it to the end of chapter 24. An initial benchmark has me running 75% slower than Python 3.13 on a fibonacci example. Honestly not bad consider the primary focus up to now has been on getting it work at all.
(DIR) Post #B1oM19HNPLbzirQyHo by dabeaz@mastodon.social
2025-12-29T18:09:57Z
0 likes, 0 repeats
The fact that I just put two lifetime specifiers on a single structure and managed to get everything to compile and run again is a sure sign it might be time to take another break. I feel this part might be ending badly in the not too distant future... (and I will be undoing aforementioned lifetimes).
(DIR) Post #B1oM1A0kgduLzafD0q by dabeaz@mastodon.social
2025-12-29T23:10:35Z
0 likes, 0 repeats
Yep, ended up undoing all of that. However, now really into some deep quicksand working on the implementation of closures (chapter 25). Pointers, linked lists, recursion, and mutability everywhere in all directions. This is some very happy Rust coding.
(DIR) Post #B1oM1AZ8cnPhiEkfbs by dabeaz@mastodon.social
2025-12-29T23:15:32Z
0 likes, 0 repeats
Is there a hidden level beyond unsafe?
(DIR) Post #B1oM1BC8HobbfAzoOG by dabeaz@mastodon.social
2025-12-30T10:23:52Z
0 likes, 0 repeats
As I get up for day 7....Crafting Interpreters: "Here's this pointer to this thing that points at this other thing. But it doesn't own that. But don't worry, we'll fix that dangling pointer later. Oh, and note that it's kind of wild how we're mutating the thing in the middle of these other things inside this linked thing. LOL!"Rust: <Icy Stare>Ed: "I'm just sitting here laughing while I watch you try to edit/debug the thing."Me: "Here, hold my beer."
(DIR) Post #B1oM1BmI7NWrTJugka by dabeaz@mastodon.social
2025-12-30T12:11:18Z
0 likes, 0 repeats
Did I mention that there's not even any syntax highlighting?
(DIR) Post #B1oM1CRldAhpXxJoOm by dabeaz@mastodon.social
2025-12-30T16:51:02Z
0 likes, 0 repeats
OKAY THEN. LET'S HAVE EVEN MORE MUTABLE LINKED LISTS!The fact that this chapter ends with a little part titled "Challenges" is not lost on me...
(DIR) Post #B1oM1DCYpC8Vt5DBKq by dabeaz@mastodon.social
2025-12-30T17:01:53Z
0 likes, 0 repeats
Oh, AND NULL POINTERS.Took a bit of a short break to rub Mabel's belly. She then whispered something that sounded sort of like "HashMap". So...
(DIR) Post #B1oM1DjWqcVXXKdViq by dabeaz@mastodon.social
2025-12-30T18:15:29Z
0 likes, 0 repeats
Well, Mabel's intuition on the HashMap proved insightful. I now seems to have closures working and Chapter 25 complete.Oh, chapter 26 coming up. Garbage collection. How hard could that be?(In theory, if I've been working my abstractions correctly, this will not be THAT hard. Famous last words).
(DIR) Post #B1oM1EJKhV9DKNO6Wu by dabeaz@mastodon.social
2025-12-30T20:03:28Z
0 likes, 0 repeats
Garbage collection is always better after a nap.
(DIR) Post #B1oM1EsQb1Dj5Do8ES by dabeaz@mastodon.social
2025-12-30T23:59:57Z
0 likes, 0 repeats
Well, I definitely coded up some garbage after that. Think that ends the day for now. Good progress overall.
(DIR) Post #B1oM1FXu6oOh9rDFse by dabeaz@mastodon.social
2025-12-31T10:34:19Z
0 likes, 0 repeats
Too wired to sleep, but now a dilemma. Do I code more on the garbage collector or do I go out biking in the snow? Hmmm. Maybe both!
(DIR) Post #B1oM1G7Lz0kmvnnZ8S by dabeaz@mastodon.social
2025-12-31T12:21:14Z
1 likes, 0 repeats
Like biking in the snow at 4:30am, when you code with ed, you know you'll code alone in a blissful state of flow.
(DIR) Post #B1oM1Gsr8OkdJ81VB2 by dabeaz@mastodon.social
2025-12-31T13:48:58Z
0 likes, 0 repeats
With the bike ride done, it's now time to venture out for a much needed coffee and to discuss the status of my ed adventure...
(DIR) Post #B1oM1HMzKMr0oa7Z8y by dabeaz@mastodon.social
2025-12-31T15:04:24Z
1 likes, 0 repeats
So, I think I successfully convinced Matt Godbolt that coding Rust with ed is the future of coding. cc/ @mattgodbolt
(DIR) Post #B1zkFUD4v5tsKZLuGu by dabeaz@mastodon.social
2026-01-05T23:36:56Z
0 likes, 0 repeats
@fabio It's not just StackOverflow, but book authors as well. I spent considerable effort working on books such as the Python Cookbook. Never again will I be doing that. Why would I do that just to have it sucked into an LLM?
(DIR) Post #B22tFpPCHAxqBLSETo by dabeaz@mastodon.social
2026-01-07T14:43:28Z
1 likes, 0 repeats
@slott56 If someone is using an LLM to generate a conference proposal, why would anyone have confidence in the actual talk being any good? I mean, if you can't even put any effort into the proposal, why would expectations for the talk be any different? What's the endgame here?
(DIR) Post #B2IdHkHbnnEa8Y9kIK by dabeaz@mastodon.social
2026-01-15T00:03:23Z
1 likes, 0 repeats
@MartinEscardo @lindsey @alexr I once had a dream where I vividly understood monads. Woke and realized I knew nothing. Then I saw the Nyquil bottle.
(DIR) Post #B2X3BfUhjYsEIx29Ka by dabeaz@mastodon.social
2026-01-22T02:30:27Z
1 likes, 0 repeats
TIL that the owner of the "DJANGO" license plate that I've occasionally seen driving around north Chicago for at least the last TEN years is actually owned by the guitar player in the big band that I joined this fall. He does not do anything with software. I just figured this out as we were leaving a gig and he was parked next to me. "Wait, you're the DJANGO guy!?!"
(DIR) Post #B2mSlDyMfH9eunu2k4 by dabeaz@mastodon.social
2026-01-29T14:47:26Z
1 likes, 0 repeats
@shriramk Looks bikeable.