From: Gyoung-Yoon Noh Date: 2005-05-04T11:48:25+09:00 Subject: Re: I rock. On 5/4/05, Eric Hodel wrote: > On 03 May 2005, at 15:21, Ryan Davis wrote: > > > On May 3, 2005, at 1:32 PM, Gyoung-Yoon Noh wrote: > > > >> Python has PyRex which enables writing CPython extensions > >> with python-like syntax. I guess Ruby2RubyC can do a foundation > >> role for future great works such as writing extensions with ruby > >> syntax, enhancing performance easily with type conversion, > >> or can be used as intermediate format for translating Ruby to C. > > > > Ruby2RubyC will probably not, for the first few months at least, > > improve performance with any sort of type conversion at all. In fact, > > I suspect that Eric's current version will start to get fairly severe > > penalties until we move away from using rb_funcall for everything. > > Yup, it only bypasses the fast parts of eval.c (AST walking), and none > of the slow parts (rb_funcall) so you get almost zero speed benefit out > of it currently. (See the "time factorial(9999)" output further up the > thread). Oops, by 'type conversion', I meant PyRex-style C types usage. PyRex enables feeding native C types, instead of PythonC types, easily within its python-like syntax anywhere. In case of ruby, I think it will be much greater if it's possible to use RubyDL's type wrapper against native C types. -- http://nohmad.sub-port.net