Version française
Home     About     Download     Resources     Contact us    
Browse thread
Does LablTk have a future?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jon Harrop <jon@f...>
Subject: Re: Fwd: [Caml-list] Does LablTk have a future?
On Tuesday 30 August 2005 23:56, Chris Campbell wrote:
> > Option (2) seems much easier and more useful to me. I've never cared
> > about skinning...
>
> Easier???  You'd need to build a complete event/messaging subsystem, a
> renderer, ..., a set of widgets and get people to ship it.

Yes. The event system is trivial in OCaml (thanks to closures), particularly 
because graphics are regenerated on the fly for OpenGL. The renderer is as 
difficult as you want to make it. Conventional GUIs do little more than quads 
and pixmaps. Making widgets isn't exactly rocket science, albeit somewhat 
tedious. If by "ship it" you mean package it up for Debian etc. them I'm sure 
people will volunteer.

> Plus it'd likely only run on Linux and BSD.

No. It would run on Mac OS X and Windows as well. Probably others...

> It's 
> not easier at all especially if it was to be anything like a modern
> day gui - think Quartz Extreme/Aqua or AeroGlass.

I'm talking about aiming low.

> it'd be
> better to rely on them for the gui and wrap it with something like
> your description of a "functional GUI" or bind to WxWidgets (or both).

I disagree. Static type checking could be leveraged for GUI code as it is for 
most other OCaml code. Writing correct bindings to libraries like those is 
just as much work as writing a toolkit on top of OpenGL, only you'd end up 
with their inefficiencies and instabilities.

If anyone is seriously considering writing bindings for Cairo from OCaml then 
I'd like to know.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists