Stream: general

Topic: [component-model] resource rep and instrinsics


view this post on Zulip soqb (Aug 05 2023 at 09:56):

is there anywhere in the spec that guarantees that resources defined on the host have rep: u32 (either implicitly or explicitly)?

the canonical abi declares here that the resource.new and resource.rep intrinsics work only on locally-defined (which i take to mean defined on the guest) resources.

view this post on Zulip Lann Martin (Aug 05 2023 at 14:14):

Resources don't have a defined host representation per se, but resource handles are lowered to u32s for core modules.

view this post on Zulip Lann Martin (Aug 05 2023 at 14:17):

If you can give more context for your question there might be a more useful answer.


Last updated: Oct 23 2024 at 20:03 UTC