logoalt Hacker News

gf000yesterday at 3:20 PM1 replyview on HN

I don't think there is a generic computational model that would prevent deadlocks, so no, pony also doesn't solve it.


Replies

brabelyesterday at 6:17 PM

In Pony, handling messages is done via behaviors, which look like a normal method - the only difference is that it cannot return anything and that it runs asynchronously. Hence, the example in the post cannot occur since you cannot really wait for something in Pony. You'd have to explicitly call some other behavior of the other actor to be able to "respond" its first message, which breaks the circularity.

show 1 reply