From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William ML Leslie Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: anyone define port types? Date: Mon, 20 Jun 2016 13:38:39 +1000 Message-ID: References: <87y492mnjp.fsf@pobox.com> <87pots9tag.fsf@gnu.org> <87bn37wtf2.fsf@pobox.com> <20160612092513.3eb1c8a3@laptop.homenet> <8760t5mthu.fsf@pobox.com> <20160619163327.36246706@dell.homenet> <8737o9kr3g.fsf@pobox.com> <20160619210912.48528ffa@dell.homenet> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1466393948 23638 80.91.229.3 (20 Jun 2016 03:39:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2016 03:39:08 +0000 (UTC) Cc: guile-user , guile-devel To: Chris Vine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jun 20 05:39:07 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bEq3D-0001W9-Jb for guile-devel@m.gmane.org; Mon, 20 Jun 2016 05:39:03 +0200 Original-Received: from localhost ([::1]:41102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEq3C-0002nG-QD for guile-devel@m.gmane.org; Sun, 19 Jun 2016 23:39:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEq2w-0002lu-Pm for guile-devel@gnu.org; Sun, 19 Jun 2016 23:38:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bEq2u-00020a-Oe for guile-devel@gnu.org; Sun, 19 Jun 2016 23:38:45 -0400 Original-Received: from mail-vk0-x232.google.com ([2607:f8b0:400c:c05::232]:34096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bEq2r-0001yO-G0; Sun, 19 Jun 2016 23:38:41 -0400 Original-Received: by mail-vk0-x232.google.com with SMTP id t129so180512606vka.1; Sun, 19 Jun 2016 20:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mtdvDkq9WYwxtr8EvLyl0zJKrOg5s/4Wuxw7sQmbDnQ=; b=a703kUnNBDBTstXJXA9RUodKUgOFf1fZeACmF9p2mE3+02cZqyVC7N5BR9pFJbNqs4 cQZ4XPkYY+RJYzDYB0sT/PZljOn9HjYWkR4t5JB2dIsQMM91bR5zCyqdOvT7yPNKsjDP t/nYjGd4hN1Xxfx3O1/5tSWXfxOqPU26U0fe3UwVW/0EzQKsMj7lvTRh3/So8rPzOMeE v79Z/RIyCrS2CqfVq5YbiUsI5KoYuxo0Omp3Zm/KTYiVmAXbHheRHMUa8w9edT/J2amw /3jV1lyRUOYrevHuJak/WzXOChMg/etPLbUQHqSy0fQA/C8GTLWH60QOmrGuLplOfwXe jGCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mtdvDkq9WYwxtr8EvLyl0zJKrOg5s/4Wuxw7sQmbDnQ=; b=JRvPtKQigxh8G6LuZSWYeDh30HgGDuIKQ1OVyiwsKBVP+OEIrUPAjt79X9DBy1BHc/ T307/tmCcFMenChgwn0p4nTn2FjjwmaCrfVNDgaGyjD+7lRDLI2fFB49p+YBk1ksWhLy hKBUpLs3cTvqOdXuPLPRSD6Rc6TbeKNcjJ+tud+3JvGTVNlTBq2+0PxwldWnJ0bHo4NA Oowqxe/l9Bx7U+YQFXcor65TwOMgfFuGU4LwLk3uTHKhBKpEF1Iyzm8r8aVj/x8VTKzY L1GCq7RXv69kPFRudUNqI3D5U70aeEuqRhFLDP87sUlFWtly3/QQxr0gWt2mPNhe0xGN wRQw== X-Gm-Message-State: ALyK8tJF8VcbjLIQSTHVXsM9i2m1mKtZyiN9d43hb1jIYa1nsUN7qOnudJPYlUGT+SsBiANISXm8OP5gY00IgA== X-Received: by 10.31.84.131 with SMTP id i125mr5725852vkb.29.1466393920596; Sun, 19 Jun 2016 20:38:40 -0700 (PDT) Original-Received: by 10.103.51.11 with HTTP; Sun, 19 Jun 2016 20:38:39 -0700 (PDT) In-Reply-To: <20160619210912.48528ffa@dell.homenet> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::232 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18354 gmane.lisp.guile.user:12657 Archived-At: On 20 June 2016 at 06:09, Chris Vine wrote: > OK I am grateful for your patience in explaining this. I need to think > about it, but while this works where all events come from user-derived > events, I doubt that this would work with guile-gnome and the glib main > loop in the round, because for gtk+ to function the glib main loop must > block within glib's own internal call to the poll() and not within the > guile prompt, or gdk and other events will jam up. You would probably > need to run the glib main loop in its own (pthread) thread, about which > you have previously given dire warnings so far as guile as it currently > stands is concerned. > > As I say, I really need to think more about this and look further at > the code. I may well be missing something. If the event loop is external as you suggested, you could use a different implementation of the loop that used g_io_add_watch and returned to the glib mainloop when you're in a glib or gtk application. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You absolutely MAY reproduce any part of it in accordance with the copyright law of the nation you are reading this in. Any attempt to DENY YOU THOSE RIGHTS would be illegal without prior contractual agreement.