Jim has been a compiler/runtime developer for over 40 years, including stints at Symantec, Apple, Azul, Sun and Oracle.
[Posted by Sundar] I recently came across Hjson - "the Human JSON - A configuration file format that caters to humans and helps reduce the errors they make". See also: http://hjson.org. I wanted to see if I can use Nashorn Parser API (jdk9) to support similar flexible JSON extension with Nashorn. In the following FlexiJSON.parse implementation, Nashorn Parser API is used to validate that the extendable flexi JSON is "data only" (That is, no executable code) andthen 'eval'uated...
[Posted by Sundar] I recently came across Hjson - "the Human JSON - A configuration file format that caters to humans and helps reduce the errors they make". See also: http://hjson.org. I wanted to see...
This is a reposting of an article written by Kuassi Mensah JavaScript Stored Procedures and Node.js Applications with Oracle Database 12c Introduction Node.js and server-side JavaScript are hot and trendy; per the latest “RedMonk Programming Languages Rankings”[1], JavaScript and Java are the top two programming languages. For most developers building modern Web, mobile, and cloud based applications, the ability to use the same language across all tiers (client, middle, and...
This is a reposting of an article written by Kuassi Mensah JavaScript Stored Procedures and Node.js Applications with Oracle Database 12c Introduction Node.js and server-side JavaScript are hot and...
During the JavaOne Nashorn: JavaScript for the JVM session, I showed a couple examples of converting JavaScript browser examples to use Nashorn and JavaFX. The first example was using CKEditor, a rich text/HTML editor. This editor is written entirely in JavaScript using the browser DOM interface. In this case, it did not really make sense to convert all the DOM code over to FX. Instead, I used the JavaFX WebView which supports all the DOM needed. So let's start with a simple...
During the JavaOne Nashorn: JavaScript for the JVM session, I showed a couple examples of converting JavaScript browser examples to use Nashorn and JavaFX. The first example was using CKEditor, a rich...
I know it's unseemly to toot one's own horn, but after the release I did a Topsy to see how we were faring. I did some deeper analysis of the tweets and determined that about a quarter of the Nashorn tweets were about zoos and tanks. The exceptions were when Nashorn crossed above JDK8/Java8. The first peak was when people started tweeting about the Nashorn release video. The second was when Benjamin Winterberg announced his tutorial (40.7K hits to date.) I've also been...
I know it's unseemly to toot one's own horn, but after the release I did a Topsy to see how we were faring. I did some deeper analysis of the tweets and determined that about a quarter of the Nashorn...
I've decided to move this entry to the main Nashorn wiki site to allow for "living document" additions. Nashorn: Articles, Documents, Slides and Videos
Things have been busy on the Nashorn front, getting ready for the JDK 8 rollout and all. March 18 is the magic day (EclipseCon.) I see that JetBrains has added Nashorn debugging to IntelliJ. This rounds out the debugging story with support in NetBeans and Eclipse. 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...
Things have been busy on the Nashorn front, getting ready for the JDK 8 rollout and all. March 18 is the magic day (EclipseCon.) I see that JetBrains has added Nashorn debugging to IntelliJ. This...
With people porting HTML to Nashorn + JavaFX more frequently, I often get asked the question "how do you port functions like setInterval and setTimeout" (setInterval is used to have a function repeated at regular intervals, where setTimeout is used to have a function delayed.) The following code duplicates the functionality of the each of the setInterval family of functions, when used in a JavaFX application. var Platform = Java.type("javafx.application.Platform");var Timer ...
With people porting HTML to Nashorn + JavaFX more frequently, I often get asked the question "how do you port functions like setInterval and setTimeout" (setInterval is used to have a function...
I was reading an article written by Felix Bembrick where he took a Chrome canvas example and ported it to Nashorn with JavaFX. I ran the two tests myself and was surprised to see that Nashorn + FX ran at 350fps where Chrome ran at 120fps (iMac, 3.4 GHz Intel Core i7, AMD Radeon HD 6970M 2048M.) Much of the credit for that is JavaFX's rendering engine, but Nashorn allowed Felix to leverage that. The original article is at JavaFX with Nashorn Canvas example.
I was reading an article written by Felix Bembrick where he took a Chrome canvas example and ported it to Nashorn with JavaFX. I ran the two tests myself and was surprised to see that Nashorn + FX...
These are the sessions I found related to JavaScript. There are likely others. If you spot others, send a comment and I'll update this entry. The session on the list is mine and the second is Attila's. Teaching the Java Platform with Nashorn is done with Ben Evans of the London JUG. Come to the Script Bowl and vote for the only first time entry (Nashorn.) Nashorn: JavaScript on the JVM [CON7835] Monday, Sep 23, 11:30 AM - 12:30 PM - Hilton - Yosemite B/C Nashorn: Java and...
These are the sessions I found related to JavaScript. There are likely others. If you spot others, send a comment and I'll update this entry. The session on the list is mine and the second is...