From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: Uniform vectors, user survey Date: Sat, 23 Oct 2004 15:02:20 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <417A646C.4050505@ossau.uklinux.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098540181 22099 80.91.229.6 (23 Oct 2004 14:03:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2004 14:03:01 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 23 16:02:46 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 1CLMTl-0000lj-00 for ; Sat, 23 Oct 2004 16:02:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLMbJ-0002ZN-Ji for guile-user@m.gmane.org; Sat, 23 Oct 2004 10:10:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CLMbF-0002YS-H2 for guile-user@gnu.org; Sat, 23 Oct 2004 10:10:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CLMbE-0002Xl-Qp for guile-user@gnu.org; Sat, 23 Oct 2004 10:10:29 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CLMbE-0002Xe-NV for guile-user@gnu.org; Sat, 23 Oct 2004 10:10:28 -0400 Original-Received: from [80.84.72.33] (helo=mail3.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CLMTd-00034M-Hr for guile-user@gnu.org; Sat, 23 Oct 2004 10:02:37 -0400 Original-Received: from laruns (host81-130-97-48.in-addr.btopenworld.com [81.130.97.48]) by mail3.uklinux.net (Postfix) with ESMTP id C03D8409FC0; Sat, 23 Oct 2004 14:02:35 +0000 (UTC) Original-Received: from ossau.uklinux.net (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id DC9866F813; Sat, 23 Oct 2004 15:02:20 +0100 (BST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3 X-Accept-Language: en Original-To: Marius Vollmer In-Reply-To: X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.lisp.guile.user:3615 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3615 Marius Vollmer wrote: >Hi, > > Hi Marius >I want to unify our two implementations of uniform vectors, and make >them more useful. > > Sounds like a good objective. >I have close to zero experience with using uniform vectors myself, so >I appreciate your input. Do you use uniform vectors? What for? Did >you try but couldn't make them work for you? What do you wish would >be different about them? Etc. > > I use uniform byte vectors in my Guile extension to an application whose interfaces are all expressed in terms of C structs, so that I can build the struct (represented as a uniform byte vector) in Scheme and then call a C function that does the generic "dispatch this struct" operation. I could now rewrite this using a SMOB instead (and arguably should, as that would give me better control over how the struct memory is shared between C and Scheme), but that would have slowed down my prototyping, and at the time it was very nice to get something up and running quickly. Hope this is useful. Regards, Neil _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user