From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: Shared arrays Date: Thu, 28 Oct 2004 13:54:14 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098964543 11754 80.91.229.6 (28 Oct 2004 11:55:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2004 11:55:43 +0000 (UTC) Cc: djurfeldt@nada.kth.se, guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 28 13:55:34 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CN8sQ-00087O-00 for ; Thu, 28 Oct 2004 13:55:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CN90D-0000Cn-DQ for guile-devel@m.gmane.org; Thu, 28 Oct 2004 08:03:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CN8zR-0000C6-3F for guile-devel@gnu.org; Thu, 28 Oct 2004 08:02:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CN8zO-0000BQ-MR for guile-devel@gnu.org; Thu, 28 Oct 2004 08:02:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CN8zJ-0000BD-S3 for guile-devel@gnu.org; Thu, 28 Oct 2004 08:02:42 -0400 Original-Received: from [213.212.20.77] (helo=kvast.blakulla.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CN8rL-0003z0-TQ for guile-devel@gnu.org; Thu, 28 Oct 2004 07:54:28 -0400 Original-Received: from mamaliga.blakulla.net ([213.212.21.241] helo=witch) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 1CN8r8-0002Fn-00; Thu, 28 Oct 2004 13:54:14 +0200 Original-Received: from mdj by witch with local (Exim 4.34) id 1CN8r8-00017d-3T; Thu, 28 Oct 2004 13:54:14 +0200 Original-To: Marius Vollmer In-Reply-To: (Marius Vollmer's message of "Thu, 28 Oct 2004 13:48:29 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.lisp.guile.devel:4304 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4304 Marius Vollmer writes: > What worries me a bit right now is that one-dimensional shared > arrays look like (uniform) vectors, but you can't use them in all > the places that you can use (uniform) vectors. > > For example (excuse the density): > > (vector? (make-shared-array (make-array 1 3 3) (lambda (i) (list i i)) 3)) > => #f > > although one can of course argue that the diagonal of a 2-d array is a > vector. Yes, I think it's ugly to have two alternative representations for a 1-dimensional list of numbers (uniform vector + 1D uniform array). Just as we convert bignums small enough to fit in an inum, we should, in my opinion, only use the uniform vector representation. Or, perhaps even simpler, represent uniform vectors as 1D arrays. M _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel