[racket] H264 Codec in Racket

From: Neil Toronto (neil.toronto at gmail.com)
Date: Thu Jun 7 19:27:30 EDT 2012

On 06/07/2012 04:29 PM, Robby Findler wrote:
> Why not use bytes?

Even if you try to just use bytes, you end up using fixnums:

 > (fixnum? (bytes-ref (bytes 0 1 2 3) 3))

What I mean is there's no way to operate on a data type that's exactly 8 
bits wide. (Unless you can use the FFI for that, but then I think you'll 
take a lot of performance hits on contract checking.)

> Also, if the algorithms are parallel, you might consider using futures.

Good idea. I wonder if anyone has investigated whether it's 
significantly easier to use futures effectively in Typed Racket. Its 
optimizations are designed to avoid allocation.

Neil ⊥

Posted on the users mailing list.