Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
0cachecoherency
· 10y ago · 0 comments
Pony prevents you from writing that code. All communication between actors is by message passing, and there are no global variables. Check out reference capabilities.
Comments
[–]
m0th87
10y ago
You can deadlock in purely message passing code, even if there are no blocking sends. See an example in Erlang:
http://james-iry.blogspot.com/2009/04/erlang-style-actors-ar...
[–]
0cachecoherency
OP
10y ago
That anti-pattern isn't possible in Pony, because Pony has no blocking receive call.
[–]
dozzie
10y ago
Of course, and Pony prevents programmer from writing code that waits for anything else. Sure. We're supposed to believe this?
[–]
ggchappell
10y ago
Wow, so maybe the no-deadlock guarantee really does say something nontrivial. Thanks for the heads up.