Js_of_ocaml – A compiler of OCaml bytecode to Javascript
ocsigen.org
ocsigen.org
Particularly, I really like their solution to async programming. I'm paraphrasing a bit, but it looks very nearly identical to an ordinary let ... in binding:
lwt result = xhr "http://example.com" in
lwt secondResult = xhr "this url will be fetched after the first one completes"
and thirdResult = xhr "this url will be fetched in parallel with the second"
in (* use result, secondResult, and thirdResult here *)
This desugars into a nested callback structure having the right shape. Step(
function() {
getURL1(this.parallel());
getURL2(this.parallel());
getURL3(this.parallel());
},
function(err, res1, res2, res3) {
}
);
[0] https://github.com/creationix/stepNote this is API reference documentation and not a thorough tutorial on how to use the library, although the js_of_ocaml manual looks good. In this case, it does help to be familiar with how OCaml libraries are typically organized and documented. Are you looking for a quickstart-type walkthrough?
Usability matters, even if it is something as simple as font choices and colors. If you make it hard(er) to use a product, you've created a barrier to entry.