Article Discussion
Dynamic Language Support on the JVM
Summary: Java SE 6 is no longer only about the Java language: SE 6 can be used to execute dynamic scripting language code as well. According to Danny Coward, Sun's Java SE platform lead, scripting language support is merely the first step in turning the JVM into the best possible execution platform for any dynamic language. Artima spoke with Coward about his new JSR 292, Supporting Dynamically Typed Languages on the Java Platform.
16 posts on 2 pages.      
« Previous 1 2 Next »
The ability to add new comments in this discussion is temporarily disabled.
Most recent reply: December 30, 2007 10:49 AM by SRK
SRK
Posts: 1 / Nickname: srkpriv / Registered: December 30, 2007 4:42 AM
Re: Dynamic Language Support on the JVM
December 30, 2007 10:49 AM      
This dynamic language support is quite interesting. But, I am more interested knowing whether Java support Dynamic Language Development?

For ex., something like;

if (MyClass instanceof "<class / interface Name>") {
// do something.
} else {
// do something else.
}

Where I can supply the "<class/Interface Name>" dynamically at runtime is that at all possible? Is that what this Dynamic Language Support of Java 6.0 does? This will be a real cool feature.

In other languages (including scripting) you can actually change/write a new program behaviour using dynamic development.

For eg., Using eval you can call a function or validate a string to an object in Java Script.

You can do similar or more things in PERL, PHP an so on.

Java didn't support any of the above feature until Java 5.0 as far as I know. Can I do the above in Java 6.0?

Thanks.
16 posts on 2 pages.
« Previous 1 2 Next »