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.
 
 
韩天峰 3ac611220e feat(compiler): implement external library import stub generation and handling 1 month ago
..
AOT_BUILD_SPEED_RESEARCH.md refactor(backend): rename declaration generation methods and update header files 1 month ago
BACKEND_NEUTRAL_IR.md docs(backend): add backend-neutral IR design document 2 months 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 rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month 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
GMP_GAP.md BitInt 支持位运算操作符 3 months ago
HIGH_PRECISION_TYPES.md rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month ago
INCOMPATIBLE_PHP_FEATURES.md feat(parser): add array reference support and improve foreach handling 1 month ago
LIBPHP_INSTALLER.md feat(installer): add libphpx.so auto-build support and improve PHP detection 1 month ago
MIXED_CPP_PHP.md feat(compiler): implement external library import stub generation and handling 1 month ago
NATIVE_TYPES.md docs: update documentation references and compiler CLI guide 2 months 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
PHP_INCOMPATIBILITY_CLASSIFICATION.md feat(parser): add array reference support and improve foreach handling 1 month ago
QUICKSTART.md rename(compiler): update compiler executable name from compiler.php to tpc.php 1 month ago
README.md feat(compiler): add expected and unexpected branch prediction functions 1 month ago
REFACTORING_PLAN.md refactor(generator): replace self::TYPE_* constants with Type::* constants 2 months ago
STD_CONTAINERS.md feat(parser): add array reference support and improve foreach handling 1 month ago
UNIVERSAL_METHODS.md rename(tests): move aot tests directory to compiler 1 month ago
YIELD_GENERATOR.md feat(generator): add support for closure and arrow function generators 1 month ago
aot-optimization-priority.md docs(aot): 添加 AOT 编译器优化优先级和 PHP 源码优化器分析文档 3 months 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

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. 历史研究文档保留原始比较结论,并在需要时注明调研日期,不应悄然改写为当前状态。