Latest news from the Nashorn team
By Jlaskey-Oracle on Mar 17, 2014
The Nashorn team has been working hard on performance improvements for the next round. The first set involves caching of compiled scripts. This will make a huge difference for reoccurring scripts (think servers.) The second set of changes involve optimistic typing, where code generated for functions assumes optimal data types in expressions (ex. integers) and falls back to broader types (ex. double) if it doesn't work out. This provides a huge performance win, since most of the time the assumptions prove correct. These fixes are in staging repos moving to the JDK9-dev and JDK8u20-dev repos in the next few weeks. Both these changes should be in the JDK 8u20 update targeted for August.
Finally, on the Node.js front, Node has found a permanent home in the Java EE world. The project has been renamed to Avatar.js to tie in with the large Avatar project and is taking full advantage of multithreading.