Mark J. Reed wrote:

>
>I've got the bare bones of a Ruby implementation of adaptive arithmetic
>encoding, using the Rational module.  But it's r-e-a-l-l-y s-l-o-w. :)
>
>-Mark
>  
>

Heh. :)  Well, the point of doing it in Ruby isn't to win races, I 
guess.  It's more to make these things portable.  I'm sure a zlib or 
bzip2 algorithm implemented in Ruby would be dog slow, too, but the 
convenience provided by having them available directly, on any platform, 
has to be taken into account.

Is your code in the RAA, perchance?  I'd be interested in taking a peek.

-- 
Jamis Buck
jgb3 / email.byu.edu

ruby -h | ruby -e 'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a << r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'