caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Spiros Eliopoulos <seliopou@gmail.com>
To: OCaml <caml-list@inria.fr>
Subject: [Caml-list] ANN: ocaml-d3
Date: Mon, 28 Sep 2015 13:38:21 -0400	[thread overview]
Message-ID: <CAEkQQg+c9Q-j4Ucoy63EwcM9ZLQcWDZSodmdfduh9_rnk36eqw@mail.gmail.com> (raw)

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

Hey there lists,

I'm happy to announce the initial release of ocaml-d3:

  https://github.com/seliopou/ocaml-d3

ocaml-d3 provides OCaml bindings to D3.js[1], via js_of_ocaml. Using this
library will enable you to create type-safe, composable widgets using HTML,
SVG, and CSS. The binds at the moment only cover the Core Selection API.
For visualization uses cases, the additional library code will have to be
manipulated directly with the js_of_ocaml FFI.

These are the second languages bindings I've written for D3.js. The first
were for the Elm programming language[3]. Both are quite similar to each
other in terms of their treatment of operations and types. However, due to
the computational model of Elm, the bindings for that language do not allow
you to directly get a handle on DOM nodes. The OCaml version lifts this
restriction. But, I would suggest using that feature sparingly.

Here's a TodoMVC example to help you get started:

  https://github.com/seliopou/ocaml-d3/blob/master/examples/todo.ml

Issues and pull requests welcomed.

-Spiros E.

[1]: http://d3js.org/
[3]: https://github.com/seliopou/elm-d3

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

                 reply	other threads:[~2015-09-28 17:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAEkQQg+c9Q-j4Ucoy63EwcM9ZLQcWDZSodmdfduh9_rnk36eqw@mail.gmail.com \
    --to=seliopou@gmail.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;
as well as URLs for NNTP newsgroup(s).