Swoole Compiler v4 introduces a native AOT (Ahead-of-Time) compiler that radically changes the landscape. The AOT compiler abandons traditional PHP interpretation and allows code to be compiled directly into native binary executables. Performance can increase by orders of magnitude compared to the classic interpreter, reaching levels comparable to Rust and Go.
maattdd•1h ago
I don't know much of PHP, but reaching "Rust/Go" performance is not simply because they have AOT compiler, but because the semantic of the language itself allows efficient compilation.
Many attempts has been made for an AOT compiler for Python and Ruby, but they don't reach those performance because of this.
edmondx•1h ago
maattdd•1h ago
Many attempts has been made for an AOT compiler for Python and Ruby, but they don't reach those performance because of this.