From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Hidding Newsgroups: gmane.lisp.guile.user Subject: array vs. bytevector Date: Thu, 15 Sep 2011 16:45:57 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1316097969 946 80.91.229.12 (15 Sep 2011 14:46:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 14:46:09 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 15 16:46:06 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R4DCX-0005av-L5 for guile-user@m.gmane.org; Thu, 15 Sep 2011 16:46:05 +0200 Original-Received: from localhost ([::1]:50035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4DCX-0002Lr-6w for guile-user@m.gmane.org; Thu, 15 Sep 2011 10:46:05 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4DCT-0002LZ-G7 for guile-user@gnu.org; Thu, 15 Sep 2011 10:46:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4DCS-0000Eo-8X for guile-user@gnu.org; Thu, 15 Sep 2011 10:46:01 -0400 Original-Received: from mail-pz0-f43.google.com ([209.85.210.43]:51542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4DCS-0000Ek-3t for guile-user@gnu.org; Thu, 15 Sep 2011 10:46:00 -0400 Original-Received: by pzd13 with SMTP id 13so1478539pzd.30 for ; Thu, 15 Sep 2011 07:45:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=nZHzYdslzHrIS9xHwLvFOiNwAjKJF3Grgo3cfFIqlyI=; b=LqxktzUXQNXXMk03rEmVClz69vqbaYtCE2FiKFZJ+hus53XWebtIKaKDCppb3+4f17 w2mfnbDRl/AVKgyiOBmIdD96ss+tEMb591P5q+0y/hEAe+goH5cGvHJhhY1L2Gg5wVC0 6/+D9CCXIrtP0lEzk32GOryHVE+myc2JklYI8= Original-Received: by 10.68.0.37 with SMTP id 5mr24809pbb.77.1316097957912; Thu, 15 Sep 2011 07:45:57 -0700 (PDT) Original-Received: by 10.68.56.65 with HTTP; Thu, 15 Sep 2011 07:45:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.43 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8789 Archived-At: Hi, I was playing around with guile arrays, saving and restoring them from disk. There are nice method called (uniform-array-read! ...) and (uniform-array-write ...), however these are depricated in favour of bytevector i/o. What is the prefered method to interpret the data as an array? There is (bytevector-ieee-double-ref ...) but that is quite cumbersome especially when dealing with multidimensional complex arrays; then I could use (c64vector-ref ...), but this interface is not as versatile as with arrays. It would be simplest if (put-bytevector ...) would accept an array as argument, but this gives a type-error (at least in guile-2.0.2) Any help would be greatly appreciated. Cheers, Johan