Why not create an executable assembly that embeds all the Ruby files as resources in the assembly? Extract them at runtime (you could probably just keep them in a memory stream), fire up a Ruby runtime host & engine, feed it the Ruby file, and away you go.
Or am I missing something that would make this infeasible? -- Will Green http://hotgazpacho.org/ On Tue, May 11, 2010 at 9:20 PM, David Escobar <davidesco...@ieee.org>wrote: > Ok, that's certainly an option to look into. I guess what people want is > the ability to distribute applications and libraries in .exe and .dll form, > the same way we do with C# or VB. But perhaps it's a question of scope - > maybe IronRuby is not intended to be a 1st class .NET language in the same > way that C# or VB are, or it's only intended to be a language for embedding > in a static language or for unit testing purposes? > > The other reason is that it provides some (small) level of code > obfuscation. I realize of course that the assemblies can be reverse > engineered, but most users won't bother to do that - they'll just be > interested in running the .exe. > > > > On Tue, May 11, 2010 at 6:04 PM, Tomas Matousek < > tomas.matou...@microsoft.com> wrote: > >> Well, there is a pretty simple way how to package up .rb files into an >> .exe file w/o precompiling anything. One option is to build a >> self-extracting zip file or something like that. That would solve the >> deployment issue. Improving startup time via pre-compilation is much more >> work. >> >> >> >> Tomas >> >> >> >> *From:* ironruby-core-boun...@rubyforge.org [mailto: >> ironruby-core-boun...@rubyforge.org] *On Behalf Of *David Escobar >> *Sent:* Tuesday, May 11, 2010 5:48 PM >> >> *To:* ironruby-core@rubyforge.org >> *Subject:* Re: [Ironruby-core] What's next? >> >> >> >> Pre-compiling code would allow us to distribute our programs in .exe and >> .dll form, rather than .rb files. IronPython allows this with its pyc.py >> script. And if that means faster startup times and using Ruby code >> statically from C#, then all the better. >> >> On Tue, May 11, 2010 at 3:06 PM, Tomas Matousek < >> tomas.matou...@microsoft.com> wrote: >> >> What would you like to achieve by pre-compiling code? Faster startup time? >> Packaging your code in a dll instead of a bunch of .rb files? Using Ruby >> code statically from C#? >> >> Tomas >> >> >> -----Original Message----- >> From: ironruby-core-boun...@rubyforge.org [mailto: >> ironruby-core-boun...@rubyforge.org] On Behalf Of Martin Smith >> Sent: Tuesday, May 11, 2010 11:14 AM >> To: ironruby-core@rubyforge.org >> Subject: [Ironruby-core] What's next? >> >> Hey Guys, >> >> Now that IronRuby 1.0 has shipped (congrats!!), what's next on the docket? >> :) I'm not trying to pressure you guys! Just excited about the future. >> The feature i'd love to see most would be pre-compilation... >> >> Thanks for such a great product, >> Martin >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core@rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core@rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core