Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
AW: [Caml-list] Re: GUI for OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-30 (12:09)
From: Bauer, Christoph <Christoph.Bauer@l...>
Subject: AW: [Caml-list] Re: GUI for OCaml

> 2005/8/30, Christophe Raffalli <>:
> > I would prefer a GUI programming language (similar to TeX for word
> > processing). This might be easier to develop, can either be 
> static (the
> > widget build at compile time) or dynamic, and most of all, 
> it is easier
> > to modify an existing GUI.
> I'm not fond of yet another Domain Specific Language (DSL), except if
> it brings clear advantages (of which I'm not yet convinced).
> I don't mind learning a DSL from time to time, but not each time I
> need to program a part of my application.

In my current project we made a ocaml/tcl hybrid shell. It looks
like a normal tclsh, but allows to call ocaml functions. The
ocaml code is statically linked in the hybrid shell.

Our GUI DSL is therefore "TCL/TK" which we know very well. Tk has a very
good design and looks good after some simpe "option add"-tweaks. 
Unfortunaltly Tcl is a big crap, it's like lisp but without
any cool features (lambda, call/cc), no speed, syntax checks
everything (but arrays) is a string, dynamic scoping (with upvar)
and so on. Lisp+Tk would be cool.

> BTW, some research has been done one using functional style to program
> GUI (in Haskell??). We should at least have a look on it.

I'm sure it's done with monads.

And there was eXene for SML. Does anyone know it?

The syntax of wxHaskell seems to be very nice.

In the last thread about GUI&OCaml somebody mentioned
that cairo-ocaml could be a good starting point for a ocaml-native
GUI Library.

Best regards,
Christoph Bauer