caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jeremy Bem <jeremy1@gmail.com>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: caml-list List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] NaCl/OCaml (OCaml as a client-side web programming  language)
Date: Thu, 4 Mar 2010 20:37:06 -0500	[thread overview]
Message-ID: <eed625c81003041737v16c532d6hebe15457da9a0026@mail.gmail.com> (raw)
In-Reply-To: <91a3da521003041728s19b1302cm5f4e376aafbbd810@mail.gmail.com>

Hi Daniel,

I hope to post more documentation, but in a nutshell:

standard library: Yes, but file operations are typically unavailable
at the NaCl level and will fail.

Str (and Num): I haven't included these yet, but I intend to.

Unix: Similar capabilities are provided by the "Service" library
instead.  This seemed slightly more in keeping with the NaCl
underpinnings than hacking Unix into submission.

Third party OCaml modules should be compilable and usable, just use
"nacl-ocamlopt" in place of "ocamlopt".  Of course complex libraries
may present complications in practice (e.g. if they try to access the
filesystem).

C bindings: it should be possible to interface with C code as per the
OCaml manual, again substituting "nacl-ocamlopt" for "ocamlopt".  The
NaCl-specific libraries that are included (such as "Multimedia")
provide a template that can be emulated.

Hope that helps,
Jeremy

On Thu, Mar 4, 2010 at 8:28 PM, Daniel Bünzli
<daniel.buenzli@erratique.ch> wrote:
> Hello Jeremy,
>
> Interesting contribution.
>
> Maybe this is more a question about native client but could you
> elaborate on the kind of constraints nacl puts on the client code.
> Which libraries can be used ? The standard library ? str.cmxa ?
> unix.cmxa ? Third party pure caml modules ? C bindings ? etc.
>
> Best,
>
> Daniel
>


  reply	other threads:[~2010-03-05  1:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 23:22 Jeremy Bem
2010-03-05  1:28 ` [Caml-list] " Daniel Bünzli
2010-03-05  1:37   ` Jeremy Bem [this message]
2010-03-05  9:36 ` David Rajchenbach-Teller
2010-03-05 11:47 ` Vincent Balat

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=eed625c81003041737v16c532d6hebe15457da9a0026@mail.gmail.com \
    --to=jeremy1@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /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).