Hacker News new | ask | show | jobs
by nickand 5331 days 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.

3 comments

Oracle 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)
Probably the most promising answer, but it looks like for now the only safe bet is writing straight up java.
I 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.
NO, this is to use JavaScript in Java applications. It isn't to actually write the application.