Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Lane 2 · kotlin-core] NotImplemented stubs — Tensor.sliceCopy {} via CopyMaterializationStrategy

未关闭 适合新手
#1,415 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
kotlin

调研方向

阅读 TensorSlicingExtensions.kt,并比较 sliceCopy {} 与 sliceView {};然后检查 CopyMaterializationStrategy.kt,找出现有的物化器。添加一个测试,验证修改副本不会改变源数据;从 config/stub-allowlist.txt 中移除该文件,并运行 ./gradlew :skai-net-lang:skai-net-lang-core:jvmTest checkUnmarkedStubs(使用 issue 中给出的项目路径)。完成标准是副本包含切片后的值、与源数据相互独立,并且 stub 检查通过。

由索引模型根据 Issue 内容生成。

描述

coding good first issue size:s skill:kotlin-core sub-issue

Sub-issue of #1414 ([Feature]: Close the remaining NotImplemented stubs outside the operator surface).

Lane: 2 · Kotlin core
Skill needed: Kotlin. No tensor-storage internals needed — the materializer already exists.
Size: s (a few hours)
Blocked by: nothing

What to do

  1. Tensor.sliceCopy {} in skainet-lang/skainet-lang-core/src/commonMain/kotlin/sk/ainet/lang/tensor/TensorSlicingExtensions.kt throws NotImplementedError.
  2. Implement it by building the view exactly like sliceView {} in the same file and passing it to CopyMaterializationStrategy.materialize(view) (.../lang/tensor/CopyMaterializationStrategy.kt).
  3. Add a test that mutating the copy does not change the source.
  4. Delete the file's line from config/stub-allowlist.txt; run ./gradlew :skainet-lang:skainet-lang-core:jvmTest checkUnmarkedStubs.

Acceptance

  • sliceCopy returns an independent tensor with the sliced values
  • checkUnmarkedStubs passes without the allowlist entry
  • Result reported back on the parent issue

Notes

If something here turns out to be wrong or much bigger than the size label, comment on this issue or open a specific bug instead of blocking the parent.

Coverage matrix: docs/modules/ROOT/pages/reference/ops-status-matrix.adoc · How lanes work: Issue taxonomy

主要语言
Kotlin
星标
52
派生
15
平均合并
1 天 10 小时
30 天内合并 PR
59

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SKaiNET-developers/SKaiNET 的其他 Issue

查看 SKaiNET-developers/SKaiNET 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。