component-model icon indicating copy to clipboard operation
component-model copied to clipboard

Define Resource Subtyping

Open esoterra opened this issue 3 years ago • 4 comments
trafficstars

If WASI is going to use Resource Subtyping, it should probably be rendered here first so that implementations can conform to an official definition/specification of how they work.

esoterra avatar Jun 30 '22 19:06 esoterra

Yes, you're right. Technically, all existing resource/handle support in wit is ahead of the spec here; the plan was to add resources+handles right after the value types, but then async/streaming got priority boosted. This presentation covers a lot of the original design thinking about subtyping (particularly around dynamic casts), but it's pre-canonical-ABI and needs to be updated. But yes, we need to get some basic skeleton sketches of resources/handles/subtyping here ASAP.

lukewagner avatar Jun 30 '22 20:06 lukewagner

but then async/streaming got priority boosted.

where can we look to find discussion or work on this matter? thanks luke.

rektide avatar Jul 01 '22 03:07 rektide

where can we look to find discussion or work on this matter?

The proposal for async is here: https://docs.google.com/presentation/d/1MNVOZ8hdofO3tI0szg_i-Yoy0N2QPU2C--LzVuoGSlE

Liamolucko avatar Jul 01 '22 04:07 Liamolucko

Also, the third-and-final presentation of these slides will be in the next WASI meeting.

lukewagner avatar Jul 01 '22 19:07 lukewagner