Live data from Hacker News

Moonbit: Fast, compact and user friendly language for WebAssembly

moonbitlang.com

21–30 of 162 posts

Re: Moonbit: Fast, compact and user friendly language for WebAssembly

#21
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?)

[0] https://moonbitlang.com/docs/syntax/

Re: Moonbit: Fast, compact and user friendly language for WebAssembly

#24
post #9

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?

Because Moonbit is a modern language, while AssemblyScript is carrying forward the mistakes of the past. For example, Moonbit supports pattern matching and most language constructs are expressions. AS doesn't have pattern matching and consists primarily of statements. Moonbit has algebraic data types; it's not clear to me that AS does. There might be other differences at runtime, but it's difficult to tell from just…

Go is also an old-school statement based language though.

Re: Moonbit: Fast, compact and user friendly language for WebAssembly

#25
post #18

So why bother with this, when compared against AssemblyScript and Grain, both more mature and existing communities?

Grain miserably fails rule 0 of programming language websites - show me the language! They expect you to go through installation, IDE setup, hello world before they tell you anything about it.

The front page doesn't even tell you anything about its unique features. This Moonbit page is a million times better. I might actually try it. I'm not going to try Grain. Why would I?

Re: Moonbit: Fast, compact and user friendly language for WebAssembly

#29
post #18

So why bother with this, when compared against AssemblyScript and Grain, both more mature and existing communities?

Rust-like features and performance with Go-like usability are big selling points.

Also we don't known how it will be licensed, but if it's proprietary that could also be a selling point with companies that won't touch Grain's LGPL license.

Re: Moonbit: Fast, compact and user friendly language for WebAssembly

#30
Hi, I am the lead of this project, you can try it now with our online IDE, https://try.moonbitlang.com (F5 to run)

The docs are available https://github.com/moonbitlang/moonbit-docs, the compiler would be publicly available when we reach the beta status (expected to be the end of Q2 in 2024).

Feel free to ask me any question

Post reply on HN