Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hongboz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
hongboz
10y ago
For people who want to do typed functional programming on JS platform, there is another candidate: BuckleScript for OCaml: https://bloomberg.github.io/bucklescript/js-demo/ The compiler is compiled into JS and nat
2.
▲
by
hongboz
10y ago
For bucklescript, the performance is excellent, better than handwritten JS: https://github.com/bloomberg/bucklescript#more-examples-1
3.
▲
by
hongboz
10y ago
FYI: you can try bucklescript compiler in browser, and see generated JS code side by side instantly https://bloomberg.github.io/bucklescript/js-demo/
4.
▲
by
hongboz
10y ago
Hi, there is a link here: https://github.com/bloomberg/bucklescript/wiki/Difference-fr...
5.
▲
by
hongboz
11y ago
List.fold_left is compiled into a while loop in ocamlscript. The main reason that I used for loop is that the generated code is the same as hand written js, so the comparison is more reasonable Edit: I am a practical programmer, I am in fav
6.
▲
by
hongboz
11y ago
Hi, thanks for your interest in it. This project has been released to exchange some ideas and collect feedback from the OCaml and JavaScript communities. It is still in an very early stage and more like research projects though we already h
7.
▲
by
hongboz
11y ago
self tail call is supported. mutual recursive tailcall can be done partially, but there is not a strong guarantee
8.
▲
by
hongboz
11y ago
actually we have great relationship with Lexifi, and we did exchange some ideas about ocamlscript before, I think mostly we are on the same page, there is enough room for two compilers :-)
9.
▲
by
hongboz
11y ago
Author here, just created a new account : ). I think ocamlscript is complementary to js_of_ocaml, actually it is inspired from js_of_ocaml. For those who like to write ocaml only application, js_of_ocaml is perfect, ocamlscript is designed