|
|
|
|
|
by jmyeet
16 days ago
|
|
> That's no longer always true. When the code preload is enabled, a request can leak into another. That's in the same bucket (to me) as, say, L1/2/3 cache leaking between CPU threads. That's resulted in real attacks but it's not really the fault of my programming. I would rather the bug be in the language or the compiler/interpreter or even the framework because it's more likely to get found and fixed than if it was only code written by me for me. As an aside, PHP eliminates a whole class of bugs that don't exist in, say, C/C++ eg string buffer overflows. Yes, the PHP engine can itself have buffer overflows but as per my previous point I trust the library developers and the volume of people who use and analyze it more than being totally correct with my own string handling. > But the language has a native async feature through Fibers, from which coroutines can be implemented (see amphp/amp). Only a single fiber runs your PHP request at any one time. This still fits the same model. |
|