From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p3RHkNXB026267 for ; Wed, 27 Apr 2011 19:46:25 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am8HAHtVuE2tyzrO/2dsb2JhbACYDTGNJgh3qAWbUIV2BIYDiE6KIjuDbw X-IronPort-AV: E=Sophos;i="4.64,275,1301868000"; d="scan'208";a="98193736" Received: from mail.ashimagroup.net ([173.203.58.206]) by mail2-smtp-roc.national.inria.fr with ESMTP; 27 Apr 2011 19:46:24 +0200 Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) (Authenticated sender: sheets@ashimaarts.com) by mail.ashimagroup.net (Postfix) with ESMTP id DDB841480F7 for ; Wed, 27 Apr 2011 17:56:37 +0000 (UTC) Received: by vxc34 with SMTP id 34so2938333vxc.27 for ; Wed, 27 Apr 2011 10:46:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.173.200 with SMTP id bm8mr3678218vdc.24.1303926381749; Wed, 27 Apr 2011 10:46:21 -0700 (PDT) Received: by 10.52.169.9 with HTTP; Wed, 27 Apr 2011 10:46:21 -0700 (PDT) In-Reply-To: <20110427171618.GA4078@yeeloong.happyleptic.org> References: <20110427171618.GA4078@yeeloong.happyleptic.org> Date: Wed, 27 Apr 2011 10:46:21 -0700 Message-ID: From: David Sheets To: rixed@happyleptic.org Cc: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p3RHkNXB026267 X-Validation-by: kosmo.zb@gmail.com Subject: Re: [Caml-list] Pros and cons of different GL bindings ? You could also compile your OCaml to Javascript and use WebGL. We've not yet written the ocamljs bindings to mimic lablgles but the javascript shim is fairly small, "native" (not autogen'ed bindings) and simple. The business logic stays in OCaml. We will soon be tightening the ocamljs/closure-compiler toolchain to get even smaller and faster js files. You can see some early results from this design at http://ashimagames.com/ We are actively investigating compiling a strict OCaml subset (directly semantically translatable to recursion-less GLSL) to GLSL/Javascript for numeric library portability and algebraic simplification of shaders. If you are interested in this architecture, let me know and I can clean up and send you the closure-compiler externs files we use to escape the minification of the WebGL interface. If you require ocamljs assistance, I would also be happy to help with that. Best, David Sheets Ashima Arts On Wed, Apr 27, 2011 at 10:16 AM, wrote: > There is also my own pet binding (glop project on gitorious) if you > need an abstraction layer above both OpenGL or GLES, but I don't > recommend it since you would be the only user :-) > >> Oh, if anyone knows of someone making OpenGL 4 / OpenGL ES 2 bindings... >> please speak up! :) > > The problem with shaders is that it seams a very unpleasant(*) language > is imposed on us. If good old OpenGL was a brilliant abstraction > between a program and an hypothetical hardware, recent OpenGL versions are > more like an API to access proprietary hardware, thus it is much less > exciting to bind ocaml with this thing. > > (*): at least from the point of view of an ocaml programmer > > -- > Caml-list mailing list.  Subscription management and archives: > https://sympa-roc.inria.fr/wws/info/caml-list > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > >