[Chicken-users] working with bit- and byte-level structures

2008-04-16 Thread Martin DeMello
Interesting post on one of the advantages of C++ - I just wondered how such problems are handled in the scheme world -- What you can do in C++ that you *can't* do in Java is define a class whose

Re: [Chicken-users] working with bit- and byte-level structures

2008-04-16 Thread john
The idea behind packedobjects is to be able to use an abstract syntax for describing what gets bit packed into messages to be sent across a network. The syntax is loosely based on ASN.1 but uses s-expressions to avoid the need for an ASN.1 compiler. The encoding is based on unaligned Packed

Re: [Chicken-users] working with bit- and byte-level structures

2008-04-16 Thread Martin DeMello
Ah - okay, if it's serialisation-specific, it's not what I'm looking for. I was looking for an analogue to the C trick of interpreting a block of bits as a struct quickly and efficiently. martin On Wed, Apr 16, 2008 at 11:16 AM, john [EMAIL PROTECTED] wrote: The idea behind packedobjects is to

Re: [Chicken-users] working with bit- and byte-level structures

2008-04-16 Thread Hans Bulfone
hi, On Wed, Apr 16, 2008 at 11:38:44AM -0700, Martin DeMello wrote: Ah - okay, if it's serialisation-specific, it's not what I'm looking for. I was looking for an analogue to the C trick of interpreting a block of bits as a struct quickly and efficiently. maybe you can use

Re: [Chicken-users] working with bit- and byte-level structures

2008-04-16 Thread Martin DeMello
On Wed, Apr 16, 2008 at 12:09 PM, Hans Bulfone [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at 11:38:44AM -0700, Martin DeMello wrote: Ah - okay, if it's serialisation-specific, it's not what I'm looking for. I was looking for an analogue to the C trick of interpreting a block of bits