Notes on structured concurrency, or: Go statement considered harmful
Every concurrency API needs a way to run code concurrently. Here's some examples of what that looks like using different APIs:
Home page of Nathaniel J. Smith, research scientist at UC Berkeley who studies how people use and understand language.
Visit vorpus.org → On Hacker News Nov 2016 – Mar 2020
Software Engineering 4Systems & Performance 2Programming Languages 2Society, Policy & Culture 1Career & Management 1
Every concurrency API needs a way to run code concurrently. Here's some examples of what that looks like using different APIs:
Your code might be perfect and never fail, but unfortunately the outside world is less reliable. Sometimes, other people's programs crash or freeze. Networks go down; printers catch on fire . Your code needs to be prepared for this: every time you read from the network, attempt to acquire an inter-process lock, or…