Would a multi-file assembly be a good fit for this? I haven't worked much with them, so I'm not sure about including multiple namespaces within one, but I would imagine it's entirely possible.
On Wed, Apr 30, 2008 at 10:02 PM, Michael Letterle < [EMAIL PROTECTED]> wrote: > It may not be /too/ bad if the intent is to load the CLR code, but not > expose it to the ruby runtime until a "require" is called for that > library.. though I agree, I'd rather have it implemented as separate > dlls. This also becomes relevant when we start talking about IronRuby > and silverlight, not all silverlight apps are going to need all > libraries (or even most) keeping it small is important, but if a > library is needed it shouldn't need to take a bunch of baggage with > it. > > On Wed, Apr 30, 2008 at 10:55 PM, Wayne Kelly <[EMAIL PROTECTED]> wrote: > > > > Are you suggesting that long term - modules like digest and openssl > remain in the IronRuby.Libraries and be automatically loaded at startup? > > > > I had assumed that this was just a temporary hack and I think long term > it is the wrong way to go. There are both performance and compatibility > arguments ... Firstly, the overhead of loading non-builtin modules such as > digest should only be incurred for those applications that explicitly choose > to require it. Secondly, by automatically loading such modules, we are > poluting the global namespace and setting up possible collisions with > programmer created classes. > > In general, loading a module can have side effects. At present there > are only a handful of such modules, but long term there will be dozens, if > not hundreds. Matz should be the one that decides which modules get loaded > automatically and which require explicit loading. > > > > Cheers, Wayne. > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > Tomas Matousek > > > Sent: Thursday, 1 May 2008 11:38 AM > > > To: [email protected] > > > Subject: Re: [Ironruby-core] Opening up our tree to external > > > committers > > > > > > I don't think we should go crazy and create one dll per > > > library. Loading dlls has some overhead. Since digest and > > > openssl are just IronRuby stubs for functionality already > > > implemented in BCL, it could be in one dll. I need to figure > > > out how to do loading of Ruby libraries contained in an > > > assembly, but I think it could be done. > > > > > > Tomas > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kelly > > > Sent: Wednesday, April 30, 2008 4:40 PM > > > To: [email protected] > > > Subject: Re: [Ironruby-core] Opening up our tree to external > > > committers > > > > > > > > > For consistency, can we also separate the other standard > > > libraries such as digest, openssl, etc (that require explicit > > > loading) into separate assemblies? > > > This of course, first requires us to be able to load such assemblies. > > > > > > There will of course be an ever increasing set of such > > > libraries, so it would be nice to have a relatively > > > lightweight process to allow such new directories/libraries > > > to be created. > > > > > > Note, some of these libraries might be implemented using a > > > combination of Ruby and C# code. > > > > > > I hope this mechanism will enable people to upload prototypes > > > of what they're working on, so that we don't need to wait > > > until something is complete and polished before seeing it. > > > > > > Perhaps we could have a generic IronRuby.Misc that people > > > could create directories beneath initially, which could then > > > be moved to top level status once they've matured. > > > > > > Cheers, Wayne. > > > _______________________________________________ > > > 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 > > > > > _______________________________________________ > > Ironruby-core mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > > -- > Michael Letterle > [Polymath Prokrammer] > http://blog.prokrams.com > _______________________________________________ > Ironruby-core mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/ironruby-core > -- Ryan Riley [EMAIL PROTECTED] http://www.panesofglass.org/
_______________________________________________ Ironruby-core mailing list [email protected] http://rubyforge.org/mailman/listinfo/ironruby-core
