Skip to content

runtimec2: 功能完整性批1(string 10 项)+ 批2(struct·new / Ptr 修复) - #547

Merged
miaobyte merged 2 commits into
masterfrom
feat/c2-completeness
Oct 28, 2026
Merged

miaobyte merged 2 commits into
masterfrom
feat/c2-completeness

Conversation

@miaobyte

Copy link
Copy Markdown
Contributor

两个 commit:

  1. 批1 c9cc5e9:string 族 10 项 handler(cmp/concat/find/formatint/formatuint/parsefloat/parseint/parseuint/set/slice)+ native 能力表注册;写参失效 + dst_ptr 转发链修复
  2. 批2 2e8d644:struct·new 从 Handoff 归为 Native(gen_ops.py/rwir_gen.cpp 重新生成 + h_struct_new);Ptr 读参一跳、Copy 槽本体、成员读写 base 缓存、悬空 Ptr 比较、None 参数、递归 do_call 修复;FReg.base_ptr

验证:编译通过(批1 单独也在干净树上验证可编译);tutorial 155→170 PASS(+15),12-struct 10/10、11-string 9/9、13-stdlib/string 8/8;benchmark shm 10 case 30/30 valid、无性能回退。

剩余 65 个 tutorial 失败为 vthread/networld 等既有项。

🤖 Generated with Claude Code

miaobyte and others added 2 commits October 29, 2026 01:12
- vmkv_native.cpp:string 家族共用 UTF-8/码点工具 + cmp/concat/find 等 10 个
  handler,并注册到 native 能力表
- vmkv.cpp:内存别名写参(dst_ptr)转发链取明文 key;写参回写后逐级失效
  调用方 fast 缓存(避免 fk 快路径读旧值)

验证:编译通过;tutorial 155→170 PASS;benchmark shm 30/30 valid。

Co-Authored-By: Claude Code <noreply@anthropic.com>
- gen_ops.py / rwir_gen.cpp:struct·new 由 Handoff 归为 Native 并重新生成
- vmkv_native.cpp:h_struct_new(克隆 /lib/Name 原型子树并覆盖字段,
  校验字段存在/类型)+ struct/ 家族注册;&x 惰性 ensure_reg_key
- vmkv.cpp:Ptr 读参一跳、Copy 槽本体(不穿透)、成员读写 base 缓存、
  悬空 Ptr 比较、None 参数、递归 do_call 修复
- vmbin.hpp:FReg base_ptr 缓存字段

验证:编译通过;tutorial 155→170 PASS(12-struct 10/10、11-string 9/9、
13-stdlib/string 8/8);benchmark shm 30/30 valid、无回退。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@miaobyte
miaobyte merged commit db7bb56 into master Oct 28, 2026
2 of 10 checks passed
@miaobyte
miaobyte deleted the feat/c2-completeness branch October 29, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant