Stream: wasmtime

Topic: Coordinating on resources work


view this post on Zulip Alex Crichton (Jun 14 2023 at 17:46):

@Timmy Silesmo hey I wanted to reach out about resources-related work, are you still looking to implement pseudo-resources and such in WIT and various other places in wasm-tools? I'm looking to ramp up on the "official" implementation of resources and to that extent I've gotten the time now to review https://github.com/bytecodealliance/wasm-tools/pull/1053 and have some ideas for changes but I don't want to interfere with your work too much if possible

Adds the initial pass for the parsing of resources and shared handles. Do we want to store resources as a TypeDefKind? I assume we might want to move this to an indexmap of resources and just store...

view this post on Zulip Alex Crichton (Jun 14 2023 at 18:30):

https://github.com/bytecodealliance/wasm-tools/pull/1068 is the first of a few changes I hope to make FYI

Previously T could be any arbitrary type which would allow parsing shared<shared<T>> for example but these are intended to only be used with one layer of resource handles so the contents of the bra...

view this post on Zulip Alex Crichton (Jun 14 2023 at 19:58):

and https://github.com/bytecodealliance/wasm-tools/pull/1070 is a follow-up to that

Note: this builds on #1068 This commit changes the representation of resources and their methods in the wit-parser crate as implemented originally in #1053. Previously methods related to a resourc...

view this post on Zulip Timmy Silesmo (Jun 15 2023 at 07:10):

Hello @Alex Crichton
Yes I'm still working on that. But I would be happy to sync up with you and hear your ideas :big_smile:


Last updated: Nov 22 2024 at 17:03 UTC