Settings

Theme

PHP will get an AOT compiler from the Swoole team in 2027

old.reddit.com

3 points by edmondx 2 months ago · 3 comments

Reader

edmondxOP 2 months ago

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 2 months 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection