Skip to content

docs: update Zig 0.16.0 as stable and fix benchmark timing#24

Merged
jinzhongjia merged 1 commit into016from
fix/zig-build-code-docs
May 6, 2026
Merged

docs: update Zig 0.16.0 as stable and fix benchmark timing#24
jinzhongjia merged 1 commit into016from
fix/zig-build-code-docs

Conversation

@jinzhongjia
Copy link
Copy Markdown
Member

Summary

Update documentation and benchmark implementation to reflect Zig 0.16.0 as a stable release, replacing the previous nightly/dev references.

Changes

  • Documentation: Update all references from "0.16.0-dev (nightly)" to "0.16.0" across AGENT.md, CLAUDE.md, README.md, and README_CN.md
  • CI/CD: Update tested versions to 0.14.1, 0.15.1, 0.16.0, and master
  • Benchmarks: Refactor src/bench.zig to use std.Io.Clock.awake for timing in Zig 0.16+
    • Introduce BenchRuntime struct to hold the required std.Io context
    • Simplify getTimeNs() to use the stable Zig 0.16 API
    • Initialize runtime context in the Zig 0.16+ entry point

Notes

All changes maintain backward compatibility with Zig 0.14.x and 0.15.x versions.

@jinzhongjia jinzhongjia merged commit 6f5e9e1 into 016 May 6, 2026
1 check passed
@jinzhongjia jinzhongjia deleted the fix/zig-build-code-docs branch May 6, 2026 16:46
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the library's documentation and benchmarking logic to support Zig 0.16.0. The changes include updating version support tables in AGENT.md, README.md, and README_CN.md, as well as adapting the benchmarking timer in src/bench.zig to use the new std.Io APIs. Review feedback suggests that the usage of std.Io as a type and the specific API path for std.Io.Clock.awake may be incorrect, as std.Io is typically a namespace in the Zig standard library.

I am having trouble creating individual review comments. Click here to see my feedback.

src/bench.zig (21)

high

The type ?std.Io is likely invalid because std.Io is a namespace, not a type. If you intended to use a specific type from the std.io namespace, please correct the type definition. If std.Io is meant to be a custom type, ensure it is properly defined.

src/bench.zig (28)

high

The usage of std.Io.Clock.awake appears to be incorrect if std.Io is a namespace. Please verify the API path for accessing the clock in Zig 0.16+.

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