From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id ED3F1BBAF for ; Wed, 24 Nov 2010 10:33:47 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIBAJ1q7EzRVaE0kGdsb2JhbACiaggVAQECCQkMBxEDH6JKiWSCGIUdLohWAQEDBYVCBIRZhgeLGQ X-IronPort-AV: E=Sophos;i="4.59,247,1288566000"; d="scan'208";a="80099690" Received: from mail-fx0-f52.google.com ([209.85.161.52]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Nov 2010 10:33:47 +0100 Received: by fxm5 with SMTP id 5so348523fxm.39 for ; Wed, 24 Nov 2010 01:33:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5uSwDvzSgFukNk70tl8BFJ2Fe7UJgU+vFG+eazbSt7g=; b=Bn8zIdZx+AAGS8h2vU1nlson4yusJJzEJc50+P8pBVC5W1hVkgIAbEwxpBNCfSATzD 9FS/thFu9KFgJ2YCmEdXAwKCMD4f2/nbvKnX85cdfkAog+zgoViJPibehw5397uz/nHg U+b+LtsAyH7pQioHITTIW0EYzHv4HGzUbfJzY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vtT0aqeGOHZzbXQhWfzC2vUblRiUGrNpsfpDGv9o5EcK12YMskVZeq42srpAak78uO lZYteH1LcAEjocisRN5ACBsm4CCnTlzBHOaCvf4/ymqLP/RtfbGtK/83pMazQwr3bi0l WDIbO/sTsXBrFoF3vtdJj+zS16UZV5C+u4fKc= MIME-Version: 1.0 Received: by 10.223.118.211 with SMTP id w19mr2529247faq.14.1290591227056; Wed, 24 Nov 2010 01:33:47 -0800 (PST) Received: by 10.223.75.196 with HTTP; Wed, 24 Nov 2010 01:33:46 -0800 (PST) In-Reply-To: References: Date: Wed, 24 Nov 2010 15:03:46 +0530 Message-ID: Subject: Re: [Caml-list] Desktop GUI toolkits - current state of the art? From: Martin DeMello To: Jacques Garrigue Cc: OCaml List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; lablgtk:01 lablgtk:01 gtk:01 gtk:01 verbose:01 translated:01 ocaml:01 labltk:01 labltk:01 8.5:98 wrote:01 caml-list:01 api:02 objects:02 garrigue:03 On Wed, Nov 24, 2010 at 4:36 AM, Jacques Garrigue wrote: > I'm not sure which examples you looked at for lablgtk2. > The goals of lablgtk are: > =A0* be as close as possible to the spirit of Gtk+ > =A0* while providing type and memory safety > =A0* and allow comfortable use through objects and optional arguments > This resulted in a 2-layer implementation, with a lower layer > that just wraps basic Gtk+ calls, and an object layer on top of it. > Some examples mix the two layers, which may look strange, but > I think that when you use only the upper layer, this is clean enough. > (The lower layer is not dirty, but converting between the two may be > verbose and look clumsy). That might be the problem, then. I was looking at the examples in the translation of the gtk tutorial, and a lot of it seemed like C code translated to OCaml. Could you point me to some example of code written using the high level API? > The obvious alternative to lablgtk2 is of course labltk. > I personally think that labltk is still the easiest way to build a GUI, > but many do not like Tk's look&feel. Does labltk have any prospect of being updated for tk 8.5? I tried using it but discovered I'd have to install tk8.4 first. martin