Stream: git-wasmtime

Topic: wasmtime / PR #2461 Implement imported/exported modules/i...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2020 at 22:57):

alexcrichton opened PR #2461 from import-export-instances-modules to main:

This commit implements the final piece of the module linking proposal
which is to flesh out the support for importing/exporting instances and
modules. This ended up having a few changes:

One of the main downsides of this implementation is that type matching
of imports is duplicated between wasmparser and wasmtime, leading to
posssible bugs especially in the subtelties of module linking. I'm not
sure how best to unify these two pieces of validation, however, and it
may be more trouble than it's worth.

cc #2094

Note that this is built on https://github.com/bytecodealliance/wasmtime/pull/2451 so only the last commit is relevant.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2020 at 22:58):

alexcrichton updated PR #2461 from import-export-instances-modules to main:

This commit implements the final piece of the module linking proposal
which is to flesh out the support for importing/exporting instances and
modules. This ended up having a few changes:

One of the main downsides of this implementation is that type matching
of imports is duplicated between wasmparser and wasmtime, leading to
posssible bugs especially in the subtelties of module linking. I'm not
sure how best to unify these two pieces of validation, however, and it
may be more trouble than it's worth.

cc #2094

Note that this is built on https://github.com/bytecodealliance/wasmtime/pull/2451 so only the last commit is relevant.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2020 at 23:24):

alexcrichton updated PR #2461 from import-export-instances-modules to main:

This commit implements the final piece of the module linking proposal
which is to flesh out the support for importing/exporting instances and
modules. This ended up having a few changes:

One of the main downsides of this implementation is that type matching
of imports is duplicated between wasmparser and wasmtime, leading to
posssible bugs especially in the subtelties of module linking. I'm not
sure how best to unify these two pieces of validation, however, and it
may be more trouble than it's worth.

cc #2094

Note that this is built on https://github.com/bytecodealliance/wasmtime/pull/2451 so only the last commit is relevant.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2020 at 23:24):

alexcrichton requested peterhuene for a review on PR #2461.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene submitted PR Review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

Clippy nit:

        ty

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

Clippy nit:

        sig

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

:bike:shed: perhaps this method should be renamed to build now given the mutation and "builder" name?

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

This comment seems incongruent with the method.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

            // we acquired the handle from an instance in the store.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 01:54):

peterhuene created PR Review Comment:

    /// Validates that the `actual_imports` list of module imports matches the

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 15:17):

alexcrichton updated PR #2461 from import-export-instances-modules to main:

This commit implements the final piece of the module linking proposal
which is to flesh out the support for importing/exporting instances and
modules. This ended up having a few changes:

One of the main downsides of this implementation is that type matching
of imports is duplicated between wasmparser and wasmtime, leading to
posssible bugs especially in the subtelties of module linking. I'm not
sure how best to unify these two pieces of validation, however, and it
may be more trouble than it's worth.

cc #2094

Note that this is built on https://github.com/bytecodealliance/wasmtime/pull/2451 so only the last commit is relevant.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 15:33):

alexcrichton updated PR #2461 from import-export-instances-modules to main:

This commit implements the final piece of the module linking proposal
which is to flesh out the support for importing/exporting instances and
modules. This ended up having a few changes:

One of the main downsides of this implementation is that type matching
of imports is duplicated between wasmparser and wasmtime, leading to
posssible bugs especially in the subtelties of module linking. I'm not
sure how best to unify these two pieces of validation, however, and it
may be more trouble than it's worth.

cc #2094

Note that this is built on https://github.com/bytecodealliance/wasmtime/pull/2451 so only the last commit is relevant.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 03 2020 at 16:15):

alexcrichton merged PR #2461.


Last updated: Dec 23 2024 at 13:07 UTC