yosh on Nostr: npub1t8rvt…wrvnw I feel like something in your explainer doesn’t quite sound ...
npub1t8rvt8pwj4el0p7zav09f5fzmg07837z486qr8vpgc5h4608dd6q2wrvnw (npub1t8r…rvnw) I feel like something in your explainer doesn’t quite sound right?
I don't know what you’re doing exactly, but the way I'd phrase it is: Rust’s borrowing rules require that each reference must be either mutable XOR shared. `Arc<Mutex<T>>` allows you to break that limitation and have a reference which is mutable AND shared.
idk, does that match the way you were thinking about it?
Published at
2024-10-16 22:33:42Event JSON
{
"id": "8b5112a9483e81a833ec185bfb04a4a62e61f53c051cc4ac29d74ad82420e6fe",
"pubkey": "e1f48d2f077b0d512e8666bf7a0dddded2e443d99b0c92cecf577b4e50b86563",
"created_at": 1729118022,
"kind": 1,
"tags": [
[
"p",
"59c6c59c2e9573f787c2eb1e54d122da1fe3c7c2a9f4019d8146297ae9e76b74",
"wss://relay.mostr.pub"
],
[
"p",
"ca6770df24e21d6765c41a491f129fadc55ec34219c9ed90e5b18f7714bb0e70",
"wss://relay.mostr.pub"
],
[
"e",
"9f946156fc8f17b3ce8f10e17e07289c51db1243b1752fda02da70789ecf3ff6",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://toot.yosh.is/users/yosh/statuses/113319478695293414",
"activitypub"
]
],
"content": "nostr:npub1t8rvt8pwj4el0p7zav09f5fzmg07837z486qr8vpgc5h4608dd6q2wrvnw I feel like something in your explainer doesn’t quite sound right?\n\nI don't know what you’re doing exactly, but the way I'd phrase it is: Rust’s borrowing rules require that each reference must be either mutable XOR shared. `Arc\u003cMutex\u003cT\u003e\u003e` allows you to break that limitation and have a reference which is mutable AND shared.\n\nidk, does that match the way you were thinking about it?",
"sig": "9568e4184d6a13886d94abaeb76d7bbd39256cee975bb82b616d9187ba9413d85940b6fe177722c14e0d64004ffa008c046fb2d277ac37f2c20007b2a26c2bdb"
}