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.
 
 
Lorenzo Dessimoni a8f7c29ea0 Translate incompatible PHP features file to English 23 hours ago
..
en Translate incompatible PHP features file to English 23 hours ago
python feat(python): generate builtin helpers and convert native calls 3 weeks ago
AOT_BUILD_SPEED_RESEARCH.md refactor(generator): replace php prefixed helper functions with php namespace 7 days ago
ARRAY_DEF.md fix(array-def): update list index validation to use PHP's append position 1 week 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 4 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 2 months ago
COMPILER_CLI.md feat(config): add ext-deps alias for extension-dependencies configuration 3 days 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 6 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 4 weeks ago
IMMUTABLE.md Immutable 实现 1 week ago
INCOMPATIBLE_PHP_FEATURES.md feat(compiler): add support for PHP 8.5 constant expression casts 3 days ago
INTERFACE_PROPERTY_HOOKS.md feat(property): add property override attribute support and validation 4 days ago
LIBPHP_INSTALLER.md feat(installer): add libphpx.so auto-build support and improve PHP detection 2 months ago
MIXED_CPP_PHP.md docs: add C++ naming convention documentation and update related references 7 days ago
NATIVE_CLASS_IMPLEMENTATION_AUDIT.md feat(compiler): add ArrayDef compile-time array contract support 1 week ago
NATIVE_CLASS_OBJECT.md feat(compiler): add ArrayDef compile-time array contract support 1 week ago
NATIVE_TYPES.md feat(compiler): enhance big numeric type handling with improved conversions and validations 4 weeks ago
OBJECT_CREATION.md refactor(generator): replace php prefixed helper functions with php namespace 7 days ago
OBJECT_STORAGE_AND_PASSING_MODELS.md feat(compiler): add ArrayDef compile-time array contract support 1 week ago
PATENT_01_CPP_TEMPLATE_TYPED_CONTAINER.md refactor(tests): replace native_types and complex_types with Type constants 2 months 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 Translate incompatible PHP features file to English 23 hours ago
PROPERTY_HOOKS.md feat(property): add property override attribute support and validation 4 days 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 2 months ago
README.md fix(compiler): simplify root slot registration in CompilerBase 6 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 6 days ago
SCOPE_MANAGEMENT.md refactor(build): update runtime initialization and linking for native modules 6 days ago
STD_CONTAINERS.md feat(compiler): add ArrayDef compile-time array contract support 1 week ago
TEST_COVERAGE_ANALYZER.md feat(testing): add test coverage analyzer tool 3 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 2 months ago
WASI_BUILD.md refactor(build): update runtime initialization and linking for native modules 6 days ago
YIELD_GENERATOR.md feat(generator): add support for closure and arrow function generators 2 months ago
aot-optimization-priority.md refactor(generator): replace php prefixed helper functions with php namespace 7 days ago
hhvm-review.md rename(tests): move aot tests directory to compiler 2 months ago
kphp-review.md rename(tests): move aot tests directory to compiler 2 months ago
peachpie-review.md rename(compiler): update compiler executable name from compiler.php to tpc.php 2 months 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. 历史研究文档保留原始比较结论,并在需要时注明调研日期,不应悄然改写为当前状态。