From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.devel Subject: Re: vector types poll Date: Tue, 16 Apr 2013 06:47:14 +0800 Message-ID: References: <9D053760-46BC-46F1-B84D-07902E777FF2@bluewin.ch> <4A332BC6-A1C2-483F-BF6E-2C06D1C8AA68@bluewin.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1366066036 22623 80.91.229.3 (15 Apr 2013 22:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 22:47:16 +0000 (UTC) Cc: guile-devel To: Daniel Llorens Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Apr 16 00:47:20 2013 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 1URsBE-0003xG-5S for guile-devel@m.gmane.org; Tue, 16 Apr 2013 00:47:20 +0200 Original-Received: from localhost ([::1]:46677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URsBD-0004Yp-Qw for guile-devel@m.gmane.org; Mon, 15 Apr 2013 18:47:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URsBB-0004RY-5b for guile-devel@gnu.org; Mon, 15 Apr 2013 18:47:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1URsB9-0002GZ-KD for guile-devel@gnu.org; Mon, 15 Apr 2013 18:47:17 -0400 Original-Received: from mail-ia0-x22d.google.com ([2607:f8b0:4001:c02::22d]:45618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1URsB9-0002GP-GS for guile-devel@gnu.org; Mon, 15 Apr 2013 18:47:15 -0400 Original-Received: by mail-ia0-f173.google.com with SMTP id j5so4286345iaf.18 for ; Mon, 15 Apr 2013 15:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=HyuXW+t0MvN/VlaTTY8H+g7u0uUvRuTYy22mOgKBvLs=; b=lQBFV4RTe+ktE8LQ5QgO17Kw19YpnaBHaJcqtzXDY5/PUbv2HHMjwBOfbjQQHSK8so lVHOAiruRSK7bE/G1MOMaLhxSWqGZw6/Buw9y6/g+0gqVj8zsrZrfIStlaXuS2dkCeiE 6HxpizfI6yc4q3BTUDd/eOAXjjP4UD39/CnsmBwC9ARI6vmi1SybyoEG2juBd7zZzR95 Jv9XOzSOzN6jARp1U7+b9Pkrz1yeTIPcejHnN/7w04xs+n0ORYcSLacfWT5M12YleXaL Tb8vkAgqFYIYQFsHbnSO09OBPaMOYQPw27tCLo7SkzQ5T3LgWf012KhDbxwN6GM7tKuY ZM8g== X-Received: by 10.43.8.133 with SMTP id os5mr4173755icb.38.1366066034886; Mon, 15 Apr 2013 15:47:14 -0700 (PDT) Original-Received: by 10.64.26.168 with HTTP; Mon, 15 Apr 2013 15:47:14 -0700 (PDT) In-Reply-To: <4A332BC6-A1C2-483F-BF6E-2C06D1C8AA68@bluewin.ch> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c02::22d 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:16254 Archived-At: On 15 April 2013 22:10, Daniel Llorens wrote: > > Let's please agree on a behavior so we can start closing bugs. These are all the objects accepted by the array interface. I've filled the table with some ready-made choices that I think are at least internally consistent. > > ; -- > > (import (rnrs bytevectors)) > (define (every-two a) (make-shared-array a (lambda (i) (list (+ 1 (* 2 i)))) 2)) > (define (offset1 a) (make-shared-array a (lambda (i) (list (1- i))) `(1 ,(array-length a)))) > > ; [1] http://lists.gnu.org/archive/html/guile-devel/2013-04/msg00158.html > ; [2] stable-2.0 [e006d87] > ; [3] all array-type objects *are* arrays and support offsets, strides, etc. > ; [4] Common ground btw D. Hartwig and I (?), functionally r5rs vectors. > > ; -------------------------- [1] ------------ [2] --------- [3] ------ [4] > Is column [4] intentionally missing from all but the first set? I was expecting it for atleast s8vector.