Re: Interested in a port of Ruby's String#unpack

2011-12-29 Thread Geoff Salmon
I think I fixed the take-ulong problem, and I've pushed 0.2.0 to clojars. Let me know if you have any problems with it. - Geoff On Dec 27, 12:47 pm, Geoff Salmon wrote: > I've pushed some updates to get it running with 1.3. take-ulong is > still broken because clojure.lang.BigInt doesn't seem to

Re: Interested in a port of Ruby's String#unpack

2011-12-27 Thread Geoff Salmon
I've pushed some updates to get it running with 1.3. take-ulong is still broken because clojure.lang.BigInt doesn't seem to support bit- and, but if you don't need that, give it a shot. On Dec 27, 9:11 am, mrb_bk wrote: > This looks great, take-ubyte is basically exactly what I needed.  I'll > le

Re: Interested in a port of Ruby's String#unpack

2011-12-27 Thread mrb_bk
This looks great, take-ubyte is basically exactly what I needed. I'll let you know if it works when I try it out this afternoon -- not sure what kind of work needs to be done to bring it up to date. On Dec 27, 1:03 am, Geoff Salmon wrote: > Hi, does the unpack function in this library do what yo

Re: Interested in a port of Ruby's String#unpack

2011-12-26 Thread Geoff Salmon
Hi, does the unpack function in this library do what you're looking for? https://github.com/geoffsalmon/bytebuffer It unpacks values from Java's ByteBuffer objects instead of strings, which seemed more appropriate in Java-land. I haven't touched the code since Clojure 1.2, but if it looks useful I

Re: Interested in a port of Ruby's String#unpack

2011-12-26 Thread mrb_bk
I also thought I would mention that I've been hanging out in #clojure as mrb_bk - please hit me up if you would like to chat about this. On Dec 26, 10:08 am, mrb_bk wrote: > Hey Everyone: > > I'm working on a project in Clojure that involves parsing binary data > files.  Specifically, I'm buildin