[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-14 Thread Guillaume Laforge
On Fri, Nov 14, 2008 at 12:30 AM, Greg Brown [EMAIL PROTECTED] wrote: Also, if Groovy is pre-compiled, is the Groovy JAR still required at deployment time? Yes. Thanks. What about this part? I'm working under the assumption that it is possible to pre-compile Groovy into bytecode.

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-14 Thread Greg Brown
I'm working under the assumption that it is possible to pre- compile Groovy into bytecode. If so, then the Groovy runtime theoretically shouldn't need to perform class generation, wouldn't need security privileges, and thus wouldn't require a signed applet. Is this accurate? Missed

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-14 Thread Attila Szegedi
On 2008.11.13., at 21:02, Greg Brown wrote: I'm also interested in using JavaScript in an applet. I can't use the version of Rhino that ships with Java 6 because Apple doesn't include it (and Apple doesn't support Java 6 in applets yet anyways). Does anyone know if it is possible to use

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-14 Thread Greg Brown
Trouble is, Rhino's code for interface implemention actually generates bytecode; it doesn't go i.e. through java.lang.reflect.Proxy (its codegen capabilities predate Java 1.3). So regardless of interpreted mode, Rhino will need to have the ability to load generated code if you're using

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-13 Thread Greg Brown
Is there a way to run Groovy so that it would not need to be signed? Not as far as I know. I guess it'd require a fair amount of work to allow that. Just to make sure I understand - does this apply to interpreted Groovy *and* Groovy that is compiled to bytecode, or just interpreted Groovy?

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-13 Thread Jochen Theodorou
Greg Brown schrieb: Is there a way to run Groovy so that it would not need to be signed? Not as far as I know. I guess it'd require a fair amount of work to allow that. Just to make sure I understand - does this apply to interpreted Groovy *and* Groovy that is compiled to bytecode, or just

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-13 Thread Greg Brown
Is there a way to run Groovy so that it would not need to be signed? Not as far as I know. I guess it'd require a fair amount of work to allow that. Just to make sure I understand - does this apply to interpreted Groovy *and* Groovy that is compiled to bytecode, or just interpreted Groovy?

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-13 Thread Greg Brown
Also, if Groovy is pre-compiled, is the Groovy JAR still required at deployment time? Yes. Thanks. What about this part? I'm working under the assumption that it is possible to pre-compile Groovy into bytecode. If so, then the Groovy runtime theoretically shouldn't need to perform

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-11 Thread Guillaume Laforge
On Mon, Nov 10, 2008 at 11:20 PM, Greg Brown [EMAIL PROTECTED] wrote: I guess we'd better move that discussion on the Groovy lists, since it's perhaps too Groovy specific? Agreed. What might be a more appropriate group? The Groovy user mailing-list may be more appropriate, I guess. But

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-11 Thread Charles Oliver Nutter
Greg Brown wrote: Is there a way to run Groovy so that it would not need to be signed? I think this is the key question. The idea that apps can be written for the Java Plugin using any JVM scripting language is very compelling; somewhat less so if the code needs to be signed in order for

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-11 Thread Rémi Forax
Patrick Wright a écrit : On Tue, Nov 11, 2008 at 3:43 PM, Charles Oliver Nutter [EMAIL PROTECTED] wrote: Greg Brown wrote: Is there a way to run Groovy so that it would not need to be signed? I think this is the key question. The idea that apps can be written for the

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Guillaume Laforge
On Mon, Nov 10, 2008 at 10:25 PM, Greg Brown [EMAIL PROTECTED] wrote: This sounds like a very cool feature. I've been trying to figure out how I might build an applet in Groovy. Are you aware of any examples that demonstrate this? You can already build applets in Groovy, even without that

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Greg Brown
I guess *I'm* missing something. I haven't been able to find any examples that show how to do this. On Nov 10, 2008, at 4:30 PM, Guillaume Laforge wrote: On Mon, Nov 10, 2008 at 10:25 PM, Greg Brown [EMAIL PROTECTED] wrote: This sounds like a very cool feature. I've been trying to figure

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Guillaume Laforge
The Grapplet module is a nice improved Groovy / Applet mix, for instance: http://groovy.codehaus.org/Grapplet But beyond this, there's perhaps not much documentation because Groovy can be compiled to bytecode, and you can just bundle that bytecode in normal JARs without much more complexity

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Greg Brown
Interesting. Just wondering - why does the JAR need to be signed? I'll be more specific about what I'm trying to accomplish - I want to write a Pivot application using Groovy: http://pivot-toolkit.org All Pivot applications implement the pivot.wtk.Application interface. Pivot includes a

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Guillaume Laforge
I guess we'd better move that discussion on the Groovy lists, since it's perhaps too Groovy specific? Hoping I'm not off-topic, the jar needs to be signed as it uses reflection, bytecode generation, etc, some things that are prevented by the default security manager. On Mon, Nov 10, 2008 at

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-11-10 Thread Greg Brown
I guess we'd better move that discussion on the Groovy lists, since it's perhaps too Groovy specific? Agreed. What might be a more appropriate group? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups JVM Languages

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-10-31 Thread Kenneth Russell
Charles Oliver Nutter wrote: Kenneth Russell wrote: Java SE 6 Update 10 exposes some new interfaces from the Java Plug-In's LiveConnect implementation that allows a non-Java language runtime to hook in to the dispatch sequence for JavaScript operations coming in from the web browser.

[jvm-l] Re: Calling non-Java languages from JavaScript

2008-10-30 Thread Charles Oliver Nutter
Kenneth Russell wrote: Java SE 6 Update 10 exposes some new interfaces from the Java Plug-In's LiveConnect implementation that allows a non-Java language runtime to hook in to the dispatch sequence for JavaScript operations coming in from the web browser. This lets you, the language