62 messages in org.codehaus.groovy.devRE: [groovy-dev] Groovy performance: ...| From | Sent On | Attachments |
|---|---|---|
| Alex Tkachman | 19 Feb 2008 02:09 | |
| Steven Devijver | 19 Feb 2008 02:37 | |
| Alexandru Popescu ☀ | 19 Feb 2008 02:57 | |
| Alex Tkachman | 19 Feb 2008 03:03 | |
| Patric Bechtel | 19 Feb 2008 03:12 | |
| Guillaume Laforge | 19 Feb 2008 03:25 | |
| Guillaume Laforge | 19 Feb 2008 03:26 | |
| Patric Bechtel | 19 Feb 2008 05:05 | |
| Gavin Grover | 19 Feb 2008 05:51 | |
| Steven Devijver | 19 Feb 2008 05:52 | |
| Guillaume Laforge | 19 Feb 2008 05:54 | |
| Tom Nichols | 19 Feb 2008 06:26 | |
| Alex Tkachman | 19 Feb 2008 06:28 | |
| Guillaume Laforge | 19 Feb 2008 06:35 | |
| Tom Nichols | 19 Feb 2008 07:03 | |
| Guillaume Laforge | 19 Feb 2008 07:38 | |
| Chanwit Kaewkasi | 19 Feb 2008 07:52 | |
| Charles Oliver Nutter | 19 Feb 2008 08:49 | |
| Steven Devijver | 19 Feb 2008 10:03 | |
| Charles Oliver Nutter | 19 Feb 2008 11:38 | |
| Steven Devijver | 19 Feb 2008 12:11 | |
| Alex Tkachman | 19 Feb 2008 12:39 | |
| Alex Tkachman | 19 Feb 2008 12:48 | |
| tugwilson | 19 Feb 2008 13:36 | |
| Alex Tkachman | 19 Feb 2008 20:51 | |
| Guillaume Laforge | 20 Feb 2008 02:10 | |
| Jochen Theodorou | 20 Feb 2008 09:46 | |
| Martin C. Martin | 20 Feb 2008 17:25 | |
| Guillaume Laforge | 21 Feb 2008 01:35 | |
| Tom Nichols | 21 Feb 2008 04:15 | |
| Martin C. Martin | 21 Feb 2008 05:44 | |
| Tom Nichols | 21 Feb 2008 06:22 | |
| Smith, Jason, CTR, OASD(HA)/TMA | 21 Feb 2008 06:34 | |
| Martin C. Martin | 21 Feb 2008 06:43 | |
| Guillaume Laforge | 21 Feb 2008 06:48 | |
| Guillaume Laforge | 21 Feb 2008 07:04 | |
| Smith, Jason, CTR, OASD(HA)/TMA | 21 Feb 2008 07:18 | |
| Charles Oliver Nutter | 21 Feb 2008 07:38 | |
| Guillaume Laforge | 21 Feb 2008 07:42 | |
| Martin C. Martin | 21 Feb 2008 08:36 | |
| Martin C. Martin | 21 Feb 2008 08:48 | |
| Pascal DeMilly | 21 Feb 2008 17:35 | |
| Gavin Grover | 21 Feb 2008 18:21 | |
| Jochen Theodorou | 22 Feb 2008 04:31 | |
| Tom Nichols | 22 Feb 2008 04:49 | |
| Charles Oliver Nutter | 22 Feb 2008 23:43 | |
| Guillaume Laforge | 23 Feb 2008 00:28 | |
| Martin C. Martin | 23 Feb 2008 03:51 | |
| Jochen Theodorou | 23 Feb 2008 14:49 | |
| Jochen Theodorou | 23 Feb 2008 14:53 | |
| Charles Oliver Nutter | 24 Feb 2008 02:01 | |
| Martin C. Martin | 24 Feb 2008 03:56 | |
| Martin C. Martin | 24 Feb 2008 04:11 | |
| Charles Oliver Nutter | 24 Feb 2008 05:12 | |
| Jochen Theodorou | 24 Feb 2008 15:17 | |
| Jochen Theodorou | 24 Feb 2008 15:31 | |
| Alexandru Popescu ☀ | 24 Feb 2008 15:36 | |
| Martin C. Martin | 26 Feb 2008 14:20 | |
| Martin C. Martin | 26 Feb 2008 15:15 | |
| Jochen Theodorou | 27 Feb 2008 02:38 | |
| Jochen Theodorou | 27 Feb 2008 03:03 | |
| Martin C. Martin | 02 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:




