[MacRuby-devel] Information about the new YAML module

2009-08-03 Thread Patrick Thomson

Hi everyone,

I've just pushed my work on a new YAML module to the experimental branch 
(revision 2184). Rather than being backed by the old syck code that 
1.8/1.9 use, this is backed by the libYAML library (BSD licensed). As of 
right now it appears to be about 4x slower than 1.9's YAML module, but 
there's a lot of room for optimizing my code.


This new YAML module aims to be wholly compatible with the old API 
inside yaml.rb. *Please *test this module out, and let me know if you 
find any inconsistencies or false results. As of right now it passes the 
RubySpecs for YAML::dump() and YAML::load().


(Oh, and sorry for spamming the macruby-changes list; git-svn applied 
something like 40 commits at one time. Oops!)


-- Patrick Thomson
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] zlib status

2009-08-18 Thread Patrick Thomson

Hi everyone,

I'm working on porting ext/zlib to MacRuby right now. I took a look at 
zliby - though it's certainly nice to have a zlib implementation in pure 
Ruby, zliby seems to be kind of dead in the water (according to its 
RubyForge page, it hasn't been updated in almost a year).
Additionally, zliby is orders of magnitude slower than ext/zlib 
(decompressing a 2MB gzipped MP3 with ext/zlib took 0.064 seconds with 
ext/zlib and 73.909 seconds (yes, over a minute) with zliby).
Porting the library will take a little while, as for performance reasons 
zlib needs to use ByteStrings. So be patient, and it'll be here before 
you know it. :-)


-- Patrick

>  We are almost there, Etc, Zlib and Socket are still missing.
>  Last I heard, Laurent had a "plan" for Zlib, knowing him, it's probably a
>  great and efficient idea.
>  Make sure to check with him before starting on that. (running some
>  benchmarks on zliby wouldn't hurt anyone)
>
>  Once function_method will be working again, many more stdlibs should also
>  be in a better shape (Math, CMath etc..)
>
>  There is a lot of work being done, unfortunately not much we can see yet.
>
>  - Matt
 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel