From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 44BDDBC75 for ; Sat, 5 Mar 2005 13:31:42 +0100 (CET) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j25CVfMI003235 for ; Sat, 5 Mar 2005 13:31:41 +0100 Received: from web1.messagingengine.com (web1.internal [10.202.2.210]) by frontend1.messagingengine.com (Postfix) with ESMTP id 0FDCFC5AC6B; Sat, 5 Mar 2005 07:31:41 -0500 (EST) Received: by web1.messagingengine.com (Postfix, from userid 99) id 6CFA55F5; Sat, 5 Mar 2005 07:31:41 -0500 (EST) Message-Id: <1110025901.8003.216624047@webmail.messagingengine.com> X-Sasl-Enc: vM6podAnUEDCpOcdxipSfk+lZdGlJbQiRQvHTdq1+DNk 1110025901 From: "=?ISO-8859-1?Q?Gr=E9gory?= Guyomarc'h" To: rich@annexia.org Cc: caml-list@yquem.inria.fr Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.5 (F2.73; T1.001; A1.64; B3.05; Q3.03) Subject: Re: [Caml-list] Cross-platform "Hello, World" graphical application in OCaml Date: Sat, 05 Mar 2005 13:31:41 +0100 X-Miltered: at concorde with ID 4229A6AD.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.1 required=5.0 tests=FORGED_RCVD_HELO 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.