Skip to content

2-runtime: C runtime 迁移 compactarray/scatterarray 新命名(#540 遗留) #544

Open

Description

@miaobyte

现象(#513 合入验证时发现)

C runtime(runtime/src/)的 myrwircaps/rwir_array/rwir_xvalue/rwir_ndarray 仍用旧命名(array·fill/array·append/xv·at 等),而 layout/stdlib/tutorial 已在 #540(array 双形态迁移)改为 compactarray/scatterarray 新命名。

后果:layout 生成新名 rwir 后 C runtime 不认,执行报 NameError: rwfunc not found: compactarray·fill(benchmark binary_trees/matmul/quicksort 失败,tutorial 相应 array 用例失败)。

状态:已知(tutorial-migration-STATUS.md 已注明 "C runtime 未改……对拍基准需同步")。#540 迁移遗留,非 #513 引入。

待办

  • runtime/src/myrwircaps.c:旧名 array·*/xv·*/ndarray·* → compactarray·*/scatterarray·*
  • rwir_array.c / rwir_xvalue.c / rwir_ndarray.c:语义对齐(compactarray·set 同槽 patch、scatterarray·append 散列容器铁律等)
  • 迁移后 C runtime 的 array benchmark/tutorial 恢复(对拍基准同步)

Activity

  1. added
    BUG缺陷:与 spec 或预期行为不符
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUG缺陷:与 spec 或预期行为不符

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions