Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hongbo_zhang
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
hongbo_zhang
3y ago
https://twitter.com/moonbitlang/status/1704103046849110225 There is a video demo here, editing, compilation, reloading is instant
32.
▲
by
hongbo_zhang
3y ago
The source code will be publicly available when we reach beta status(things are moving too fast right now).
33.
▲
by
hongbo_zhang
3y ago
> Will things change as WebAssembly evolves? Yes, but we also plan to support old Wasm versions, like 1.0 etc. Note Moonbit is designed in a modular way that it should be easy to target different backends (JS, Native). Currently we are
34.
▲
by
hongbo_zhang
3y ago
`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.
35.
▲
by
hongbo_zhang
3y ago
Yes, it will be my last project before retirement, we have a very ambitious goal and long term vision.
36.
▲
by
hongbo_zhang
3y ago
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
37.
▲
by
hongbo_zhang
3y ago
Not strictly necessary, we are not decided on it. For func the annotation is required, while fn does not need any type annotation
38.
▲
by
hongbo_zhang
3y ago
Thanks for your interest. Note Moonbit is a language/platform for industrial usage(not an academic language), I contributed to OCaml so that I am familiar with the good/bad parts of a type system. Its aim is to build fast and run
39.
▲
by
hongbo_zhang
3y ago
It is in an very early stage, but I expect it will be free to use as normal users. To be honest, we are also thinking about how to make the project more sustainable in the long term, the project is maintained by a team of professionals who
40.
▲
by
hongbo_zhang
3y ago
It depends on how you are measuring maturity. Moonbit is indeed only developed for less than a year(very fast moving), but it already has a full working IDE, optimizing compiler, fast build system and experimental package manager. We have a
41.
▲
by
hongbo_zhang
3y ago
Sorry, we are fixing that, should be better later
42.
▲
by
hongbo_zhang
3y ago
The docs are available here: https://github.com/moonbitlang/moonbit-docs You can also try our online IDE https://try.moonbitlang.com
43.
▲
by
hongbo_zhang
3y ago
Yes. Moonbit is heavily influenced by BuckleScript/ReScript. We learned a lot from our previous experience, that's why we are shipping our IDE even in the pre-alpha release. We also learned to how to make type checking fast and p
44.
▲
by
hongbo_zhang
3y ago
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 p
45.
▲
by
hongbo_zhang
6y ago
Hi,some minor corrections. ReScript is more correct than scala, ReScript's type system(essentially borrowed from OCaml) is sound while scala is unsound. > Using `undefined` to represent `None` means that you cannot tell the differen
46.
▲
Make generated JavaScript Inline Caching friendly
(reasonml.org)
1 points
by
hongbo_zhang
6y ago
|
0 comments
47.
▲
by
hongbo_zhang
6y ago
Hi, the author of BuckleScript here. JSOO and BuckleScript has very different goals, the former focuses on the compatibility with native, while the latter focuses on the interop and optimal perf on JS backend. The progress of BuckleScript i
48.
▲
by
hongbo_zhang
7y ago
This is ugly
49.
▲
by
hongbo_zhang
9y ago
Not really. You can model complex js data type as abstract type, and only provide functions needed
50.
▲
by
hongbo_zhang
9y ago
Hi, the main author of BuckleScript here, below is a simple comparison with TypeScript (it may be biased): - Pros of TypeScript - Designed for JS, easy inter-operate with JS - A much larger community - Nice integration with VSCode
51.
▲
Mario Game ported in BuckleScript: 7K generated Js, 0.5s to build
(github.com)
20 points
by
hongbo_zhang
9y ago
|
1 comments
52.
▲
by
hongbo_zhang
10y ago
Indeed, fable is a very neat project, but to be honest, it is not as mature as BuckleScript at this time. For example, it takes around 20~80ms to compile a single file for BuckleScript, while Fable would talk 10x more to compile. Its genera
53.
▲
by
hongbo_zhang
10y ago
For web developers who are looking for an industrial strength functional language instead of JS, OCaml probably has the best story here. Actually it has two OCaml->JS compilers of very high quality The first one, js_of_ocaml, could boots
54.
▲
by
hongbo_zhang
10y ago
Yes, we implement the whole language, except a very few places that is hard to due to the limitation of JS runtime. Exactly, client side/ server side in a single language. People are working on porting the Elm architecture to BuckleScr
55.
▲
by
hongbo_zhang
10y ago
Unlike scalajs, bucklescript maps one OCaml module to one Js module, it is like coffecscript/typescript compilation model, there is no tax on the code size. You can write very clean code, here is an example of avl tree in ocaml compile
56.
▲
by
hongbo_zhang
10y ago
It is very cool to see different type safe Alt-JS compared, I made a gist here which includes Elm, PureScript, BuckleScript and ClojureScript, add your favorite one here: https://gist.github.com/bobzhang/9f27a5a0bd730e8
57.
▲
by
hongbo_zhang
10y ago
`-safe-string` is the future. Any compiler can not guarantee its correctness if you write crazy code , `Obj.magic` here. I am not interested in core personally, but I don't see any reason why it will not work if it is vanilla OCaml
58.
▲
by
hongbo_zhang
10y ago
to be precise, Js_of_ocaml does not respect OCaml memory model either, think about float. But I think Js_of_ocaml is really great, BuckleScript and Js_of_ocaml have different use cases.
59.
▲
by
hongbo_zhang
10y ago
If you like Elm, you will like Buckle too! we have a much faster compiler, and you can compile it into native code as a bonus : )
60.
▲
by
hongbo_zhang
10y ago
Thanks! I have some experience in ocaml compiler internals, I reimplemented camlp4 called Fan. Yes, I made a prototype in 2 weekends and showed it to my boss and got very good feedback
More ›