Experimental browser for the Atmosphere
One option that may be cleaner is to have ys be Vec<usize> where each element is a pointer into the xs. That avoids all of the lifetime and self-referential shenanigans
May 1, 2025, 6:24 PM
{ "uri": "at://did:plc:7xtto5bhz4fvlo2vmhhgwmrr/app.bsky.feed.post/3lo4wm5mn5s2u", "cid": "bafyreigvfhxx2o2d2kijbxtnwp2uai7tcgcw5nkhje3mlbjxy6cnryij24", "value": { "text": "One option that may be cleaner is to have ys be Vec<usize> where each element is a pointer into the xs. That avoids all of the lifetime and self-referential shenanigans", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreig2o2vgo4oftjrmd7wdl7jopjkylkzrzcrad6d36xp2l3df6htl4a", "uri": "at://did:plc:l3wamy3mh5dopzi2jcnsry3h/app.bsky.feed.post/3lo4tspom5s2d" }, "parent": { "cid": "bafyreig2o2vgo4oftjrmd7wdl7jopjkylkzrzcrad6d36xp2l3df6htl4a", "uri": "at://did:plc:l3wamy3mh5dopzi2jcnsry3h/app.bsky.feed.post/3lo4tspom5s2d" } }, "createdAt": "2025-05-01T18:24:16.892Z" } }