Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Malcolm Matalka <mmatalka@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] embedding js_of_ocaml output?
Date: Sun, 29 Sep 2013 19:51:05 +0000	[thread overview]
Message-ID: <87y56fz9sm.fsf@gmail.com> (raw)
In-Reply-To: <FEAA7AD6-C601-4418-A08F-D121B1D9BBD2@recoil.org> (Anil Madhavapeddy's message of "Sun, 29 Sep 2013 20:43:01 +0100")

Awesome! Thank you!

Anil Madhavapeddy <anil@recoil.org> writes:

> On 29 Sep 2013, at 20:40, Malcolm Matalka <mmatalka@gmail.com> wrote:
>
>> This might be a really trivial question but perusing the js_of_ocaml
>> website I didn't see it answered:
>> 
>> Has anyone gone about embedding js_of_ocaml in an ocaml application?
>> Specifically, I want ship a binary that runs a small embedded webserver
>> and provides the GUI over that.  The obvious solution is just to add
>> building the js_of_ocaml output in the build process then make a fake
>> module that just has a string with the output in it and compile that in.
>> Hacky but I don't see why it wouldn't work but I'm sure somebody has a
>> clever idea out there.
>
> 'crunch' from OPAM will do what you want:
>
> $ opam search crunch
> Available packages for system:
> crunch  --  Convert a filesystem into a static OCaml module
>
> (let me know if there's anything in there that's Mirage specific and
> I'll fix it).
>
> I believe 'ocamlify' also does the same thing from OASIS, but I've not
> used it.
>
> $ opam search ocamlify
> Available packages for system:
> ocamlify  0.0.1  Include files in OCaml code
>
> -anil

      reply	other threads:[~2013-09-29 19:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 19:40 Malcolm Matalka
2013-09-29 19:43 ` Anil Madhavapeddy
2013-09-29 19:51   ` Malcolm Matalka [this message]

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=87y56fz9sm.fsf@gmail.com \
    --to=mmatalka@gmail.com \
    --cc=anil@recoil.org \
    --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