{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreie643utlfv5ghyyqpvg2xbemxpaokowj3wdt2ur4joryu2ykujmse",
"uri": "at://did:plc:uzai4vzxm37suvnjiwfzi63w/app.bsky.feed.post/3mazfol6q7d42"
},
"path": "/posts/decadv-horton-persist-debugging.html",
"publishedAt": "2026-05-18T04:52:44.654Z",
"site": "https://www.terracrypt.net",
"tags": [
"I think I should be able to use a parameter on define-actor for that",
"the self parameter gets set to #<unspecified> when I try that",
"this issue"
],
"textContent": "I've gotten some work done towards supporting persistence in guile-horton over the last week or so, but I've hit a bit of a roadblock. Writing this up in part to explain what I've been working on and in part to think through it some more.\n\nTo support persistence, I need to switch all the actors in the system over to use the `define-actor` macro. The `admin` actor was previously using `selfish-spawn`, but `define-actor` has a `#:self` parameter that should serve the same purpose. And the old code was using an internal cell for the mutable name functionality, which needs to be changed.\n\nHowever... running into one particular problem that I'm still having trouble figuring out. When I spawn an `admin`, that new object also spawns a `profile` with a reference to that `admin`. In order to support that, the `admin` needs to have a reference to itself; as mentioned above, I think I should be able to use a parameter on define-actor for that. But for some reason, the self parameter gets set to #<unspecified> when I try that. It's not clear to me why this might be happening from the docs, so I think I might need to do some source spelunking to figure it out.\n\nOnce I work that out, it looks like I'll run into this issue. It sounds like I should be able to work around that with a second object constructor, though it might be a bit messy.\n\nThis is part of my December Adventure 2025 series, which I haven't been as consistent with as I had hoped but has nudged me to work on this some at least! My adventure log for this year is here.",
"title": "Horton persistence progress",
"updatedAt": "2025-12-27T12:03:00.000Z"
}