Stream: git-wasmtime

Topic: wasmtime / issue #734 [wasi-common] Re-design of generate...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 16:17):

pchickey commented on issue #734:

wiggle exists now! its neat to go back and remember the bad old days

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 16:17):

pchickey closed issue #734:

wig presently generates wasi-common types from witx descriptions of the standard. This is a great start, but there are a handful of ways in which the design of wasi-common is difficult to automatically generate more code for. I want to generate as much of the boilerplate for each hostcall as I can, but before we get there, we need to sort out some difficulties with datatypes.

This proposal seeks to redesign we manage 1. validating and chasing pointers into guest memory, ensuring that all references into guest memory are safe, and 2. validating enum and flag values.

We currently depend on some hand-written enc_/dec_ functions to serialize and deserialize some types to and from guest memory. I want to replace those with automatically generated implementations without losing any of the zero-copy optimizations we currently have.

Generated Types

There are two purposes for generated types:

view this post on Zulip Wasmtime GitHub notifications bot (Jun 16 2021 at 16:17):

pchickey edited a comment on issue #734:

wiggle has been done for a while now! its neat to go back and remember the bad old days


Last updated: Nov 22 2024 at 16:03 UTC