English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Desktop GUI toolkits - current state of the art?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-28 (06:38)
From: Martin DeMello <martindemello@g...>
Subject: Re: [Caml-list] Desktop GUI toolkits - current state of the art?
On Sat, Nov 27, 2010 at 12:39 AM, Yoann Padioleau <padator@wanadoo.fr> wrote:
> On Nov 24, 2010, at 1:38 AM, Martin DeMello wrote:
>> Both ruby and vala make an effort to provide nice syntactic support
>> for gtk code, so that it looks like a natural part of the language.
> Could you give some example of code explaining that ?
> Code in vala/ruby  vs same code in lablgtk.

Here's the table packing example in ruby and ocaml:


They both more or less follow the C API, but the ruby code looks like
natural ruby (perhaps because ruby has a more imperative flavour than
OCaml does), whereas the OCaml code looks there should be a more
declarative, higher-level way of doing things.

Vala is currently experimenting with gtkon, a declarative layout
language that embeds vala code "islands", and is compiled into pure
vala by a preprocessor.


This seems like a very promising direction, though I don't know how
well an equivalent approach would work in OCaml.