Re: PHP True Async RFC

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: PHP True Async RFC
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

> Again, take a look at how nicely golang handles concurrency with colorless functions: php
> fibers weren't the first to do it.

Also, a colored functions approach for php would make a future thread-based concurrency approach
completely non-viable, because it would require marking ALL functions (not just IO-bound functions,
CPU-bound ones as well) as async and forcing the use of await for ALL function calls, just to be
able to sometimes use some functions in parallel (in separate threads).

Colored functions completely preclude a possible future thread-based implementation of concurrency.

Regards,
Daniil Gentili.


Thread (110 messages)

« previous php.internals (#126644) next »