Is anyone aware of any work being done on C# bindings either guest or host?
I'm not aware of any current work for C# bindings. There's a "WASI SDK for .NET" which compiles Mono in interpreter mode along with your .NET assemblies into a wasm core module; it could potentially be leveraged for building in wit-generated bindings to create a component model compatible core module, but as far as I know, no one has been looking into that.
FWIW, I'm working on a tool to convert Python apps to components (inspired by componentize-js
), and I'm taking the approach of generating the canonical ABI lifting and lowering code in Wasm using wasm-encoder
and calling into the CPython interpreter as needed to construct and deconstruct Python objects. My intention is that it could be reused for any language interpreter, including Mono. We'd still need a C# generator for type declarations, of course, but at least the lifting and lowering code would already be taken care of.
lemme reach into the gaping maw of the MegaCorp and see what's what.
Early response from the MegaCorp team: hey, that's a thing we should do, yes. Let's think about when we can help with that.....
Ralph said:
Early response from the MegaCorp team: hey, that's a thing we should do, yes. Let's think about when we can help with that.....
I would be happy to assist, we have a C# binding generator that we would be looking to contribute back in the coming couple of weeks. :smile:
that sounds just great. Lemme wire up the dotnet team -- maybe they can either help or at least have time to understand how to be involved in the process!
Ralph said:
that sounds just great. Lemme wire up the dotnet team -- maybe they can either help or at least have time to understand how to be involved in the process!
Sounds good!
That sounds excellent @Timmy Silesmo I would also be happy to assist.
MIchael Ball said:
That sounds excellent Timmy Silesmo I would also be happy to assist.
Sounds good! I will just take a pass and do some cleanup during the weekend then we can get it rolling!
I did some work on witx-bindgen for c# but haven't looked at it for a while - it was pretty early stuff, created a compilable class, but I don't remember if I actually got any types working, maybe string.
Sorry for the delay, some other stuff got in the way. But I should be able to pop it up on a GitHub repository early next week. Have you had a chance to catch-up with your people yet @Ralph ?
Kubecon means no
But I will
Last updated: Nov 22 2024 at 17:03 UTC