Behavior-Oriented Concurrency for Python: Lock-less, Deadlock-free, Ownership-based

9 points by eatonphil


FedericoSchonborn

I feel like anything coming from Microsoft should get tagged with vibecoding by default.

georgelesica

I'm a little confused by this:

Furthermore, the ordering of the behaviors as they are declared determines the scheduling of the behaviors. In a situation like this, it means that all the ingredient behaviors will execute before cook_omelette.

Doesn't that imply that you have to figure out the dependency graph yourself? I thought part of the point was that you don't have to know what needs to happen first, second, third, etc.

WilhelmVonWeiner

I love Python as much as the next guy but Erlang solved this in 1986, if we need distributed concurrency we should maybe just work in a language designed to support distributed concurrency. Do we need to use Python for everything? Can LLMs not write Erlang/Elixir?

sebastien

Made me think of cells in reactive programming, you capture dependencies in the computation, and let the underlying runtime orchestrate/coordinate -- in this case access as opposed to update propagation. Nice and clean!

osa1

Anyone have a short summary of what "behavior-oriented concurrency" is?