Stream: git-wasmtime

Topic: wasmtime / issue #14164 Split "known entity import" and "...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2026 at 18:27):

fitzgen opened issue #14164:

Reading over this again I personally find this pretty confusing. I understand why this is the way it is, but in consider this I could imaging an alternative design where a module statically knows it imports a particular global and then has separate information on whether it's appropriate to use a statically known alias region for that global. Basically I could imagine a design where one axis of imports is "is it always this thing" and then another axis is "is that thing always known to all other modules as well".

One example optimization with this is that if we know an import of a non-mutable global is always a particular global we can just inline the value everywhere. That's got nothing to do with alias regions, however, and by tying alias regions to this known-imports set we're unable to optimize some situations.

I don't mean to place more work on this PR, but I want to explain my confusion with the phrasing/naming here. The "XXX" here seems to indicate that this is a strong requirement that these sets must always be different from the functions set, but I don't feel that fully describes the situation.

Given all that, two questions:

_Originally posted by @alexcrichton in https://github.com/bytecodealliance/wasmtime/pull/14115#discussion_r3806460442_

view this post on Zulip Wasmtime GitHub notifications bot (Aug 19 2026 at 18:29):

fitzgen edited issue #14164:

Reading over this again I personally find this pretty confusing. I understand why this is the way it is, but in consider this I could imaging an alternative design where a module statically knows it imports a particular global and then has separate information on whether it's appropriate to use a statically known alias region for that global. Basically I could imagine a design where one axis of imports is "is it always this thing" and then another axis is "is that thing always known to all other modules as well".

One example optimization with this is that if we know an import of a non-mutable global is always a particular global we can just inline the value everywhere. That's got nothing to do with alias regions, however, and by tying alias regions to this known-imports set we're unable to optimize some situations.

I don't mean to place more work on this PR, but I want to explain my confusion with the phrasing/naming here. The "XXX" here seems to indicate that this is a strong requirement that these sets must always be different from the functions set, but I don't feel that fully describes the situation.

Given all that, two questions:

_Originally posted by @alexcrichton in https://github.com/bytecodealliance/wasmtime/pull/14115#discussion_r3806460442_

view this post on Zulip Wasmtime GitHub notifications bot (Aug 27 2026 at 16:57):

fitzgen added the enhancement label to Issue #14164.


Last updated: Aug 30 2026 at 09:07 UTC