韩天峰
|
7418b6247e
|
feat(parser): optimize string concatenation assignment operations
- Preserve PHP's concat-assignment operation for statically typed strings using in-place append
- Add parseInPlaceStringConcatAssign method to handle string concatenation assignments efficiently
- Prevent O(n^2) work when rebuilding target = concat(target, rhs) operations
- Keep compound RHS evaluated completely before target changes in concat assignments
- Optimize native scalar binary operand handling to avoid unnecessary Variant boxing
- Add native scalar call results remain unboxed when ordered in native-types mode
- Create string concatenation assignment tests with proper PHP value and COW semantics
- Update version number from 1109 to 1110
|
5 days ago |
韩天峰
|
bbddd40297
|
refactor(examples): 为基准测试函数添加参数类型声明
- 为 Ack 函数添加 int 类型参数声明
- 为 ackermann 函数添加 int 类型参数声明
- 为 ary3 函数添加 int 类型参数声明
- 为 hash1 函数添加 int 类型参数声明
- 为 hash2 函数添加 int 类型参数声明
- 为 gen_random 函数添加 int 类型参数声明
- 为 heapsort_r 函数添加 int 类型参数声明
- 为 heapsort 函数添加 int 类型参数声明
|
3 months ago |
韩天峰
|
c5f38a3d05
|
fix(parser): 修复变量类型推断问题
- 当右侧表达式为无类型但左侧变量已有已知原生类型时,
使用左侧类型进行转换以确保类型安全
- 在赋值操作中添加类型检查逻辑,避免类型丢失问题
- 更新 fibo 和 fibo_r 函数参数类型声明为 int
- 添加 issetor 性能测试用例以验证类型推断优化效果
|
3 months ago |
韩天峰
|
15f9d35c69
|
refactor(examples): 优化基准测试和协程示例代码
- 在 simplecall 函数中添加计算总和并打印结果
- 统一函数定义的大括号格式
- 修复 matrix 和 sieve 函数的参数类型声明
- 调整 return 语句的括号格式
- 使用 Swoole\Coroutine\run 函数别名简化调用
|
4 months ago |
韩天峰
|
2912b40b0f
|
feat(compiler): 添加原生类型支持和属性获取功能
- 在编译器基础类中添加了 Expr_PropertyFetch 表达式处理逻辑
- 实现了原生属性变量检测和类型推断功能
- 新增了属性获取表达式的原生属性变量标记机制
- 更新了多个示例文件以使用 native_types 命名空间
- 添加了默认数组属性测试用例验证功能
- 集成了 polyfills 支持并在主入口点传递命令行参数
|
4 months ago |
韩天峰
|
6ac8494173
|
update
|
8 months ago |
韩天峰
|
9c72ef6ff4
|
bench.php
|
8 months ago |
韩天峰
|
0447e73214
|
add bench.php
|
8 months ago |