News for hackers. Stuff that matters.
Re:OCaml Resources (2006) by implicit on Sunday May 31, 2015 @11:43AM (#9634473)
OCaml/js_of_ocaml is presently my favourite AltJS stack.

OCaml syntax is super idiosyncratic and doesn't resemble anything, but, once you retrain your eyes, the underlying semantics are terrific.

js_of_ocaml imposes very minimal code overhead (6k-ish). Sourcemaps work great, and OCaml values are mapped into JS in a very straightforward way. You can read them in a JS debugger.

Ocsigen's lwt library is also the best "callback hell" solution I've found.

Re:OCaml Resources (2006) by lindig on Sunday May 31, 2015 @01:13PM (#9634775)
Could you recommend a project to look at? I'm familiar with OCaml but found Ocsigen as a whole impenetrable and would be interested in something more library than framework.
Re:OCaml Resources (2006) by implicit on Sunday May 31, 2015 @02:07PM (#9634943)
I don't, unfortunately, nor do I have any source code I can share. :(

The only advice I can offer is that the documentation actually is correct and pretty complete, but there's nevertheless something about its organization that makes it difficult to find what you're after.

In particular, start by reading this page carefully: http://ocsigen.org/js_of_ocaml/2.5/manual/library

It explains everything at a high level.

Re:OCaml Resources (2006) by mercurial on Sunday May 31, 2015 @02:45PM (#9635082)
You have opium [1], which is considerably lighter and more traditional (no Eliom stuff).

1: https://github.com/rgrinberg/opium

Re:OCaml Resources (2006) by rgrinberg on Sunday May 31, 2015 @03:18PM (#9635193)
I think the GP wanted something with js_of_ocaml. Nevertheless, as the author of Opium, I am grateful for your recommendation :)
Re:OCaml Resources (2006) by eatonphil on Monday June 01, 2015 @05:57AM (#9637561)
Just reposting from below, but if you want lightweight, take a look at OWebl[0]. It is by far the smallest with no Core dependencies. The API is familiar if you write Python or Ruby. Documentation is continually published and it remains one of the most up to date alternatives to Ocsigen.

[0] http://meetowebl.com

Re:OCaml Resources (2006) by jordwalke on Sunday May 31, 2015 @03:00PM (#9635145)
js_of_ocaml is very well supported as well - in my personal experience.