Re: binary structures/bitstrings

2010-04-20 Thread Scott T
After looking through the code and tests, it looks like *exactly* what
I'll need and I doubt I'll need/want to change anything.  Thanks for
the docs as well - it's nice to see code that looks like it was
written like you meant it :).

I'll probably use clojure to build my prototype (with all 8.5 seconds
of free time I have), and if I come up with any feedback or
contributions, I'll let you know.

-Scott

On Apr 19, 8:52 pm, Scott T scott.tho...@gmail.com wrote:
 Thanks a lot for pulling that out.  I'll let you know how it goes.

 -Scott

 On Apr 19, 1:40 am, Geoff geoff.sal...@gmail.com wrote:



  I've pushed the bytebuffer stuff into it's own repo and project and
  cleaned up the documentation a bit.
  Seehttp://github.com/geoffsalmon/bytebuffer

  I'd appreciate any feedback you have after trying it out.

  - Geoff

  --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with 
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: binary structures/bitstrings

2010-04-19 Thread Geoff
I've pushed the bytebuffer stuff into it's own repo and project and
cleaned up the documentation a bit.
See http://github.com/geoffsalmon/bytebuffer

I'd appreciate any feedback you have after trying it out.

- Geoff

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: binary structures/bitstrings

2010-04-19 Thread Scott T
Thanks a lot for pulling that out.  I'll let you know how it goes.

-Scott

On Apr 19, 1:40 am, Geoff geoff.sal...@gmail.com wrote:
 I've pushed the bytebuffer stuff into it's own repo and project and
 cleaned up the documentation a bit.
 Seehttp://github.com/geoffsalmon/bytebuffer

 I'd appreciate any feedback you have after trying it out.

 - Geoff

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: binary structures/bitstrings

2010-04-18 Thread Geoff
I've implemented something similar for working with
java.nio.ByteBuffer objects to pull apart and build network packets,
but it's not packaged as a separate library right now. Look at
http://github.com/geoffsalmon/bonjure/blob/master/src/bonjure/bytebuffer.clj
specifically the pack, unpack, pack-bits, unpack-bits functions. Does
that do what you need? There's examples in the tests
http://github.com/geoffsalmon/bonjure/blob/master/test/bonjure/bytebuffer_test.clj
I've only used it for one particular task, but I'd like to separate it
and push it to clojars. It's about time I learn how to do that.

- Geoff

On Apr 16, 9:28 pm, Scott T scott.tho...@gmail.com wrote:
 Does anyone know of a clojure library for handling (un)packing of
 binary structures?  I'm looking for something similar to perl/ruby/
 python's pack(...) function or something like OCaml's bitstring
 module.  My initial google and clojure-contrib perusing hasn't turned
 up anything obvious though I've found at least one interesting blog
 post on a related subject.

 If there is such a thing in existence I'd like to know about it
 otherwise I'll probably want to create it - to scratch my own itch -
 and maybe someone else will have an interest in such a thing.

 -stt

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: binary structures/bitstrings

2010-04-18 Thread Scott T
Well, network packets would also be a good use of what I was looking
for and it looks *very* much like something useful for what I want.
I'll clone it and try it in the next few days.  My intention is to use
it for some low-level structures inside virtual disk files...

I haven't done anything with clojars either.

On Apr 18, 9:17 am, Geoff geoff.sal...@gmail.com wrote:
 I've implemented something similar for working with
 java.nio.ByteBuffer objects to pull apart and build network packets,
 but it's not packaged as a separate library right now. Look 
 athttp://github.com/geoffsalmon/bonjure/blob/master/src/bonjure/bytebuf...
 specifically the pack, unpack, pack-bits, unpack-bits functions. Does
 that do what you need? There's examples in the 
 testshttp://github.com/geoffsalmon/bonjure/blob/master/test/bonjure/bytebu...
 I've only used it for one particular task, but I'd like to separate it
 and push it to clojars. It's about time I learn how to do that.

 - Geoff

 On Apr 16, 9:28 pm, Scott T scott.tho...@gmail.com wrote:



  Does anyone know of a clojure library for handling (un)packing of
  binary structures?  I'm looking for something similar to perl/ruby/
  python's pack(...) function or something like OCaml's bitstring
  module.  My initial google and clojure-contrib perusing hasn't turned
  up anything obvious though I've found at least one interesting blog
  post on a related subject.

  If there is such a thing in existence I'd like to know about it
  otherwise I'll probably want to create it - to scratch my own itch -
  and maybe someone else will have an interest in such a thing.

  -stt

  --
  You received this message because you are subscribed to the Google
  Groups Clojure group.
  To post to this group, send email to clojure@googlegroups.com
  Note that posts from new members are moderated - please be patient with 
  your first post.
  To unsubscribe from this group, send email to
  clojure+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/clojure?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your 
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


binary structures/bitstrings

2010-04-17 Thread Scott T
Does anyone know of a clojure library for handling (un)packing of
binary structures?  I'm looking for something similar to perl/ruby/
python's pack(...) function or something like OCaml's bitstring
module.  My initial google and clojure-contrib perusing hasn't turned
up anything obvious though I've found at least one interesting blog
post on a related subject.

If there is such a thing in existence I'd like to know about it
otherwise I'll probably want to create it - to scratch my own itch -
and maybe someone else will have an interest in such a thing.

-stt

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en