Stream: wasmtime

Topic: 2022 plans for GC, exceptions and typed funcref proposals


view this post on Zulip Sébastien Deleuze (Mar 14 2022 at 17:53):

Hi, I am trying to identify what is missing in Wasmtime to be able to run .wasm files generated by Kotlin/Wasm (currently in early stage, only V8 is supported).

Kotlin/Wasm requires the following proposals:

I would be interested to know for the unsupported proposals if related work is already planned in 2022 (especially outside of Cranelift) and the areas where specific help would be welcomed.

I've been interested in having the Exception Handling proposal supported in Wasmtime, so I looked into possible ways to implement it. There's been some prior discussion in issues #2049 and ...
RFC process for Bytecode Alliance projects. Contribute to bytecodealliance/rfcs development by creating an account on GitHub.
In wasmtime, GC tracing of reftype pointers currently works by using libunwind to iterate over stack frames, fetching a stackmap for each relevant PC and finding the stack slots with live pointers....
RFC process for Bytecode Alliance projects. Contribute to bytecodealliance/rfcs development by creating an account on GitHub.

view this post on Zulip Till Schneidereit (Mar 15 2022 at 12:23):

Hi Sébastien :wave: Very exciting to hear that you're looking into enabling Kotlin on Wasmtime!

We're definitely interested in supporting this work, and I'll say a few more things about the specific features below. But at a higher level, it might be good to join our biweekly Wasmtime calls and put this on the agenda there, so we can discuss how best to proceed. We'd gladly facilitate work on all of these, and help in whichever way we can :smile:

On the specific required but not-yet-supported proposals:

Standalone JIT-style runtime for WebAssembly, using Cranelift - wasmtime/meetings/wasmtime at main · bytecodealliance/wasmtime

view this post on Zulip Sébastien Deleuze (Mar 15 2022 at 17:26):

Thanks for your feedback, I will join the biweekly meeting shortly to discuss that with you and the wider team.

view this post on Zulip Sébastien Deleuze (Apr 11 2022 at 10:56):

FYI I have created this related feature request on Binaryen side (GC to non GC conversion) since that would enable Kotlin/Dart support by "just" implementing exception handling support in Wasmtime. Feel free to add your :+1: in the GitHub issue if you like the idea.

Hi, As far as I know, a few GCed languages/platform are working on WASM support by leveraging the GC proposal: Dart Kotlin C#/.NET (even if they seems capable to generate non GC output) For now onl...

Last updated: Nov 22 2024 at 17:03 UTC