Stream: git-wasmtime

Topic: wasmtime / PR #4370 support enums with more than 256 vari...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2022 at 01:30):

dicej opened PR #4370 from component-type-derive-many-variants to main:

This addresses #4361. Technically, we now support up to 2^32 variants, which is
the maximum for the canonical ABI. In practice, though, the derived code for
enums with even just 2^16 variants takes a prohibitively long time to compile.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2022 at 02:11):

dicej updated PR #4370 from component-type-derive-many-variants to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2022 at 02:15):

dicej updated PR #4370 from component-type-derive-many-variants to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 03 2022 at 03:05):

dicej updated PR #4370 from component-type-derive-many-variants to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:08):

dicej created PR review comment:

It just occurred to me that this could be an impl TryFrom<usize> for DiscriminantSize. Let me know if you want me to change it.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:08):

dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:36):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:36):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:36):

alexcrichton created PR review comment:

This is probably due to PartialEq/Eq/etc or just random slow compiler internals. In any case this is fine and I think, as you mentioned, it's ok to skip a test for now.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 05 2022 at 15:36):

alexcrichton merged PR #4370.


Last updated: Nov 22 2024 at 17:03 UTC