Live data from Hacker News

Moonbit: Fast, compact and user friendly language for WebAssembly

moonbitlang.com

61–70 of 162 posts

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

#61

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

Nice demo, I tried some of the examples and tweaked to see what happens. I noticed no mention of UTF-8 and I tried to add some arabic letters and other RTL letters and it printed garbage chars.

Are langs other than english supported?

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

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

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

#64
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?

They assume anyone is clever enough to find the guide on their site.

https://grain-lang.org/docs/guide/hello_world

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

#65
post #60

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

Is having a dedicated fn keyword necessary? I mean, what’s the fundamental difference between a func and a fn ?

Not strictly necessary, we are not decided on it.

For func the annotation is required, while fn does not need any type annotation

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

#66

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

Nice demo, I tried some of the examples and tweaked to see what happens. I noticed no mention of UTF-8 and I tried to add some arabic letters and other RTL letters and it printed garbage chars. Are langs other than english supported?

Yes, it is supposed to be supported, you are welcome to file an issue on github to add arabic letters https://github.com/moonbitlang/moonbit-docs

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

#68

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

I couldn't see any reference to default parameters. Are they a thing?

I would quite like the ability to have something like

func makeBox(width: Int = 100, height: Int = width) -> BoxThing

everything else I've seen, I like the look of. One of my litmus tests for languages is to have the ability to make decent Vector types, tuples and operator overloading should perform that function nicely.

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

#69
post #68

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

I couldn't see any reference to default parameters. Are they a thing? I would quite like the ability to have something like func makeBox(width: Int = 100, height: Int = width) -> BoxThing everything else I've seen, I like the look of. One of my litmus tests for languages is to have the ability to make decent Vector types, tuples and operator overloading should perform that function nicely.

`default parameters` and some local features will be elaborated later on. We make the big(non local) features first and add various nice sugars step by step.

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

#70

What is your long term plan? Do you intend to support this language indefinitely?

Yes, it will be my last project before retirement, we have a very ambitious goal and long term vision.

Thank you, that really helps. Too many abandonware languages already. If you are close to retirement it might be a good idea to get a governance structure in place that survives your retirement. That way the language isn't tied to you personally.
Post reply on HN