7 ms·
This is backwards. It should be JavaScript syntax driving the JVM. Because Scala and Groovy are way to small for anyone to care, but the JVM is an awesome way
by nickand 15y ago
This is backwards. It should be JavaScript syntax driving the JVM. Because Scala and Groovy are way to small for anyone to care, but the JVM is an awesome way for people to write play-anywhere applications. Java is one of those languages that could have been dynamically typed from the beginning, but they chose to force us to be static to be academic (or something...). People can do a lot more in JavaScript than in Java FASTER. Make a version of JavaScript that drives the JVM and you win. Perhaps you can even use one of the current ECMA Standards. They probably already have some 'make window' syntax defined somewhere.
If this project already exists please let me know. I have tons of uses for it. Thanks.
- akavlie 15y agoRhino? http://www.mozilla.org/rhino/ http://www.mozilla.org/rhino/
- nickand 15y agoNO, this is to use JavaScript in Java applications. It isn't to actually write the application.
- kodablah 15y agoOracle announced Nashorn recently that is not yet open sourced, but should be released for Java 8 and compile to bytecode (w/ the help of invokedynamic)
- nickand 15y agoProbably the most promising answer, but it looks like for now the only safe bet is writing straight up java.
- robterrell 15y agodyn.js: http://jsconf.eu/2011/dynjs_-_100_invokedynamic_java.html http://jsconf.eu/2011/dynjs_-_100_invokedynamic_java.html Interview with the developer here: http://www.infoq.com/news/2011/10/dynjs http://www.infoq.com/news/2011/10/dynjs
- nickand 15y agoI searched around for dyn.js and found a git repository with no explanation. I skipped around the video you posted and couldn't get a clear answer.