Adrian Cole

Results 2046 comments of Adrian Cole

I think what you'll want to look at are.. * allocation (for the string and how to pass it, etc) https://github.com/tetratelabs/wazero/tree/main/examples/allocation/rust * multiple values (how to return multiple things) https://github.com/tetratelabs/wazero/tree/main/examples/multiple-results...

I don't think rust supports multiple values, so your signature might look like this. Note you probably don't need to declare a i64 for the errorno a smaller i32 is...

@clarkmcc gotcha. here are two ideas: * If you are using a null-terminated string (Cstring) you can pack results together (hi bits are the message offset, low bits are the...

@clarkmcc I think we still owe (many things including) an error handling example, as using only numbers and memory is indeed a bit lacking. The code you accumulate to pass...

PS for this to work, we need to default to a cancelcontext or wrap any incoming context in a cancelcontext. There's some expense to doing that as you could imagine...

PS I noticed that go's source rarely guards on `ctx.Err()` even if blocking on `ctx.Done()` is frequent. Probably need to think through why this isn't used much inside Go itself,...

howdy, and apologies about neglect on your question earlier. Both of us had looked at it, started to think and became distracted by personal things and international travel. I promised...

@dranikpg thanks so much for helping on this, we're going to have our first beta at the end of the month and it is awesome you are making it more...

If anyone currently doing plugin stuff want to brain dump into here some thoughts, please do so! cc @pkedy @pims @anuraaga @mathetake @knqyf263 @inkeliz I think one thing a lot...

ps I totally agree that an SDK approach seems to be the better plan, at least to start, with wasm plugin arch, I spoke about this last week in [my...