Java Magazine, July/August 2017
ORACLE COM JAVAMAGAZINE JULY AUGUST 2017 38 java 9 Ctrl k to delete the rest of a line and Ctrl y to restore the line Up and down arrows to scroll through the input history Tab completion to expand globals properties and Java types VT100 escape sequences to format the screen With all these small changes life is made a little bit easier Performance In JDK 9 optimistic type optimization is on by default which means that over time the performance of code on Nashorn improves as stronger typing is determined by the engine function f array i return array i array i 1 In the example above Nashorn will initially optimize the function f assuming that i and the contents of array are integers because of the plus sign If it turns out that these assumptions are not correct Nashorn will create a new edition of the function with the actual type used and hot swap the old code with the newer version This optimization is specialized per call site so the best solution is always used Conclusion Weve seen here that the Nashorn engine in JDK 9 provides many convenient new features This summary covers whats new in this release but the team has a lot more in the pipeline that it hopes to show you soon article Jim Laskey @ wickund is a senior development manager in the Java Platform group at Oracle Laskey has been a compiler runtime developer since the mid 1970s and has worked at Symantec Apple and Azul Systems user groups THE LONDON JUG The London Java Community LJC also known as the LJC JUG @ ljcjug comprises developers in Europe and in the international scene The LJC was created in 2006 when Barry Cranford from the London Java recruitment firm RecWorks sought to bring together like minded Java developers for sharing knowledge and skills Since then the LJC has grown to more than 6000 members From the early days the LJC had the good fortune to have leaders such as Zoe Slattery Ben Evans Martijn Verburg Simon Maple John Stevenson Trisha Gee and many other seasoned Java developers The LJC has been actively involved with the Java Community Process JCP and has won the 11th Dukes Choice Award and co won the JCP Member of the Year honor With help and support from staf from RecWorks the LJC organizes three to four events every month One of these is a regular hack day called HackTheTower where participants gather in groups hacking on OpenJDK doing projects in Scala or Clojure or working independently on pet projects The LJC also runs the annual Open Conference UnConf and supports Devoxx UK and Devoxx4Kids every year These conferences involve close cooperation between the LJC and other JUGs in the UK such as those in Bristol and Manchester England In addition LJC members share homegrown libraries and frameworks answer questions on the mailing list and participate in JUG organized projects such as Adopt a JSR and Adopt OpenJDK If you think that sounds fun join up
You must have JavaScript enabled to view digital editions.