BitStructEx
I've made available an early version of an alternative BitStruct "thing" on RubyForge:
http://rubyforge.org/projects/bit-struct-ex/
In contrast to the nice and more feature-complete implementation available here, I
focused on solving my main problem: Non-byte-boundary-aligned-nested-structures :)
There's really a lot to like about Ruby.. I enjoy not coding in Java.. a welcome change..
However, the meta-programming parts can still be.. well.. "mind-bending".. I'll probably blog about the meta part used in BitStructEx. You basically jump between instance, class and metaclass - even though the methods are right next to each other.. feels weird sometimes.. more on this soon.. (Have a look at the struct_base.rb file if you're interested.)
tfdj
http://rubyforge.org/projects/bit-struct-ex/
In contrast to the nice and more feature-complete implementation available here, I
focused on solving my main problem: Non-byte-boundary-aligned-nested-structures :)
There's really a lot to like about Ruby.. I enjoy not coding in Java.. a welcome change..
However, the meta-programming parts can still be.. well.. "mind-bending".. I'll probably blog about the meta part used in BitStructEx. You basically jump between instance, class and metaclass - even though the methods are right next to each other.. feels weird sometimes.. more on this soon.. (Have a look at the struct_base.rb file if you're interested.)
tfdj


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home