Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hongbo_zhang
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
61.
▲
by
hongbo_zhang
10y ago
OCaml compiler is designed in an extremely modular style. Actually you can design any syntax for OCaml (including lisp style) and produce the OCaml data structure, then it should work with BuckleScript, that's how Reason works
62.
▲
by
hongbo_zhang
10y ago
yes, we will have this warning when upgraded into OCaml 4.04 Note that optimizing mutual recursive call is a very hard problem it needs VM level support
63.
▲
by
hongbo_zhang
10y ago
yes, it has a conflict with existing project, so it was renamed later
64.
▲
by
hongbo_zhang
10y ago
Definitely, almost half the time is spent in polishing the FFI. Check out the FFI section in the Manual. OCaml's type system is so powerful, that it can model most js libraries without writing JS stubs code
65.
▲
by
hongbo_zhang
10y ago
as long as it is vanilla OCaml (no c stubs), it should be fine
66.
▲
by
hongbo_zhang
10y ago
you should checkout reason, they are working on bindings using bucklescript. So it is not a dream, people probably can write react app using ocaml very soon
67.
▲
by
hongbo_zhang
10y ago
yes, it is actually easier to optimize since you have more herusitics. both compiled to js, so yes, it can work together : )
68.
▲
by
hongbo_zhang
10y ago
btw, we also have native uncurried calling convention support to make callback even more efficient
69.
▲
by
hongbo_zhang
10y ago
it is generate more readable JS. and we have spent lots of time in polishing the FFI to make OCaml/JS interaction easier
70.
▲
by
hongbo_zhang
10y ago
we have an intern this summer create bindings for our internal JS stack. we have some internal stuff running on server side in OCaml which we wish to move to client side. I would say many thanks to my boss and employer's great support
71.
▲
by
hongbo_zhang
10y ago
we still reuse ocaml's compiler tool chain. we are compiling ocaml's lambda into JS. so yes, we will support modular implicit once it is landed
72.
▲
by
hongbo_zhang
10y ago
I am one of the authors of BuckleScript, you can try BuckleScript in the browser: http://bloomberg.github.io/bucklescript/js-demo/ Click Examples see how the JS code generated, questions are welcome!