From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: data type ByteBuffer Date: Thu, 06 May 2004 11:53:16 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <878yg5g9v7.fsf@ivanova.rotty.yi.org> References: <92C45B78-9F30-11D8-BD05-000A958866C4@qwest.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083838068 6508 80.91.224.253 (6 May 2004 10:07:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 May 2004 10:07:48 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu May 06 12:07:39 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLfn1-0003hL-00 for ; Thu, 06 May 2004 12:07:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLflG-0000U9-F0 for guile-devel@m.gmane.org; Thu, 06 May 2004 06:05:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLfke-0000QP-1U for guile-devel@gnu.org; Thu, 06 May 2004 06:05:12 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLfk1-0000BH-D7 for guile-devel@gnu.org; Thu, 06 May 2004 06:05:05 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLffm-0007hM-KT for guile-devel@gnu.org; Thu, 06 May 2004 06:00:10 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BLffl-0002me-00 for ; Thu, 06 May 2004 12:00:09 +0200 Original-Received: from chello080109053157.14.14.univie.teleweb.at ([80.109.53.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 May 2004 12:00:09 +0200 Original-Received: from a.rottmann by chello080109053157.14.14.univie.teleweb.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 May 2004 12:00:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: guile-devel@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: chello080109053157.14.14.univie.teleweb.at User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:ZRZi7JlnJT5KLq7Y+UuD+krouXs= X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 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:3679 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3679 "Steven Wu" writes: > I wonder if there is a built-in simple data type like ByteBuffer in > Java, or Message_Block in ACE. It seems to me, when dealing with > network programing, such a data type can be very efficient. The > Message_Block in ACE emulates SysV message block used in device driver > with reference counting, and the concept of adding continue blocks. It > shouldn't be very hard to implement the similar thing in guile. > I've lately added GString support to the Guile GLib bindings, which can be used like a ByteBuffer, but isn't refcounted. I agree that such a data type would indeed be useful. Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel