Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does it prevent two actors from waiting on each other?


There are no locks. There is no blocking wait, the IO lib is nonblocking throughout. Actors cannot wait.

Messages are guaranteed to be processed ordered sequentially.

https://tutorial.ponylang.io/index.html#whats-pony-anyway


There are while loops, though, so actors can still livelock.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: