From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 8D111BC69 for ; Thu, 12 Apr 2007 23:10:02 +0200 (CEST) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3CLA1nK010521 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 12 Apr 2007 23:10:02 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from first (dslb-088-073-066-231.pools.arcor-ip.net [88.73.66.231]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id l3CLA1VF004638 for ; Thu, 12 Apr 2007 23:10:01 +0200 Received: by first (Postfix, from userid 501) id 4750C3A6F6B; Thu, 12 Apr 2007 22:47:47 +0200 (CEST) Date: Thu, 12 Apr 2007 22:47:46 +0200 From: Oliver Bandel To: caml-list@inria.fr Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl) Message-ID: <20070412204746.GA950@first.in-berlin.de> References: <20070411222521.GA1603@first.in-berlin.de> <200704120815.24433.jon@ffconsultancy.com> <20070412143329.GB396@first.in-berlin.de> <200704122046.18632.jon@ffconsultancy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200704122046.18632.jon@ffconsultancy.com> User-Agent: Mutt/1.5.6i X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 X-Miltered: at discorde with ID 461EA029.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bandel:01 in-berlin:01 lablgl:01 0100,:01 bandel:01 ocaml:01 wikipedia:01 ocaml:01 ocaml-code:01 ocaml-code:01 presenta:98 sourceforge:01 wrote:01 wrote:01 oliver:01 On Thu, Apr 12, 2007 at 08:46:18PM +0100, Jon Harrop wrote: > On Thursday 12 April 2007 15:33, Oliver Bandel wrote: > > > http://www.ffconsultancy.com/products/ocaml_for_scientists/visualisation/ > > > > There I get an error messaage that glutCreateWindow is called before > > glutInit. > > Ugh, sorry. They changed freeglut to be more pedantic (which might actually > fix some crashing issues I had with Presenta). You need to call glut.init as > the Wikipedia example does. > > > I have not looked at the examle in detail, > > but if it's not an OCaml-problem then that's fine. > > Well, I think it is probably just the choice of "time" function. Try it to > make sure though. OK. I will try my own attempts, and I think the first ways will be paved twice: one thing in C, the other in OCaml. I hope that the names of the OCaml-functions will have very similar names as the C-functions. There is no seperated lablgl-documentation, right?! So I have to look up for the C-API-functions and guess the right names of the OCaml-pendants?! > > > So I can switch my OpenGL-based programming to > > Ocaml and can put my C-sources into my museum of Sorce code :) > > Most people use sourceforge. ;-) > ...as a museum of old code? ;-) > > It would be bad if it would be an OCaml-problem, becaue I then > > would have to mix C- and OCaml-code; and if possible I prever > > pure OCaml-code. > > I doubt you will need to. There is very little that will run faster in C these > days. Really? :) OK, but you can't insert Assembler-code in OCaml-code directly ;-) Ciao, Oliver