Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
1–10 of 31 posts
Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#2Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#3opam version is a little bit behind curve, use `opam pin add -y reactjs git@github.com:fxfactorial/ocaml-reactjs.git`
Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#4Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#5Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#6Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#7For those interested in this, https://github.com/bloomberg/bucklescript is an alternate (albeit new) OCaml to JS compiler. There's already talk about supporting JSX syntax: https://github.com/bloomberg/bucklescript/issues/162
Js_of_ocaml takes lowlevel bytecode from OCaml compiler, BuckleScript takes the highlevel rawlambda representation from OCaml compiler
Js_of_ocaml focuses more on existing OCaml eco-system(opam) while BuckleScript's major goal is to target npm
Js_of_ocaml and BuckleScript have slightly different runtime encoding in several places, for example, BuckleScript encodes OCaml Array as JS Array while js_of_ocaml requires its index 0 to be of value 0.
Both projects are improving quickly, so this can change in the future!
Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#8For those interested in this, https://github.com/bloomberg/bucklescript is an alternate (albeit new) OCaml to JS compiler. There's already talk about supporting JSX syntax: https://github.com/bloomberg/bucklescript/issues/162
Differences from js_of_ocaml (not an easy find) Js_of_ocaml takes lowlevel bytecode from OCaml compiler, BuckleScript takes the highlevel rawlambda representation from OCaml compiler Js_of_ocaml focuses more on existing OCaml eco-system(opam) while BuckleScript's major goal is to target npm Js_of_ocaml and BuckleScript have slightly different runtime encoding in several places, for example, BuckleScript encodes OCaml…
The name makes it impossible to research to find any blog posts or anything, but the familiar syntax alone might make it at least a first step for me.
Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#9Earlier quoted context omitted.
Differences from js_of_ocaml (not an easy find) Js_of_ocaml takes lowlevel bytecode from OCaml compiler, BuckleScript takes the highlevel rawlambda representation from OCaml compiler Js_of_ocaml focuses more on existing OCaml eco-system(opam) while BuckleScript's major goal is to target npm Js_of_ocaml and BuckleScript have slightly different runtime encoding in several places, for example, BuckleScript encodes OCaml…
I haven't really gotten into much ML yet, and I'm curious to hear what people knowledgeable with OCaml think about http://facebook.github.io/reason/ The name makes it impossible to research to find any blog posts or anything, but the familiar syntax alone might make it at least a first step for me.
Re: Compile OCaml to JavaScript, use ReactJS, bindings to ReactJS, several examples
#10Earlier quoted context omitted.
I haven't really gotten into much ML yet, and I'm curious to hear what people knowledgeable with OCaml think about http://facebook.github.io/reason/ The name makes it impossible to research to find any blog posts or anything, but the familiar syntax alone might make it at least a first step for me.
Speaking for myself, I think Reason is a very good thing and rewriting this in Reason or adding a Reason layer is a goal/TODO.
I know it's dumb that the thing holding me back from OCaml is the syntax, but after giving up on an Om project I've come to accept js will always be the greatest common denominator.