Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Peter Bex
On Thu, Jan 31, 2013 at 09:14:32AM +, Alaric Snell-Pym wrote: On 01/31/2013 01:06 AM, Hugo Arregui wrote: That's right, in fact, when I started the project I think to do so, just create the bindings, but, to be honest, I think it will more fun if I do it from scratch. In general, I

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Jim Ursetto
FYI, the docs for endian-blob don't indicate the ordering of the endian blob after type-endian_blob. From reading the code it's MSB and there's an optional mode arg to these procedures. Should this be documented? Similarly the optional mode argument to byte-blob-endian-blob is documented as

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Hugo Arregui
I think you are right Jim, This is the way that C implementation packs float/doubles: https://github.com/msgpack/msgpack-c/blob/master/pack_template.h#L635 Regards, Hugo ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Ivan Raikov
You are right, I have updated the endian-blob documentation accordingly. Thanks, Ivan On Fri, Feb 1, 2013 at 8:16 AM, Jim Ursetto zbignie...@gmail.com wrote: FYI, the docs for endian-blob don't indicate the ordering of the endian blob after type-endian_blob. From reading the code it's

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-31 Thread Jim Ursetto
On Jan 28, 2013, at 2:53 PM, Hugo Arregui wrote: 3) To read/write float/double numbers (in ieee754) i'm using endian-blob egg (here[4]), it's there any alternative without implementing the full float/double-binary logic (which seems quite complicated)? Maybe I'm overlooking something, but

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-30 Thread Kristian Lein-Mathisen
Hi Hugo, Msgpack seems like an interesting project indeed. Thanks for making an egg for it! I'm quite a newbie myself, but I noticed the coops egg includes the module implementation directlyhttp://bugs.call-cc.org/browser/release/4/coops/trunk/coops-module.scm, so you don't have to declare two

[Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-28 Thread Hugo Arregui
Hi, Recently I wrote an implementation of msgpack[1], which can be found here[2]. This is my first full project in scheme, so I would appreciate any feedback (please, be destructive). A couple of points already has been mentioned: - Macros to reduce redundancy (I'm reading about them, so I'm

Re: [Chicken-users] Msgpack implementation for scheme (and some questions)

2013-01-28 Thread Ivan Raikov
Hi Hugo, Thanks for your work on msgpack, it seems like an interesting project. Unfortunately, machine floating point formats are complicated, so any related code will be complicated as well. I don't know much about the msgpack protocol, but if representing floating-point numbers as strings