Skip to content

Proposal: rename wasi target OS to wasip1 #19581

Closed

Description

@ianprime0509

Since WASI preview 2 has been officially launched, and implementations of it are available, the term "WASI" by itself has become ambiguous. Eventually, in the future, when WASI is stabilized, the unqualified term "WASI" should refer to the stabilized version.

The name "wasip1" for preview 1 (which is what Zig currently supports) seems to be the preferred name going forward in the WASI ecosystem, see for example WebAssembly/wasi-libc#478

This proposal doesn't cover how Zig might eventually support preview 2 (which would likely involve several other factors, such as wasi-libc support and integration with the component model on which preview 2 is based). It just proposes renaming the existing wasi target OS to eliminate ambiguity and pave the way for future developments in this area.

Activity

  1. added
    proposal
    os-wasi
    on Apr 8, 2024
  2. added this to the 0.13.0 milestone on Apr 8, 2024
  3. added a commit that references this issue on Apr 14, 2024
    fa5ca66
  4. jacobly0 commented on Apr 14, 2024

    @jacobly0
    Member

    Does #19654 fit your needs?

  5. ianprime0509 commented on Apr 14, 2024

    @ianprime0509
    ContributorAuthor

    Thanks! That seems reasonable to me. One nit, though, is that I think it would make more sense to have WASI preview 1 be version 0.1.0 in that scheme, as preview 2 is labeled as 0.2.0 in the WIT IDL definitions. (Also, my understanding of the target query parsing code suggests to me that OS versions containing -, such as wasi.0.0.0-preview.1, would not be parseable, as the arch-OS-ABI triple is split on -, but I could be missing something)

  6. added a commit that references this issue on Apr 14, 2024
    60d5001
  7. jacobly0 commented on Apr 14, 2024

    @jacobly0
    Member

    (Also, my understanding of the target query parsing code suggests to me that OS versions containing -, such as wasi.0.0.0-preview.1, would not be parseable, as the arch-OS-ABI triple is split on -, but I could be missing something)

    Yeah I was wondering the same thing, but your suggested versioning solves that neatly.

  8. andrewrk commented on Apr 15, 2024

    @andrewrk
    Member

    Solved in a2b834e.

    -target wasm32-wasi.0.1.0 vs -target wasm32-wasi.0.2.0

  9. modified the milestones: 0.13.0, 0.12.0 on Apr 18, 2024
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

    os-wasiproposal

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions