From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: ice-9 async-queue Date: Tue, 07 Feb 2012 09:36:10 +0100 Message-ID: <87mx8vf3b9.fsf@pobox.com> References: <87d39rhp6i.fsf@pobox.com> <1328566160.79932.YahooMailNeo@web37905.mail.mud.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328603786 19072 80.91.229.3 (7 Feb 2012 08:36:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 08:36:26 +0000 (UTC) Cc: guile-devel To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Feb 07 09:36:25 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RugXJ-0002Pt-NQ for guile-devel@m.gmane.org; Tue, 07 Feb 2012 09:36:25 +0100 Original-Received: from localhost ([::1]:58368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RugXJ-0001RZ-8Y for guile-devel@m.gmane.org; Tue, 07 Feb 2012 03:36:25 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:35851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RugXC-0001PI-Lx for guile-devel@gnu.org; Tue, 07 Feb 2012 03:36:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RugX9-0003Rh-0Y for guile-devel@gnu.org; Tue, 07 Feb 2012 03:36:18 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:44762 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RugX8-0003Ra-UF for guile-devel@gnu.org; Tue, 07 Feb 2012 03:36:14 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 6B519686B; Tue, 7 Feb 2012 03:36:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=Wb8KMiTZ3HMh UwGPA+ZAGk5bXgs=; b=lEnt/K26YrdZrqgXmZF7WrD/PDLf5X4SuFGUILwyKEgz FlQhKzFu9A0tsZZYPBSO0Saj6jRjx5j3Rs9FeW4amojTe3fWJEn7uOf2lgS7kKpN 0bhQqNHU7G+ZPK96gPsbhy751xt8YCCcjF+DaIj/ki7IPlQGIcbN0Ce4Tr5Muh0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=DRVIgx aR7pnmIc5oG9PJy9JoVGpQAyA6XHFN5aKXpCeTofMX03wibsJHAqj89cblKEN2g+ K/YJpbiSzDmhUDHKdtrSjEnIoJbfvrICfT6ZHMeQm/DAfV5lPYD62h+Lv7AgGKfb NaDgU/Ob7KsbhBLpM36Ow4dwgkJEYtcAe44XM= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 6066A686A; Tue, 7 Feb 2012 03:36:14 -0500 (EST) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id BB48C6869; Tue, 7 Feb 2012 03:36:13 -0500 (EST) In-Reply-To: <1328566160.79932.YahooMailNeo@web37905.mail.mud.yahoo.com> (Mike Gran's message of "Mon, 6 Feb 2012 14:09:20 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: CB6B27B6-5166-11E1-82CF-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:13808 Archived-At: On Mon 06 Feb 2012 23:09, Mike Gran writes: > maybe=C2=A0either=C2=A0(ice-9 q)=C2=A0or (ice-9 async-queue) could become= =C2=A0a > generalized version and the other could become a specific version or > the same codebase. I forgot to mention the other way: ice-9 q can't be a specific version of anything else, because its implementation is exposed as its interface: A queue is implemented as a cons cell, the `car' containing a list of queued elements, and the `cdr' being the last cell in that list (for ease of enqueuing). (LIST . LAST-CELL) If the queue is empty, LIST is the empty list and LAST-CELL is `#f'. An application can directly access the queue list if desired, for instance to search the elements or to insert at a specific point. Cheers, Andy --=20 http://wingolog.org/