62 messages in org.codehaus.groovy.devRE: [groovy-dev] Groovy performance: ...
FromSent OnAttachments
Alex Tkachman19 Feb 2008 02:09 
Steven Devijver19 Feb 2008 02:37 
Alexandru Popescu ☀19 Feb 2008 02:57 
Alex Tkachman19 Feb 2008 03:03 
Patric Bechtel19 Feb 2008 03:12 
Guillaume Laforge19 Feb 2008 03:25 
Guillaume Laforge19 Feb 2008 03:26 
Patric Bechtel19 Feb 2008 05:05 
Gavin Grover19 Feb 2008 05:51 
Steven Devijver19 Feb 2008 05:52 
Guillaume Laforge19 Feb 2008 05:54 
Tom Nichols19 Feb 2008 06:26 
Alex Tkachman19 Feb 2008 06:28 
Guillaume Laforge19 Feb 2008 06:35 
Tom Nichols19 Feb 2008 07:03 
Guillaume Laforge19 Feb 2008 07:38 
Chanwit Kaewkasi19 Feb 2008 07:52 
Charles Oliver Nutter19 Feb 2008 08:49 
Steven Devijver19 Feb 2008 10:03 
Charles Oliver Nutter19 Feb 2008 11:38 
Steven Devijver19 Feb 2008 12:11 
Alex Tkachman19 Feb 2008 12:39 
Alex Tkachman19 Feb 2008 12:48 
tugwilson19 Feb 2008 13:36 
Alex Tkachman19 Feb 2008 20:51 
Guillaume Laforge20 Feb 2008 02:10 
Jochen Theodorou20 Feb 2008 09:46 
Martin C. Martin20 Feb 2008 17:25 
Guillaume Laforge21 Feb 2008 01:35 
Tom Nichols21 Feb 2008 04:15 
Martin C. Martin21 Feb 2008 05:44 
Tom Nichols21 Feb 2008 06:22 
Smith, Jason, CTR, OASD(HA)/TMA21 Feb 2008 06:34 
Martin C. Martin21 Feb 2008 06:43 
Guillaume Laforge21 Feb 2008 06:48 
Guillaume Laforge21 Feb 2008 07:04 
Smith, Jason, CTR, OASD(HA)/TMA21 Feb 2008 07:18 
Charles Oliver Nutter21 Feb 2008 07:38 
Guillaume Laforge21 Feb 2008 07:42 
Martin C. Martin21 Feb 2008 08:36 
Martin C. Martin21 Feb 2008 08:48 
Pascal DeMilly21 Feb 2008 17:35 
Gavin Grover21 Feb 2008 18:21 
Jochen Theodorou22 Feb 2008 04:31 
Tom Nichols22 Feb 2008 04:49 
Charles Oliver Nutter22 Feb 2008 23:43 
Guillaume Laforge23 Feb 2008 00:28 
Martin C. Martin23 Feb 2008 03:51 
Jochen Theodorou23 Feb 2008 14:49 
Jochen Theodorou23 Feb 2008 14:53 
Charles Oliver Nutter24 Feb 2008 02:01 
Martin C. Martin24 Feb 2008 03:56 
Martin C. Martin24 Feb 2008 04:11 
Charles Oliver Nutter24 Feb 2008 05:12 
Jochen Theodorou24 Feb 2008 15:17 
Jochen Theodorou24 Feb 2008 15:31 
Alexandru Popescu ☀24 Feb 2008 15:36 
Martin C. Martin26 Feb 2008 14:20 
Martin C. Martin26 Feb 2008 15:15 
Jochen Theodorou27 Feb 2008 02:38 
Jochen Theodorou27 Feb 2008 03:03 
Martin C. Martin02 Mar 2008 17:21 
Subject:RE: [groovy-dev] Groovy performance: what to do
From:Smith, Jason, CTR, OASD(HA)/TMA (Jaso@tma.osd.mil)
Date:02/21/2008 07:18:52 AM
List:org.codehaus.groovy.dev

The joint Groovy / Java compiler does, but you still need a compile step. And I use that feature (groovyc), and love it dearly!

I am talking about runtime compilation of Java. It is sort of out of the domain of Groovy to do so (not the polite thing to do), since you'd be "interpreting" Java on the fly, the same way Groovy is "interpreted" on the fly. Java has built in support for doing this sort of thing, but I think it only works with the SDK, not the JDK.

Anyhow, you can freely mix .groovy and .java using GroovyC (1.5.x). Why not allow mixing them freely from uncompiled script files as well? That way, if you are working with groovy as a scripting language, you can just put your speed critical code into a Java class, in the same package, and there is no need to add a compile step for the Java portion.

It is also kind of a cool way for a beginner to run Java. You could even add support to run *.java files from the command line, the way we run *.groovy files now.

Well, it may not be a GOOD idea, but it is an idea nonetheless. And I think it would be easy to do.

Jason Smith

-----Original Message----- From: Guillaume Laforge [mailto:glaf@gmail.com] Sent: Thursday, February 21, 2008 7:48 AM To: de@groovy.codehaus.org Subject: Re: [groovy-dev] Groovy performance: what to do

On Thu, Feb 21, 2008 at 3:34 PM, Smith, Jason, CTR, OASD(HA)/TMA <Jaso@tma.osd.mil> wrote:

Um, maybe we could end this whole debate by making the GroovyClassloader compile *.java files on the fly, the way it works with *.groovy files? That way, we could treat Java like script. No compile step.

It would be pretty trivial to do this, I think.

The joint Groovy / Java compiler just does it in Groovy 1.5. Seamlessly mixing both languages is a real no-brainer.

--------------------------------------------------------------------- To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email