News for hackers. Stuff that matters.
Re:CAF: C++ Actor Framework by dnautics on Monday March 02, 2020 @02:02AM (#22462300)
My point is just that it's possible to construct one in any system that static analysis will be unable to detect or prevent. If you can construct it, it can also happen by accident.
Re:CAF: C++ Actor Framework by signa11 on Monday March 02, 2020 @03:04AM (#22462554)
> My point is just that it's possible to construct one in any system that static analysis will be unable to detect or prevent. If you can construct it, it can also happen by accident.

how ? can you please explain ? thanks !

Re:CAF: C++ Actor Framework by dnautics on Monday March 02, 2020 @04:59PM (#22469494)
most people implement "block on API response", because that's way easier to reason about, sometimes, even without timeout. Reading through the thread, what I was misunderstanding is that this situation technically gets rolled into what called a "livelock". Fine, but from the higher-level API consumer's POV it's a deadlock.
Re:CAF: C++ Actor Framework by signa11 on Monday March 02, 2020 @11:12PM (#22471724)
with blocking semantics, you are sure to run into deadlocks in a single-threaded environment pretty easily a -> b -> c -> a.

grpc f.e. has support for blocking requests but it's 'solution' is to spawn a new thread for the request.

Re:CAF: C++ Actor Framework by senderista on Monday March 02, 2020 @02:34PM (#22467945)
You did not construct such a scenario for an async message-passing system.