karolherbst 🐧 🦀 on Nostr: Is there a good way in #rustlang to prevent stackoverflows with long dependency ...
Is there a good way in #rustlang to prevent stackoverflows with long dependency chains of Arced objects?
Basically I need to prevent something like this from happening:
https://godbolt.org/z/s9aTfeeaTAnd no, `Weak` can't be used here as in my case I need to access the dependency reliably.
Published at
2024-05-13 15:05:17Event JSON
{
"id": "be42a2cc4c8e8f5862c55a8db7700345161bcde2ff943a9a2c8b3ea312b266de",
"pubkey": "c05a23984a26550554ba6e5f5791143fb8fbb12dfe5bb3ae401274e00539f43d",
"created_at": 1715612717,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://chaos.social/users/karolherbst/statuses/112434395059747049",
"activitypub"
]
],
"content": "Is there a good way in #rustlang to prevent stackoverflows with long dependency chains of Arced objects?\n\nBasically I need to prevent something like this from happening: https://godbolt.org/z/s9aTfeeaT\n\nAnd no, `Weak` can't be used here as in my case I need to access the dependency reliably.",
"sig": "7e7f6eb55910b5caa28bb7f938b017ce63e68a9af3def1c580621005547d0a11f5e865c647d425644c52e42febfdcd6211bb90842074a516f09a08a8aec71a8c"
}