From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 2AE947F84F for ; Tue, 25 Feb 2014 23:02:30 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of andy.ray@ujamjar.com) identity=pra; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="andy.ray@ujamjar.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of andy.ray@ujamjar.com) identity=mailfrom; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="andy.ray@ujamjar.com"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@www.ujamjar.com) identity=helo; client-ip=31.172.243.2; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="andy.ray@ujamjar.com"; x-sender="postmaster@www.ujamjar.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQGAGwSDVMfrPMC/2dsb2JhbABZg0FXqz8BlyIedINLXRIBBQEiiBgECZgNgwqtGhMEkw8EmDaQOxgpgSyDLQ X-IPAS-Result: AuQGAGwSDVMfrPMC/2dsb2JhbABZg0FXqz8BlyIedINLXRIBBQEiiBgECZgNgwqtGhMEkw8EmDaQOxgpgSyDLQ X-IronPort-AV: E=Sophos;i="4.97,542,1389740400"; d="scan'208";a="50517095" Received: from vm12460.vps.tagadab.com (HELO www.ujamjar.com) ([31.172.243.2]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 25 Feb 2014 23:02:29 +0100 Received: from mail-qa0-f47.google.com (mail-qa0-f47.google.com [209.85.216.47]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by www.ujamjar.com (Postfix) with ESMTPSA id A7D54124336 for ; Tue, 25 Feb 2014 22:02:15 +0000 (GMT) Received: by mail-qa0-f47.google.com with SMTP id w5so1020378qac.20 for ; Tue, 25 Feb 2014 14:02:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:date:message-id:subject:from:to:content-type; bh=ylg2xnJP966w2h0zj7J0MDj/dw0sMBY13qzZ6AUR4BA=; b=bsCWhBt5SAehH+IqanSjxRWdtZ7lGfjzBHwLMRJKk8m6vGcfG2/Nm846/AosgRqdC2 rB2J8ECUi/GKzT+IK6F9J+7O9vJHkq4s7ULorJmsR5Dx0c/QZU+sWWLXKTpNAMIIC2Sz 2ASRlewhz1e/fk1GbjBzOZ93/AHwOb4RKA8nYNDgA3Pu5bBOP5FkWXS4d3bs3FbJEKZa Wm7YQkrt9BJ5lsQ9tQ140E/jCsYxq5iHOhmOy1EhpmHQgldO1/Y6yelP4BGpNv8BfxJc Jd9r9FurJjDdvJVT6Yi6Kdv71nNygxWUSG439UtaR1eJzPbva2z1xNlt77Als5slmtyg 6pQg== MIME-Version: 1.0 X-Received: by 10.224.11.196 with SMTP id u4mr3715109qau.4.1393365727216; Tue, 25 Feb 2014 14:02:07 -0800 (PST) Received: by 10.140.24.166 with HTTP; Tue, 25 Feb 2014 14:02:07 -0800 (PST) Date: Tue, 25 Feb 2014 22:02:07 +0000 Message-ID: From: Andy Ray To: Ocaml Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: [Caml-list] [ANN] IOCamlJS v0.1 https://github.com/andrewray/iocamljs IOCamlJS runs a (compiled-to-javascript) OCaml REPL in the IPython notebook. stdout and stderr are redirected to the notebook interface so printf works as expected. The js_of_ocaml and lwt syntax extensions are enabled. Only a small API for interacting with the notebook is provided by iocamljs at the moment; js_of_ocaml provides far greater possibilities. The demo notebook js_of_ocaml-webgl-demo.ipynb provides a good example of what can be done. Its an almost direct copy of the js_of_ocaml WebGL demo except the 3d model, shader code, ocaml code and html code are all embedded in the notebook and can be compiled and run live in the browser. Nothing needs to be (re)compiled for it to run - so long as you have a IPython 1.1 installed the github repo has everything you need. It might even run on Windows....(I haven't tried but why not?!). Cheers, Andy PS I have only tested with IPython 1.1 and the way it hacks the ipython kernel I wouldn't recommend a different version for now.