Stream: wit-bindgen

Topic: C# bindings?


view this post on Zulip Michael Ball (Apr 03 2023 at 14:49):

Is anyone aware of any work being done on C# bindings either guest or host?

view this post on Zulip Peter Huene (Apr 03 2023 at 19:28):

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.

view this post on Zulip Joel Dice (Apr 03 2023 at 19:58):

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.

view this post on Zulip Ralph (Apr 04 2023 at 09:50):

lemme reach into the gaping maw of the MegaCorp and see what's what.

view this post on Zulip Ralph (Apr 04 2023 at 10:41):

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.....

view this post on Zulip Timmy Silesmo (Apr 05 2023 at 18:28):

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:

view this post on Zulip Ralph (Apr 05 2023 at 18:33):

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!

view this post on Zulip Timmy Silesmo (Apr 05 2023 at 18:34):

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!

view this post on Zulip Michael Ball (Apr 06 2023 at 13:34):

That sounds excellent @Timmy Silesmo I would also be happy to assist.

view this post on Zulip Timmy Silesmo (Apr 06 2023 at 14:35):

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!

view this post on Zulip Scott Waye (Apr 19 2023 at 23:05):

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.

view this post on Zulip Timmy Silesmo (Apr 20 2023 at 19:53):

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 ?

view this post on Zulip Ralph (Apr 20 2023 at 19:53):

Kubecon means no

view this post on Zulip Ralph (Apr 20 2023 at 19:53):

But I will


Last updated: Dec 23 2024 at 12:05 UTC