Hi, I am the lead of this project, you can try it now with our online IDE, <a href="https://try.moonbitlang.com" rel="nofollow noreferrer">https://try.moonbitlang.com</a> (F5 to run)<p>The docs are available <a href="https://github.com/moonbitlang/moonbit-docs">https://github.com/moonbitlang/moonbit-docs</a>, the compiler would be publicly available when we reach the beta status (expected to be the end of Q2 in 2024).<p>Feel free to ask me any question
The site compares it to Rust and Go but to me the comparison is AssemblyScript. It’s also WASM-native and new with relatively little ecosystem around it. But compared to Moonbit it’s a familiar language to anyone that’s used TypeScript. So why use Moonbit over AssemblyScript?
Having `func` keyword for a top function definition, but `fn` keyword for a nested function definition is evil. It should be either `func` or `fn` independently of a particular context.
I'm excited to see a modern GCed language that is targetting WASM. Closest comparison is probably Grain (<a href="https://grain-lang.org/" rel="nofollow noreferrer">https://grain-lang.org/</a>).
"The development of an entire language toolchain, previously spanning years or even a decade, has been streamlined through our accrued experience and the establishment of a dedicated talented team from Moonbit's inception. We expect Moonbit to reach beta status by the end of Q2 of 2024, indicating a phase of relative stability, minimal bugs, and a robust Foreign Function Interface (FFI) for interactions with the Wasm host. We will make the source code publicly available once we reach beta quality. Our strategic plans involve Wasm GC integration for Wasm 2.0 and our homebrewed GC for Wasm 1.0, in line with Wasm proposals."<p>so <a href="https://github.com/moonbitlang/">https://github.com/moonbitlang/</a> is empty for now
I see from comments here that Moonbit has a GC. However, the resulting binary for Fibonacci is 253 bytes, which presumably does not include a GC. Is that using the proposed WASM-native GC, or is the build system smart enough to omit the GC since it’s not needed here?
This makes me think about Grain [0] - another Wasm-first programming language. This could be nice to add Grain to the comparison.<p>[0] <a href="https://grain-lang.org/" rel="nofollow noreferrer">https://grain-lang.org/</a>
About Team links to a edu.cn page in Chinese. It seems a university project but I can't confirm. The Join Us page is another Chinese one. The examples on the home page seem to require JavaScript from baidu.com.
Is this project associated with Meta? The creator Hongbo Zhang worked at Meta on some of their open source programming language projects (ReasonML and Flow). According to LinkedIn, he's still employed there.
No license.<p><a href="https://github.com/moonbitlang/moonbit-docs/">https://github.com/moonbitlang/moonbit-docs/</a>
in an era where there are too many choices for writing things, if you don't show how your language is different and/or better compared to other languages which almost definitely more popular, then you'll lost before you start. I mean, show some example and I'll decide if it's worth to try. for this language? sorry, I'm not sold in the slightest.
Well. I am very excited by this. We've built our front end in F# with Fable and our backend/engine is in Rust which compiles to WASM.<p>The WASM story came second, and it'd be really cool to eventually lean into something like this, particularly given the much faster compilation time.<p>Have followed your work on Rescript, and excited to see that this is where you've taken things.
I like it a lot tbh b/c it looks a lot like Go.<p>Unfortunately Go is unusuable as wasm target for browsers due its huge binary. The browser needs a lot of time to download and parse it. Not to mention it starts to crash if your app is large enough(i.e a complete SPA in Go only).
Looks quite nice, but you should add a banner to the load screen for <a href="https://try.moonbitlang.com" rel="nofollow noreferrer">https://try.moonbitlang.com</a> that it will take quite a while to load and the page is not broken.
I’ve been considering trying my hand at a C-like WASM language, with most features mapping directly to WASM instructions. Surprised no one’s done something like that yet. Very cool tech
I tried clicking through to find some syntax and got to this page[0] which seems to show things but the text is illegible on a dark background (something to do with picking up a dark mode setting on my device maybe?)<p>[0] <a href="https://moonbitlang.com/docs/syntax/" rel="nofollow noreferrer">https://moonbitlang.com/docs/syntax/</a>