This image was lost some time after publication, but you can still view it here.

Nashorn, Oracle's invokedynamic-based JavaScript engine is easily the most exciting feature of the upcoming Java 8 release for me.

Advertisement

Here is how to write a simple real-time web app using Nashorn scripting and Webbit:

and the corresponding html:

pretty cool, isn't it?

PS: you can find the whole project on github here.

Advertisement

Advertisement

PPS: In terms of limitations, you may also want to check out Nashorn's multithreading story which is explained here