[libxml-devel] implementing in Ruby vs C
Aaron Patterson
aaron.patterson at gmail.com
Fri Jul 11 12:23:34 EDT 2008
On Fri, Jul 11, 2008 at 8:52 AM, Sean Chittenden <sean at chittenden.org> wrote:
>> As I've started reading through the libxml-ruby code, I have run
>> across methods implemented in C that could be implemented in Ruby. I
>> would like to change them to be implemented in Ruby. Is anyone
>> opposed to that? I think it would make coding easier, less buggy, and
>> more fun!
>
>
> I'm not entirely opposed to the idea... but am curious for some example
> functions. :) -sc
XML::Parser.register_error_handler could be implemented in ruby.
ruby_xml_attr_not_type_name() could be implemented in ruby.
All of the rb_define_consts in ruby_xml_node.c
ruby_xml_node_set_xpath_get() in ruby_xml_node_set.c
Thats all I can remember for now! haha!
I haven't read through all of the code, but I'm just guessing there
are more things....
By the way, I added a patch to the tracker to do some cleanups in the tests.
http://rubyforge.org/tracker/?func=detail&aid=21162&group_id=494&atid=1973
--
Aaron Patterson
http://tenderlovemaking.com/
More information about the libxml-devel
mailing list