caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Example slowing down... (OpenGL/lablgl)
Date: Thu, 12 Apr 2007 22:47:46 +0200	[thread overview]
Message-ID: <20070412204746.GA950@first.in-berlin.de> (raw)
In-Reply-To: <200704122046.18632.jon@ffconsultancy.com>

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


  parent reply	other threads:[~2007-04-12 21:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 22:25 Oliver Bandel
2007-04-12  0:07 ` [Caml-list] " skaller
2007-04-12 14:09   ` Oliver Bandel
2007-04-12  7:15 ` Jon Harrop
2007-04-12 14:33   ` Oliver Bandel
2007-04-12 19:46     ` Jon Harrop
2007-04-12 20:26       ` Martin Jambon
2007-04-12 22:19         ` Jon Harrop
2007-04-13  0:30           ` Martin Jambon
2007-04-13  0:44             ` Jon Harrop
2007-04-12 20:47       ` Oliver Bandel [this message]
2007-04-13  1:12       ` skaller

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=20070412204746.GA950@first.in-berlin.de \
    --to=oliver@first.in-berlin.de \
    --cc=caml-list@inria.fr \
    /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).