Live data from Hacker News

Moonbit: Fast, compact and user friendly language for WebAssembly

moonbitlang.com

11–20 of 162 posts

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

#11
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 the website.

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

#13
post #8

Earlier quoted context omitted.

fwiw this just says "Connecting..." with the 3x3 dots for as long as my patience lasted

With a bit more patience you would have seen that it loads up VSCode for web, which takes a while.

Wow a full 60 seconds though? Loads in a few seconds on github.dev

Loads immediately on mobile though

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

#17
post #15

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.

Demos still work with umatrix plugin on. It requires script from unpkg and msecnd(microsoft domain), but not baidu.

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

#19
post #18

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

I would say Grain is very close to Moonbit. They are both MLs for WASM. AssemblyScript is not. No pattern matching, not expression oriented, no ADTs AFAICT, etc.
Post reply on HN