From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A6C70BC75 for ; Sat, 5 Mar 2005 14:09:27 +0100 (CET) Received: from hotmail.com (bay102-f11.bay102.hotmail.com [64.4.61.21]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j25D9QEo004195 for ; Sat, 5 Mar 2005 14:09:27 +0100 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 5 Mar 2005 05:09:25 -0800 Message-ID: Received: from 64.4.61.203 by by102fd.bay102.hotmail.msn.com with HTTP; Sat, 05 Mar 2005 13:09:24 GMT X-Originating-IP: [64.4.61.203] X-Originating-Email: [g_r_e_g_@hotmail.com] X-Sender: g_r_e_g_@hotmail.com From: "Gregory Guyomarc'h" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Cross-platform "Hello, World" graphical application in OCaml Date: Sat, 05 Mar 2005 14:09:24 +0100 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 05 Mar 2005 13:09:25.0000 (UTC) FILETIME=[8DE63080:01C52184] X-Miltered: at nez-perce with ID 4229AF86.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; guyomarc'h:01 caml-list:01 ocaml:01 caml-list:01 ocaml:01 gtk:01 api:01 widget:01 swt:01 gtk:01 api:01 compares:01 viewcvs:01 notepad:01 cocoa:98 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=MSGID_FROM_MTA_HEADER autolearn=disabled version=3.0.2 X-Spam-Level: Dear Caml-list, said: >On Wed, Mar 02, 2005 at 12:36:53AM -0600, Ken Rawlings wrote: > > My experiences building Kog were overall positive. However, writing a > > full-featured GUI from scratch is a lot of work, so Kog is likely to > > remain a toy implementation for the foreseeable future. If there's > > much interest in the OCaml community for this sort of thing though, > > I'd love to work with a group on a project getting a full-featured > > lightweight GUI up and running with OCaml, whether it be on OpenGL > > directly, or one of the higher level vector libraries. > >I think this would be the wrong direction to go. > >What I think would be useful is an OCaml wrapper around Gtk, Win32 and >Aqua/COCOA. The idea would be for the OCaml wrapper to abstract away >the differences, allowing cross-platform programming with native >widgets. WxWidgets fits the bill here, but the actual API is clunky. >I have a feeling that something could be done better with a functional >programming approach. I think it has not yet been mentioned in this thread, but as far as I understand it, the java Standard Widget Toolkit (SWT) do just that. It acts as a thin layer above the native toolkits (in fact it seems above the simpler widgets like buttons, labels, etc, others like menu bars are re-implemented in java). It already supports an impressive set of backends: gtk, windows, carbon, photon, and motif. I don't know how well the API compares to wxWidgets', I have never used any of them, but it seems quite popular. Here are some links, http://www.eclipse.org/articles/Article-SWT-Design-1/SWT-Design-1.html http://dev.eclipse.org/viewcvs/index.cgi/platform-swt-home/dev.html?rev=1.228 http://www.developer.com/java/other/article.php/2179061 >Of course it's a lot of tedious engineering work. I'm not >volunteering! > >Rich. > >-- >Richard Jones, CTO Merjis Ltd. >Merjis - web marketing and technology - http://merjis.com >Team Notepad - intranets and extranets for business - >http://team-notepad.com Sincerely, Gregory.