Kinja Technology
Kinja Technology
This image was lost some time after publication, but you can still view it here.
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.

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

Advertisement

and the corresponding html:

pretty cool, isn't it?

Advertisement

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

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

Advertisement

Share This Story

Get our newsletter