Version française
Home     About     Download     Resources     Contact us    
Browse thread
Cross-platform "Hello, World" graphical application in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Bardur Arantsson <list-caml-list@s...>
Subject: Re: [Caml-list] Cross-platform "Hello, World" graphical application in OCaml
On Wed, Feb 23, 2005 at 12:05:01AM +0000, Jon Harrop wrote:

> On Tuesday 22 February 2005 23:30, Daniel Bünzli wrote:
> > One nice thing to have would be a pure ocaml gui system (maybe along
> > the lines of Fruit [1] or Fudgets) with a functorized renderer
> > interface so that it can be used with/rendered by different graphic api
> > (e.g. see cegui [3,4]) or even inside a canvas widget. Input handling
> > should also be functorized so that it is easy to plug the gui system in
> > a particular environment.

> I prefer the idea of implementing a single back-end: a decent vector graphics 
> renderer which uses OpenGL. I can't think of any reason I'd ditch these for 
> another back-end.

On Linux, only Radeon and NVidia cards have even half-way decent OpenGL
support -- and even then you need proprietary drivers for the most recent
ones. I probably don't need to tell you that rendering OpenGL to a
framebuffer via software on a general-purpose CPU (ie. software
rendering) is spectacularly slow. Certainly slow enough to make a GUI
completely unusable.

[--snip--]
> The editors I've seen under Linux are making tentative steps in the right 
> direction but they are still miles away from what could be achieved. 
> OCamlbrowser displays hierarchical lists of module contents graphically. 
> KEdit lets you flatten C++ function definitions, but C++ lacks nested 
> functions. Particularly in OCaml, programming could be so much easier with 
> more sophisticated editors...

Maybe you should try Eclipse and the OCaml-plugins:

- http://www.eclipse.org/
- http://eclipsefp.sourceforge.net/ocaml/

Now, I haven't tested the OCaml/C++ support, so I don't know how good
that is, but the Java support in Eclipse is incredible.

-- 
Bardur Arantsson
<bardur@imada.sdu.dk>
<bardur@scientician.net>

In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
             Douglas Adams | The Hitchhiker's Guide To The Galaxy