TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
韩天峰 c5f478766e feat(compiler): add support for PHP 8.5 magic constants and namespace relative names 2 days ago
..
python feat(python): generate builtin helpers and convert native calls 2 weeks ago
AOT_BUILD_SPEED_RESEARCH.md refactor(generator): replace php prefixed helper functions with php namespace 4 days ago
ARRAY_DEF.md fix(array-def): update list index validation to use PHP's append position 6 days ago
BACKEND_NEUTRAL_IR.md docs(backend): add backend-neutral IR design document 2 months ago
BIG_NUMBER_INPLACE_OPTIMIZATION_PLAN.md docs: add big number inplace optimization plan and update bool conversion 3 weeks ago
CLASS_INHERITANCE.md docs: update documentation references and compiler CLI guide 2 months ago
COMPILATION_MODES.md rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month ago
COMPILER_CLI.md 移除 8.2、8.3 版本的支持 2 weeks ago
COMPILE_TIME_FUNCTIONS.md feat(compiler): add expected and unexpected branch prediction functions 1 month ago
CORE_OOA_OOD_OOP_REFACTORING_PLAN.md test(aot): add trait private property write inherited test case 2 months ago
CPP_SYMBOL_NAMING.md refactor(build): update runtime initialization and linking for native modules 4 days ago
GMP_GAP.md BitInt 支持位运算操作符 3 months ago
HIGH_PRECISION_TYPES.md feat(compiler): enhance big numeric type handling with improved conversions and validations 3 weeks ago
IMMUTABLE.md Immutable 实现 7 days ago
INCOMPATIBLE_PHP_FEATURES.md feat(compiler): add support for PHP 8.5 magic constants and namespace relative names 2 days ago
INTERFACE_PROPERTY_HOOKS.md 移除 8.2、8.3 版本的支持 2 weeks ago
LIBPHP_INSTALLER.md feat(installer): add libphpx.so auto-build support and improve PHP detection 1 month ago
MIXED_CPP_PHP.md docs: add C++ naming convention documentation and update related references 4 days ago
NATIVE_CLASS_IMPLEMENTATION_AUDIT.md feat(compiler): add ArrayDef compile-time array contract support 6 days ago
NATIVE_CLASS_OBJECT.md feat(compiler): add ArrayDef compile-time array contract support 6 days ago
NATIVE_TYPES.md feat(compiler): enhance big numeric type handling with improved conversions and validations 3 weeks ago
OBJECT_CREATION.md refactor(generator): replace php prefixed helper functions with php namespace 4 days ago
OBJECT_STORAGE_AND_PASSING_MODELS.md feat(compiler): add ArrayDef compile-time array contract support 6 days ago
PATENT_01_CPP_TEMPLATE_TYPED_CONTAINER.md refactor(tests): replace native_types and complex_types with Type constants 1 month ago
PATENT_02_HYBRID_STATE_PROGRAMMING_LANGUAGE.md docs: 添加两项专利申请技术交底书 3 months ago
PHPX_WASM_BUILD.md docs: add PHPX WASM static library rebuild guide 2 weeks ago
PHP_INCOMPATIBILITY_CLASSIFICATION.md feat(readonly): enforce direct assignment only for readonly properties 2 weeks ago
PROPERTY_HOOKS.md 移除 8.2、8.3 版本的支持 2 weeks ago
PY2PHP.md feat(converter): add Python to TypePHP conversion features 2 weeks ago
QUICKSTART.md rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month ago
README.md fix(compiler): simplify root slot registration in CompilerBase 3 days ago
REFACTORING_PLAN.md refactor(generator): replace self::TYPE_* constants with Type::* constants 2 months ago
RUNTIME_LIFECYCLE.html fix(compiler): simplify root slot registration in CompilerBase 3 days ago
SCOPE_MANAGEMENT.md refactor(build): update runtime initialization and linking for native modules 4 days ago
STD_CONTAINERS.md feat(compiler): add ArrayDef compile-time array contract support 6 days ago
TYPEPHP_WASM_IMPLEMENTATION_PLAN.md feat(wasm): add WASI component library mode with WIT interface generation 3 weeks ago
UNIVERSAL_METHODS.md rename(tests): move aot tests directory to compiler 1 month ago
WASI_BUILD.md refactor(build): update runtime initialization and linking for native modules 4 days ago
YIELD_GENERATOR.md feat(generator): add support for closure and arrow function generators 1 month ago
aot-optimization-priority.md refactor(generator): replace php prefixed helper functions with php namespace 4 days ago
hhvm-review.md rename(tests): move aot tests directory to compiler 1 month ago
kphp-review.md rename(tests): move aot tests directory to compiler 1 month ago
peachpie-review.md rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month ago
php-src-optimizer-analysis.md docs(aot): 添加 AOT 编译器优化优先级和 PHP 源码优化器分析文档 3 months ago
phpstan-design-analysis.md docs(aot): 添加 AOT 编译器优化优先级和 PHP 源码优化器分析文档 3 months ago
wasm.md feat(wasm): update WASI build system with explicit browser/component profiles 3 weeks ago

README.md

TypePHP 编译器内部文档

本目录包含编译器实现、兼容性、构建模式和专项设计文档。用户侧使用手册位于独立的 aot/docs 仓库;这里的研究报告和重构计划可能描述历史状态,当前行为应以代码、测试和兼容性清单为准。

当前权威文档

架构与维护

研究与历史资料

hhvm-review.mdkphp-review.mdpeachpie-review.mdphpstan-design-analysis.mdphp-src-optimizer-analysis.md 以及专利草案用于记录调研时点的比较和设计背景,不作为当前功能清单。

维护规则

  1. 当前兼容性变化同时更新 INCOMPATIBLE_PHP_FEATURES.md 和分类文档。
  2. 所有语法和语义限制统一链接到当前兼容性清单,避免维护重复清单。
  3. 功能是否支持应以 PHPT/PHPUnit 回归测试为依据。
  4. 历史研究文档保留原始比较结论,并在需要时注明调研日期,不应悄然改写为当前状态。