I am happy to announce version 0.3 of ocamljs. Ocamljs is a system for
compiling OCaml to Javascript. It includes a Javascript back-end for
the OCaml compiler, as well as several support libraries, such as
bindings to the browser DOM. Ocamljs also works with orpc
(http://jaked.github.com/orpc) for RPC over HTTP, and froc
(http://jaked.github.com/froc) for functional reactive browser
programming.
Changes since version 0.2 include:
* support for OCaml 3.11.x and 3.12.0
* jQuery binding (contributed by Dave Benjamin)
* full support for OCaml objects (interoperable with Javascript objects)
* Lwt 2.x support
* ocamllex and ocamlyacc support
* better interoperability with Javascript
* many small fixes and improvements
Development of ocamljs has moved from Google Code to Github; see
* project page: <http://github.com/jaked/ocamljs>
* documentation: <http://jaked.github.com/ocamljs>
* downloads: <http://github.com/jaked/ocamljs/downloads>
I hope you find this work useful.
Jake
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
On 27-08-2010, Mihamina Rakotomandimby <miha...@gulfsat.mg> wrote:
>> ja...@donham.org :
>>I am happy to announce version 0.3 of ocamljs. Ocamljs is a system for
>>compiling OCaml to Javascript.
>
> What are the differences between:
> - OBrowser (http://www.pps.jussieu.fr/~canou/obrowser/tutorial/)
OBrowser seems to be replaced by Js_of_OCaml
> - Js_of_OCaml (http://ocsigen.org/js_of_ocaml/overview)
> - OcamlJS
Have a look at:
http://ambassadortothecomputers.blogspot.com/2010/08/ocamljs-03.html
Regards,
Sylvain Le Gall
> What are the differences between:
> - OBrowser (http://www.pps.jussieu.fr/~canou/obrowser/tutorial/)
> - Js_of_OCaml (http://ocsigen.org/js_of_ocaml/overview)
> - OcamlJS
These three projects have one goal in common -- running Ocaml code
inside a browser -- but approach it differently:
- O'Browser implements in Javascript an interpreter of Ocaml bytecode
(the code produced by ocamlc).
- js_of_ocaml compiles Ocaml bytecode into Javascript.
- ocamljs is a new backend for the Ocaml compiler that translates
Ocaml's intermediate representation (the "lambda" representation)
into Javascript.
Hope that clarifies things a bit,
Dario Teixeira
[nacl-ocaml] http://code.google.com/p/nacl-ocaml/
[Google Native Client] http://code.google.com/p/nativeclient/
I was playing with ocamljs. It's very nice to use ocaml to
produce javascript ! I have a question : in ocamljs, there is a support
for style objects. However, I do not see how to use them usefully
because
there don't seem to have some set_style method anywhere (but I found
the get_style).
Did I miss something ?
Thank you,
Christophe
Le 26 août 10 à 23:44, Jake Donham a écrit :
Thanks for trying ocamljs. The Dom module just wraps (part of) the
browser DOM API, and in that API the style property is read-only (see
http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-htmlelementcss).
You have to set properties on the style object for an element rather
than setting the style property of the element.