Stream: git-wasmtime

Topic: wasmtime / PR #10500 Expose default value constructors fo...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:02):

Gonzalosilvalde opened PR #10500 from Gonzalosilvalde:10437 to bytecodealliance:main:

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

Description:

This pull request addresses issue #10437 by adding default_value(&self, store: impl AsContextMut) -> Option<T> methods to various Wasm types (e.g., ExternType, GlobalType, MemoryType, ValType, etc.), enabling default value construction for the host API.

Changes:

Additional Notes:

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:02):

Gonzalosilvalde requested fitzgen for a review on PR #10500.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:02):

Gonzalosilvalde requested wasmtime-core-reviewers for a review on PR #10500.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:03):

Gonzalosilvalde requested wasmtime-fuzz-reviewers for a review on PR #10500.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:45):

pchickey submitted PR review:

Thanks. Can you fill in the remaining empty doc comments along the lines of my suggestions?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:45):

pchickey created PR review comment:

                    log::warn!("couldn't create import for {import:?}");

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:45):

pchickey created PR review comment:

    /// Construct a default value, if possible for the underlying type. Tags do not have a default value.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:45):

pchickey created PR review comment:

    /// Construct a default value. Returns None for non-nullable Ref types, which have no default.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 16:45):

pchickey created PR review comment:

    /// Construct a func which returns results of default value, if each result type has a default value.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 17:45):

github-actions[bot] commented on PR #10500:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "fuzzing", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Apr 01 2025 at 19:05):

Gonzalosilvalde updated PR #10500.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 02 2025 at 14:59):

pchickey merged PR #10500.


Last updated: Apr 17 2025 at 08:04 UTC