wit-bindgen icon indicating copy to clipboard operation
wit-bindgen copied to clipboard

Proposal: Add support for the MoonBit programming language

Open gmlewis opened this issue 1 year ago • 4 comments

A nice addition would be to add support for the MoonBit programming language.

I would like to support this effort if possible with the understanding that my Rust skills are basically at the newbie level.

gmlewis avatar Jun 24 '24 02:06 gmlewis

I discovered that work had already been started on this here: https://gitee.com/fantix/componentize-mbt so I forked this repo and translated it to English here: https://github.com/gmlewis/componentize-mbt

Next, I'll attempt to understand and run the examples and see if I can make it compatible with the latest version of the MoonBit compiler.

gmlewis avatar Jun 24 '24 13:06 gmlewis

@gmlewis I have an implementation that is almost complete https://github.com/peter-jerry-ye/wit-bindgen/tree/moonbit

peter-jerry-ye avatar Jul 30 '24 03:07 peter-jerry-ye

Wow, @peter-jerry-ye - your branch looks amazing!!!

One question - I noticed that in some places you use moon-bit and others you use moonbit - would it be possible to always refer to it as the latter so that we don't have to remember when to add the hyphen?

gmlewis avatar Jul 31 '24 00:07 gmlewis

@gmlewis Updated. moon-bit is just the plain snake-case version of MoonBit but yes it does not really make sense. Also we will add type Float soon so that we can cooperate with APIs with f32 (e.g. spin's AI interface). Then we may conclude the project.

peter-jerry-ye avatar Jul 31 '24 03:07 peter-jerry-ye

I believe this is now in-tree, so I'm going to close this

alexcrichton avatar Mar 29 '25 04:03 alexcrichton