3 ms·
> then I have to replace the networking with async and tie it back into the protocol parsing. This in itself isn't too bad, but then anything that calls the new
by TeMPOraL 9y ago
> then I have to replace the networking with async and tie it back into the protocol parsing. This in itself isn't too bad, but then anything that calls the new async cl-postgres has to be converted to expect async...all the way up.
Isn't this the very consequence of going async? I'm reminded of the article on this recently featured here[1]. Once you introduce async, you poison everything up to the event loop (which, with usual async implementations, you don't even see or control).
[0] - http://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/ http://journal.stuffwithstuff.com/2015/02/01/what-color-is-y... + https://news.ycombinator.com/item?id=16732948 https://news.ycombinator.com/item?id=16732948
- orthecreedence 9y ago> Isn't this the very consequence of going async? Like I mentioned, depends on the language features. If it has coroutines/green threads/continuations, you can use async without unwinding the entire stack. CL will probably always have this problem, unless the bigger implementations independently decide to implement the necessary building blocks (which they probably won't). Try explaining that to me 5 years ago, though.
- TeMPOraL 9y agoIf it's about avoiding stack unwinding, then maybe you could hack an implementation with the condition/restart system? This is the one stack-preserving feature in CL.