Ideally Reflection would be fast and we wouldn't need any workarounds to load built-ins fast. But that's not the case, so we use initializers.
As for the scenarios you mentioned: 1. Porting Ruby native extensions Why not to write them in Ruby with calls to .NET Framework assemblies? Is there anything that makes this difficult? 2. Create an IronRuby library in C# in order to improve performance of a certain operation Couldn't you write the parts whose perf matter in C# code that doesn't have all the Ruby bells and whistles and keep your library written in Ruby? Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shay Friedman Sent: Sunday, October 11, 2009 10:26 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] IronRuby C# Extensions By the way, if we're at the subject... Ivan does have a point there, but why were the standard libraries written this way? Thanks, Shay. On Sun, Oct 11, 2009 at 7:19 PM, Shay Friedman <shay.fried...@gmail.com<mailto:shay.fried...@gmail.com>> wrote: Right, but this way you have more control on the "translation" of your Dll to IronRuby. Shay. On Sun, Oct 11, 2009 at 7:14 PM, Ivan Porto Carrero <i...@flanders.co.nz<mailto:i...@flanders.co.nz>> wrote: But wouldn't you be able to accomplish these scenarios just by requiring a C# built dll? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 7:03 PM, Shay Friedman <shay.fried...@gmail.com<mailto:shay.fried...@gmail.com>> wrote: 2 samples I can think of - 1. Porting Ruby native extensions 2. Create an IronRuby library in C# in order to improve performance of a certain operation Shay. On Sun, Oct 11, 2009 at 6:57 PM, Ivan Porto Carrero <i...@flanders.co.nz<mailto:i...@flanders.co.nz>> wrote: Just require an assembly should work just as well I guess. When would you need to use the RubyClass etc attributes and the initializer? What is the added value of those? --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Sun, Oct 11, 2009 at 6:51 PM, Shay Friedman <shay.fried...@gmail.com<mailto:shay.fried...@gmail.com>> wrote: Is it possible to consider allowing to load extensions without the need of a library initializer? (another argument in the load_assembly method for example) Currently, the library initializer makes the whole thing much more complicated... Thanks, Shay. On Sun, Oct 11, 2009 at 6:27 PM, Tomas Matousek <tomas.matou...@microsoft.com<mailto:tomas.matou...@microsoft.com>> wrote: Basically to avoid reflection when loading the classes and modules. Tomas -----Original Message----- From: ironruby-core-boun...@rubyforge.org<mailto:ironruby-core-boun...@rubyforge.org> [mailto:ironruby-core-boun...@rubyforge.org<mailto:ironruby-core-boun...@rubyforge.org>] On Behalf Of Shay Friedman Sent: Sunday, October 11, 2009 9:14 AM To: ironruby-core@rubyforge.org<mailto:ironruby-core@rubyforge.org> Subject: Re: [Ironruby-core] IronRuby C# Extensions I found out I needed an initializer... I have a question - why do we need initializers if we define everything on the attributes? Thanks, Shay. -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org<mailto:Ironruby-core@rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay -- -------------------------------------------------- Shay Friedman Author of IronRuby Unleashed http://www.IronShay.com Follow me: http://twitter.com/ironshay
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core