caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Vincent Balat <vincent.balat@vblt.org>
To: matthieu.dubuget@gmail.com, Caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Web technologies as graphical user interface to OCaml programs?
Date: Thu, 08 Dec 2016 09:23:49 +0000	[thread overview]
Message-ID: <CAG+nEjx16C4vqY5rYey9on4zQ2p9iWf_ZeX8oc5yAJbmWHM5cw@mail.gmail.com> (raw)
In-Reply-To: <baacb5fa-1c76-6924-7284-73f5a0a0d16d@gmail.com>

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

Hi,

This is precisely what Eliom is intended for. Eliom is the simplest way to
program client-server applications with an interface in a browser. The
program is written as a single code, with parts of the code being executed
server-side and other client-side. Communication between client and server
is straightforward (e.g. just call a server side function from the client).

You can now also derive the mobile app for Android and iOS from the exact
same code.

Have a look at
http://ocsigen.org/tuto/dev/manual/start
for how to create very quickly a template application with code examples.
(You will need to pin the dev version of all packages — ocsigen-toolkit,
ocsigen-start ... — as I think they are still not in opam, but they will be
released in very few days/hours).

For an example of running app using this have a look a
http://www.besport.com or the corresponding mobile apps:
https://play.google.com/store/apps/details?id=com.besport.www.mobile
https://itunes.apple.com/us/app/besport/id1104216922

Regards,
Vincent Balat



Le jeu. 8 déc. 2016 à 09:21, Matthieu Dubuget <matthieu.dubuget@gmail.com>
a écrit :

> Hello,
>
> I wonder how I could use Web technologies to write OCaml program's
> GUI.
>
> I’m particularly interested by the ocaml-vdom (elm) approach
> simplicity.
>
> But my need would be to add a user interface to programs using some
> OCaml libraries which are not supported by js_of_ocaml (Unix, C libs
> bindings…).
>
> One solution would be to keep the GUI-less native OCaml apps compiled
> and running as native code, and have them communicate with GUIs that
> would run in browsers.
>
> I'm not sure how this communication would be done, thought? Maybe
> websocket,
> but this is something I do not know at all…
>
> Another solution would be to have the native OCaml app directly serve
> it's UI, maybe using ocsigenserver?
>
> I'm wondering if there are some examples around with those kind of
> approaches or other kind of solution?
>
> Best regards
>
>
> --
> Matthieu Dubuget
>
>
> --
> 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: 4122 bytes --]

  parent reply	other threads:[~2016-12-08  9:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08  8:21 Matthieu Dubuget
2016-12-08  8:41 ` Sebastien Ferre
2016-12-08  9:23 ` Vincent Balat [this message]
2016-12-10 13:54 ` SP
2016-12-11 14:51   ` Matthieu Dubuget
2016-12-14 22:14     ` SP
2016-12-15 11:59       ` rixed
2016-12-15 14:10         ` David Allsopp
2016-12-15 21:16           ` Adrien Nader
2016-12-26 11:59         ` SP

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=CAG+nEjx16C4vqY5rYey9on4zQ2p9iWf_ZeX8oc5yAJbmWHM5cw@mail.gmail.com \
    --to=vincent.balat@vblt.org \
    --cc=caml-list@inria.fr \
    --cc=matthieu.dubuget@gmail.com \
    /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).