Swoole AOT compiler has been renamed to TypePHP.
They're now explicitly positioning it as a separate, statically typed compiled language rather than "just" an AOT compiler for PHP.
How it (supposedly) works:
- PHP compatible syntax.
- Compiles directly to native machine code instead of ZendVM opcodes.
- ZendVM is still embedded as a runtime.
- Compiled code can require / include regular PHP files at runtime.
- Composer packages, autoloading, and extensions like curl, PDO, mysqli, and Swoole are supposed to keep working.
Some interesting features:
- Native
Decimal,BigInt, andBigFloattypes.0.1 + 0.2 === 0.3without precision issues.
- Typed containers alongside regular PH