Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] ANN: ocamljs 0.3

10 views
Skip to first unread message

Jake Donham

unread,
Aug 26, 2010, 5:44:56 PM8/26/10
to OCaml List
Hi list,

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

Sylvain Le Gall

unread,
Aug 27, 2010, 5:54:21 AM8/27/10
to caml...@inria.fr
Hello,

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

Dario Teixeira

unread,
Aug 27, 2010, 10:44:51 AM8/27/10
to caml...@yquem.inria.fr, ocs...@sympa.mancoosi.univ-paris-diderot.fr, Mihamina Rakotomandimby
Hi,

> 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

bluestorm

unread,
Aug 27, 2010, 11:38:45 AM8/27/10
to Dario Teixeira, caml...@yquem.inria.fr, ocs...@sympa.mancoosi.univ-paris-diderot.fr
[nacl-ocaml], wich patches the ocaml compiler to produce native code
compatible with [Google Native Client] technology (verified native code for
sandboxed environments such as browsers) may also be relevant here.

[nacl-ocaml] http://code.google.com/p/nacl-ocaml/
[Google Native Client] http://code.google.com/p/nativeclient/

Christophe Papazian

unread,
Sep 5, 2010, 9:05:43 AM9/5/10
to OCaml List
Dear Jake,

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 :

Jake Donham

unread,
Sep 7, 2010, 12:58:12 PM9/7/10
to Christophe Papazian, OCaml List
On Sun, Sep 5, 2010 at 6:05 AM, Christophe Papazian
<christoph...@gmail.com> wrote:
> 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).

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.

0 new messages