Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] gen_js_api: generating Javascript bindings from OCaml interfaces
@ 2015-04-27 17:38 Alain Frisch
  2015-04-27 20:35 ` Andrew Herron
  0 siblings, 1 reply; 3+ messages in thread
From: Alain Frisch @ 2015-04-27 17:38 UTC (permalink / raw)
  To: caml-list

Dear all,

LexiFi is currently experimenting with the js_of_ocaml compiler in order 
to create some browser-side applications in OCaml. In this context, we 
have started a new project called gen_js_api which aims at simplifying 
the creation of bindings to Javascript libraries.

The approach is quite different from js_of_ocaml's native FFI (which 
relies on language extensions). In gen_js_api, authors of bindings 
define the expected OCaml interface, annotated with light attributes to 
define the actual mapping to Javascript; and client of generated 
bindings work with native OCaml types, without requiring any language 
extension, nor any knowledge of how js_of_ocaml represents OCaml values 
in Javascript.

gen_js_api has reached a state where actual bindings can be written, and 
it is reasonably well documented. It is now a good time to look at the 
project if you're interested in this topic. Of course, feel free to 
comment on the project or contribute to it.

Project page:

   https://github.com/alainfrisch/gen_js_api


Alain

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-27 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-27 17:38 [Caml-list] gen_js_api: generating Javascript bindings from OCaml interfaces Alain Frisch
2015-04-27 20:35 ` Andrew Herron
2015-04-27 20:42   ` Andrew Herron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox