Dan Lyke on Nostr: SUPERMAX I'm fumbling around a lot with lifetime specifications, and for how often ...
SUPERMAX (nprofile…33ng) I'm fumbling around a lot with lifetime specifications, and for how often they're needed, the syntax for them seems pretty danged clunky.
I think I want a way to guarantee that this "Chars" points to the same buffer as another "Chars", and I'm doing that by giving them the same lifetime as the object which is processing them, which lets me compile, but feels like I'm not getting this right.
Published at
2024-12-27 01:36:59Event JSON
{
"id": "2935a05c436f903d33dd9049e924327f5c38c4d11a08ab6c56f6b03e7ab467ce",
"pubkey": "3ad806433f1d09d2643dd8bf4162890270449539839aab7b9da215e1d5681bac",
"created_at": 1735263419,
"kind": 1,
"tags": [
[
"p",
"ae1008d23930b776c18092f6eab41e4b09fcf3f03f3641b1b4e6ee3aa166d760",
"wss://relay.mostr.pub"
],
[
"e",
"ef043405a80f1be80e0c27707b8d3d356312b61b831ec689207a0cdd78b0f2da",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://researchbuzz.masto.host/users/danlyke/statuses/113722223437186367",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq4cgq353exzmhdsvqjtmw4dq7fvyleuls8umyrvd5umhr4gtx6asqzk33ng I'm fumbling around a lot with lifetime specifications, and for how often they're needed, the syntax for them seems pretty danged clunky.\n\nI think I want a way to guarantee that this \"Chars\" points to the same buffer as another \"Chars\", and I'm doing that by giving them the same lifetime as the object which is processing them, which lets me compile, but feels like I'm not getting this right.",
"sig": "0d2e9928a14d1368f548b0b9bdd78cfb639ebc5d65e9869763d8dde0784f0a5f86b2ae96d97251a2f89a5671b7bb423bd5e18b3d33dbce0c32bf9a3aa07e914b"
}