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: Thu, 23 Jun 2016 21:49:32 +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> <20160620074503.6d06426b@dell.homenet> <87y460jou5.fsf@pobox.com> <20160620100157.530fc347@dell.homenet> <20160622234450.773f313f@bother.homenet> <8760t0qru7.fsf@pobox.com> <20160623102421.3ff83743@bother.homenet> <877fdgp4n3.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1466682589 11942 80.91.229.3 (23 Jun 2016 11:49:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2016 11:49:49 +0000 (UTC) To: guile-user , guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 23 13:49:49 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 1bG38m-0002gc-GW for guile-devel@m.gmane.org; Thu, 23 Jun 2016 13:49:48 +0200 Original-Received: from localhost ([::1]:36100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG38l-0002IT-Jg for guile-devel@m.gmane.org; Thu, 23 Jun 2016 07:49:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG38d-0002F3-Va for guile-devel@gnu.org; Thu, 23 Jun 2016 07:49:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bG38b-0007vh-OR for guile-devel@gnu.org; Thu, 23 Jun 2016 07:49:38 -0400 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:33796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG38Y-0007v7-Ag; Thu, 23 Jun 2016 07:49:34 -0400 Original-Received: by mail-vk0-x22b.google.com with SMTP id c2so71592678vkg.1; Thu, 23 Jun 2016 04:49:33 -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; bh=rAxfBAwfCnuPefllI+nxsBwdrIIUcNXOHBI7ADG2Qa8=; b=sLwOQRRMl8XFb7NpKmH0xJ6QBZo9PkldJrHOfZeKjbFg1R1H4cZVEtZHiNrhD4QrZ7 n6yo6X4QI0nT0vR2ZQSqxpJtBClk7EbTv4U+CjdAxc+iBre+DJydAeSrbsxS9+C12MsP N9q2TqTkXoUojXAZxouEH2a18pyVQDp3Q43xBx3ixFug8BJG+V3V5FIP4AvGJLZ60i3H jEJbHzLDgaVgNQkSllPzj4KbWcAKPJyVvg61k7fLaO/H7uYO2e5gpNCQbxo3B0yhiCNp 2fU9+h6CR7cJMprHXiD+a3EIn3PSyHpJCHL5aw7y2/YmU9rFgYJDOz5lwNAF3QRV7bpS sCYg== 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; bh=rAxfBAwfCnuPefllI+nxsBwdrIIUcNXOHBI7ADG2Qa8=; b=Wk+mMTJ2m6Z415MgmjwLo8vEtgf4jhpSqAFCcMYLSvhHU7EyVLFDDTBGsc0W5AGAJW j2TKvN77aTXmiCThtCgYbD/84LR9f+SvQyFZUQX+H2c0D08ysocfq9aCW1pgYCqkxR87 lQvCO7rcSvOg592/MhhkUJuzkLD5mT5CsfGEU/OOecH7n0/CzGGg233PyIy7wEtGDpiu 0mICxq50ElwjXMIleSksgKfDF0nbJsaaHBytrd455IuSShafx0i0sn8lKHr+Zjfb3p6s uiN2m6JYVSY+/kZt3TQoy/Wi3swoqAv5G+xpP6xL17e7JmscwmsdF9vsMW7Li9pbiz81 ZiAw== X-Gm-Message-State: ALyK8tLFmYDV0ARXGJdFA8BI4CfMX7DMBYQ2T83e0l2NS9+G/Hl4LFFcbVxDr86mtSeeNTaBoy9iKIJXNt/rsg== X-Received: by 10.31.232.67 with SMTP id f64mr7192657vkh.44.1466682573278; Thu, 23 Jun 2016 04:49:33 -0700 (PDT) Original-Received: by 10.103.51.11 with HTTP; Thu, 23 Jun 2016 04:49:32 -0700 (PDT) In-Reply-To: <877fdgp4n3.fsf@pobox.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22b 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:18399 gmane.lisp.guile.user:12693 Archived-At: On 23 June 2016 at 20:43, Andy Wingo wrote: > On Thu 23 Jun 2016 11:24, Chris Vine writes: >> Secondly, as I understand it in the end you want pre-emptive "green" >> threads for guile, whereas my code equates to co-operative >> multi-tasking, whilst also working with native threads. I must come >> clean and say that I don't like "green" threads. > > I actually don't want *pre-emptive* threads -- I'd rather have threads > suspend at I/O points instead. But yeah, my preferred abstraction is > threads; and those user-space threads could be bound to a core, or we > could schedule them on multiple cores. But there's room for many things > :) It would be nice to be able to avoid pre-emption at I/O points also, ensuring that turns on the event loop run atomically to completion, and any IO wait happens on the next turn. I guess I can discover any pre-emption at I/O points easily with a dynamic-wind handler or custom loop and go and rewrite them. -- 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.