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 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 >