From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id A26651F4CF for ; Fri, 2 Sep 2005 10:38:07 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j81EhHtn006141 for ; Thu, 1 Sep 2005 16:43:17 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA23843 for ; Thu, 1 Sep 2005 16:43:16 +0200 (MET DST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j81EhGpF028131 for ; Thu, 1 Sep 2005 16:43:16 +0200 Received: by nproxy.gmail.com with SMTP id l37so133789nfc for ; Thu, 01 Sep 2005 07:43:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LZSjD87VGu3GnG/gEsXu8GfB2RcrE1ADfucslgx8O93bWDxk0ccYtATVtM50q8Zx+bU/eyMxKD/BHrnD1hmzZK8czCr3n5Agsx9CohABVN0dL3WXPl6ZgQF0E8P2oueTYrQrYYoXx9uxB3E+Y8SH/hDcYB9dEGQdil8ecirwjLw= Received: by 10.49.5.17 with SMTP id h17mr110520nfi; Thu, 01 Sep 2005 07:43:16 -0700 (PDT) Received: by 10.48.30.18 with HTTP; Thu, 1 Sep 2005 07:43:16 -0700 (PDT) Message-ID: Date: Thu, 1 Sep 2005 15:43:16 +0100 From: Chris Campbell To: skaller Subject: Re: [Caml-list] Re: Feeding the OCaml GUI troll Cc: Matt Gushee , caml-list@inria.fr In-Reply-To: <1125580528.7192.23.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050830174757.99765.qmail@web30510.mail.mud.yahoo.com> <200508302001.58080.jon@ffconsultancy.com> <3d13dcfc05083101487092acd5@mail.gmail.com> <43168841.9000302@havenrock.com> <1125580528.7192.23.camel@localhost.localdomain> X-Miltered: at concorde with ID 43171385.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43171384.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 callbacks:01 threads:01 gui's:01 inverting:01 widget:01 erlang:01 widget:01 erlang:01 11.:98 11.:98 wrote:01 wrote:01 sourceforge:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 On 01/09/05, skaller wrote: > On Wed, 2005-08-31 at 22:49 -0600, Matt Gushee wrote: >=20 > > I'm not sold on the idea of a "simple" GUI front end. >=20 > I am. My idea is this: GET RID OF CALLBACKS. > The idea is to use (user space) threads instead. >=20 > The big problem with GUI's is that they're passive. > You write 'event handlers' and have to store the current > state manually. By control inverting the code, you can > just use a thread for each widget. Joe Armstrong did something like this with Erlang and X called Ex11.=20 Can't remember how it works exactly, but it seems each widget is a thread and can process events independantly of the others. http://www.erlang.se/workshop/2004/ex11.pdf