From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Schukat Newsgroups: gmane.lisp.guile.bugs Subject: bug#14599: An option to make vector allocation aligned Date: Wed, 12 Jun 2013 17:32:35 +0200 Message-ID: <51B89493.8050805@email.de> References: <51B87998.9060402@email.de> <87a9mvide2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1371051198 9907 80.91.229.3 (12 Jun 2013 15:33:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 12 Jun 2013 15:33:18 +0000 (UTC) Cc: 14599@debbugs.gnu.org, request@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jun 12 17:33:17 2013 Return-path: Envelope-to: guile-bugs@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 1Umn2y-0007uP-KM for guile-bugs@m.gmane.org; Wed, 12 Jun 2013 17:33:16 +0200 Original-Received: from localhost ([::1]:52588 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umn2y-0003BF-2i for guile-bugs@m.gmane.org; Wed, 12 Jun 2013 11:33:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umn2r-0003AE-GE for bug-guile@gnu.org; Wed, 12 Jun 2013 11:33:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Umn2l-0002x0-1D for bug-guile@gnu.org; Wed, 12 Jun 2013 11:33:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Umn2k-0002wq-Uk for bug-guile@gnu.org; Wed, 12 Jun 2013 11:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Umn2k-0002kE-CK for bug-guile@gnu.org; Wed, 12 Jun 2013 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan Schukat Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 12 Jun 2013 15:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14599 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 14599-submit@debbugs.gnu.org id=B14599.137105116810486 (code B ref 14599); Wed, 12 Jun 2013 15:33:02 +0000 Original-Received: (at 14599) by debbugs.gnu.org; 12 Jun 2013 15:32:48 +0000 Original-Received: from localhost ([127.0.0.1]:59012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umn2V-0002j1-P4 for submit@debbugs.gnu.org; Wed, 12 Jun 2013 11:32:47 -0400 Original-Received: from mout.web.de ([212.227.17.11]:51778) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Umn2U-0002ia-E9; Wed, 12 Jun 2013 11:32:47 -0400 Original-Received: from [192.168.0.27] ([92.231.241.64]) by smtp.web.de (mrweb102) with ESMTPSA (Nemesis) id 0MUWBb-1UwWMo2RjX-00RLHh; Wed, 12 Jun 2013 17:32:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 In-Reply-To: <87a9mvide2.fsf@gnu.org> X-Provags-ID: V03:K0:l2JJ6U+EC9Z4WwLBhfzyAdhDP4T9/6PuwJn16C4y8MatdqHHMts 7KB7nH5VroTVi2udPy3l5B5Z21uJhBVnaPBJZDZ2tbb05RAtDvLEcJR4Nc/EClmxtvau0ZG bwTQpEqxi84k6afEOBYH+jS74QvYaWVxz6r+mHVr4pEexyPf5NtuYHXAPYvu+A6+ubW2UIi mdTbLT15AOIfEexBMA2Vw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7169 Archived-At: On 06/12/2013 04:59 PM, Ludovic Courtès wrote: > Instead, I would suggest using the scm_take_ functions if allocating > from C, as you noted. The whole point of me doing this is so I can use lisp files to define aligned data (and using lisp as a flexible text data format that can be compiled is the primary reason I use guile). So either I make normal vectors aligned, or I define a whole new set of datatypes of aligned vectors with their own read syntax. The former I just did today, the latter would take me probably a quite a bit of time to do properly. So, I'm gonna keep using my compile time option for now, and probably write a module of aligned vectors at some point in the future when I have more of an understanding what exactly the requirements for something like this would be. Jan