Kim is the dev who works on System.IO.Compression. I asked her about whether Ruby's zlib library could be built on top of System.IO.Compression? Here are her comments and questions. Michael, if you would like to get any guidance/answers from Kim, she is available for response.
I'm not sure if you saw my blog on this topic, but zlib can be implemented by wrapping our DeflateStream with the header/checksum modifications described in the blog. http://blogs.msdn.com/bclteam/archive/2007/05/16/system-io-compression-capabilities-kim-hamilton.aspx John (Lam) asked me about that blog in the past. At the time I looked at the Ruby docs to see what would be missing from a zlib implementation created that way. These were the issues: * Zlib::Deflate.set_dictionary: we don't support preset dictionaries. Do you have a feel for how common it is to use present dictionaries in Ruby? * We don't support compression levels, as in Zlib::Deflate.delate(level). Both of these can be worked around, but these are ways in which our capabilities are inferior if the workaround above is used. Thanks, Shri Want to work on IronPython, IronRuby, F#?<http://blogs.msdn.com/ironpython/archive/2008/02/25/ironpython-ironruby-and-f-openings-in-dev-test-and-pm.aspx> Visit http://blogs.msdn.com/ironpython -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Messerly Sent: Thursday, March 06, 2008 11:43 PM To: [email protected] Subject: Re: [Ironruby-core] External libraries implementation status update Michael Letterle: > Alright, I started doing this tonight (finally) GZip was pretty > straight forward, but Inflate may be a problem, The > System::IO::Compression.DeflateStream is RFC 1951 compliant /not/ > 1950.. Meaning it only covers Deflate, not ZLib in general. See here: > https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx? > F > eedbackID=97064&wa=wsignin1.0 > > I'll research this more tomorrow, I'd hate to have to have an external > dependency like Zlib.NET Yeah, DeflateStream only implements the basic deflate algorithm, with no configuration options. Worse, it doesn't have particularly good compression ratio. Definitely worth investigating a port of a more fully featured library... - John _______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
