yosh on Nostr: I’ve been reading more about control systems, and I’m now thinking: cancellation ...
I’ve been reading more about control systems, and I’m now thinking: cancellation in async programming is a form of feedback control!
Structured concurrency is an attempt to create closed feedback loops where we can apply feedback control (add more work, cancel work) and always observe the output signal (return values, errors).
Unstructured concurrency (e.g. task::spawn) creates open-loop systems that can lose signal and cant always receive feedback. Which is inherently brittle and unstable.
Published at
2025-03-25 01:49:59 UTCEvent JSON
{
"id": "f73d7b548c73e2fdace0bd006be21a3e5b1383ccabd47807e14833c7f8d6f5d7",
"pubkey": "e1f48d2f077b0d512e8666bf7a0dddded2e443d99b0c92cecf577b4e50b86563",
"created_at": 1742867399,
"kind": 1,
"tags": [
[
"proxy",
"https://toot.yosh.is/users/yosh/statuses/114220557900029182",
"activitypub"
]
],
"content": "I’ve been reading more about control systems, and I’m now thinking: cancellation in async programming is a form of feedback control!\n\nStructured concurrency is an attempt to create closed feedback loops where we can apply feedback control (add more work, cancel work) and always observe the output signal (return values, errors).\n\nUnstructured concurrency (e.g. task::spawn) creates open-loop systems that can lose signal and cant always receive feedback. Which is inherently brittle and unstable.",
"sig": "9b330e659a9f98185fcb214233987e047db0d5b1e1b24a048f2220e6d5bfe4bc0c09b065ab011142760d8e29e46b97610ce063a38f6d9248537f473df0639270"
}