Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread Ola Bini
Charles Oliver Nutter wrote: I just finished up compilation on BEGIN and END blocks, which brings the compiler to completion. I've also successfully been able to compile the entire standard library and run IRB and RubyGems entirely off compiled scripts (i.e. I deleted all the .rb files). OptN

Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread Charles Oliver Nutter
Ola Bini wrote: I was thinking if the slowness of loading is because of all the class loaders used... Would it make sense to let the standard library run with the same class loader, you think? And in the same manner, when we're talking about compiling RubyGems on installation, having the same c

Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread tsuraan
> The Compiler Is Complete. > > (and I have first dibs on blogging it) Congratulations! - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread John Wells
- "Charles Oliver Nutter" <[EMAIL PROTECTED]> wrote: > The Compiler Is Complete. Congratulations guys. I'm extremely excited to soon benefit from all your hard work! ;) John - To unsubscribe from this list please visit:

[jruby-dev] Caching of implementer

2007-09-28 Thread Ola Bini
Hi, I've implemented caching of the implementer in CallAdapter. Take a look and see what you think. It improves invocation of included Module methods high in larger hierarchies by about 10% while not adding any noticeable penalty to other invocations. Cheers -- Ola Bini (http://ola-bini.blo

RE: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread Peter K Chan
That's great, Charles. What about the memory aspect of the compiler? I know that it is still early in the construction, but can you give some idea as to whether a compiled JRuby app will be heavier or lighter than a regular interpreted JRuby app? Peter -Original Message- From: [EMAIL PRO

[jruby-dev] [Mac OS X] extending jRuby for Apple Events

2007-09-28 Thread Yvon Thoraval
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, i'd like to use a C extension to Ruby into jRuby. i know it isn't possible however i know, from developer of this extension, that only one part needs C, this part is related to Apple Event Manager. then i need some advices on how to i

Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread Charles Oliver Nutter
Peter K Chan wrote: That's great, Charles. What about the memory aspect of the compiler? I know that it is still early in the construction, but can you give some idea as to whether a compiled JRuby app will be heavier or lighter than a regular interpreted JRuby app? Most signs point to it bein

Re: [jruby-dev] [Mac OS X] extending jRuby for Apple Events

2007-09-28 Thread Charles Oliver Nutter
Yvon Thoraval wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey all, i'd like to use a C extension to Ruby into jRuby. i know it isn't possible however i know, from developer of this extension, that only one part needs C, this part is related to Apple Event Manager. then i need some

[jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Charles Oliver Nutter
This could be really big. Patch attached. ## script require 'benchmark' c = 0 script = 'a = 1; b = 2; c = c + a + b' bnd = binding puts "implicit binding" puts Benchmark.realtime { 100.times { eval script } } puts "explicit binding" puts Benchmark.realtime { 100.times { eval script, bnd

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Raphaël Valyi
On 9/28/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > > This could be really big. Patch attached. [...] ## before > ~/NetBeansProjects/jruby $ jruby bench_eval.rb > implicit binding > 85.61300015449524 > explicit binding > 81.4769809265 > ~/NetBeansProjects/jruby $ jruby -J-server -

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Charles Oliver Nutter
I forgot the MRI numbers: ~/NetBeansProjects/jruby $ ruby bench_eval.rb implicit binding 9.50195717811584 explicit binding 9.21342587471008 Charles Oliver Nutter wrote: ## before ~/NetBeansProjects/jruby $ jruby bench_eval.rb implicit binding 85.61300015449524 explicit binding 81.4769809265

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Raphaël Valyi
Still, from what I searched in the Rails codebase, I think there is no big eval usage in Rails. But for sure having such a fast eval interpreter is great. On 9/28/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > > I forgot the MRI numbers: > > ~/NetBeansProjects/jruby $ ruby bench_eval.rb >

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Charles Oliver Nutter
Raphaël Valyi wrote: Still, from what I searched in the Rails codebase, I think there is no big eval usage in Rails. But for sure having such a fast eval interpreter is great. erb templates are all eval'ed strings, repeatedly the same string again and again. - Charlie -

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Ola Bini
Raphaël Valyi wrote: Still, from what I searched in the Rails codebase, I think there is no big eval usage in Rails. But for sure having such a fast eval interpreter is great. ... caching of model properties are all done with evals. and routes. and lots of other things Cheers -- Ola Bini (

Re: [jruby-dev] Caching compiled evals for repeat runs

2007-09-28 Thread Ola Bini
Charles Oliver Nutter wrote: This could be really big. Patch attached. ## script require 'benchmark' c = 0 script = 'a = 1; b = 2; c = c + a + b' bnd = binding puts "implicit binding" puts Benchmark.realtime { 100.times { eval script } } puts "explicit binding" puts Benchmark.realtime { 10

Re: [jruby-dev] [Mac OS X] extending jRuby for Apple Events

2007-09-28 Thread tsuraan
> i know it isn't possible however i know, from developer of this > extension, that only one part needs C, this part is related to Apple > Event Manager. > > then i need some advices on how to implement this extension in java > using JNI or > similar. I'm not big on OSX or Java stuff, but Apple's

Re: [jruby-dev] The Compiler Is Complete

2007-09-28 Thread Robert Egglestone
This is awesome, congratulations! Charles Oliver Nutter wrote: I just finished up compilation on BEGIN and END blocks, which brings the compiler to completion. I've also successfully been able to compile the entire standard library and run IRB and RubyGems entirely off compiled scripts (i.e.

[jruby-dev] [jira] Created: (JRUBY-1394) README.test points people to wrong file name

2007-09-28 Thread Stuart Halloway (JIRA)
README.test points people to wrong file name Key: JRUBY-1394 URL: http://jira.codehaus.org/browse/JRUBY-1394 Project: JRuby Issue Type: Bug Components: Documentation Reporter

Re: [jruby-dev] [Mac OS X] extending jRuby for Apple Events

2007-09-28 Thread Yvon Thoraval
Le 29 sept. 07 à 01:49, tsuraan a écrit : I'm not big on OSX or Java stuff, but Apple's JVM has some extensions to allow native access to OSX stuff (documented at http://developer.apple.com/documentation/Java/Reference/1.4.2/ appledoc/api/index.html). they are speaking only about the File M