Gary Willoughby: "Why Go's design is a disservice to intelligent programmers"

Dicebot via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Mar 27 09:06:52 PDT 2015


On Friday, 27 March 2015 at 15:28:31 UTC, Ola Fosheim Grøstad 
wrote:
> No... E.g.:
>
> On the same thread:
> 1. fiber A receives request and queries DB (async)
> 2. fiber B computes for 1 second
> 3. fiber A sends response.
>
> Latency: 1 second even if all the other threads are free.

This is a problem of having blocking 1 second computation in same 
fiber pool as request handlers -> broken application design. 
Hiding that issue by moving fibers between threads is just making 
things worse.


More information about the Digitalmars-d-announce mailing list