Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Andrew Herron <thespyder@programmer.net>
To: Alain Frisch <alain.frisch@lexifi.com>, caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] gen_js_api: generating Javascript bindings from OCaml interfaces
Date: Mon, 27 Apr 2015 20:35:13 +0000 (UTC)	[thread overview]
Message-ID: <25B292673A962002.5D4A8FF2-991D-4F1D-8B0E-BA395EBFB8B3@mail.outlook.com> (raw)
In-Reply-To: <553E7400.60702@lexifi.com>

[-- Attachment #1: Type: text/plain, Size: 1552 bytes --]

That looks very cool, particularly the @@js preprocessor. I will hopefully have time to try it in the near future.
The oscigen list might be interested to hear about this as well :)






On Mon, Apr 27, 2015 at 10:38 AM -0700, "Alain Frisch" <alain.frisch@lexifi.com> wrote:










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

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

[-- Attachment #2: Type: text/html, Size: 2004 bytes --]

  reply	other threads:[~2015-04-27 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-27 17:38 Alain Frisch
2015-04-27 20:35 ` Andrew Herron [this message]
2015-04-27 20:42   ` Andrew Herron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=25B292673A962002.5D4A8FF2-991D-4F1D-8B0E-BA395EBFB8B3@mail.outlook.com \
    --to=thespyder@programmer.net \
    --cc=alain.frisch@lexifi.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox