[Posted by Sundar] I recently came across Hjson - "the Human JSON - A configurationfile format that caters to humans and helps reduce the errorsthey make". See...
[Posted by Sundar] I recently came across Hjson - "the Human JSON - A configurationfile format that caters to humans and helps reduce the errorsthey 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.parseimplementation, 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 configurationfile format that caters to humans and helps reduce the errorsthey 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...
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...
Hi! The Nashorn repository already contains a Netbeans project, so that you can seamlessly work with Netbeans as your IDE when using Nashorn. There are some...
Hi! The Nashorn repository already contains a Netbeans project, so that you can seamlessly work with Netbeans as your IDE when using Nashorn. There are some tricks, for example, the IDE needs to build and access the pre-generated Nasgen classes that represent the builtin JavaScript objects: Array, Date, Number, String etc. These are part of the build step, and are generated if you just execute "ant clean jar" from the command line. Nashorn, furthermore, is now a jimage in...
Hi! The Nashorn repository already contains a Netbeans project, so that you can seamlessly work with Netbeans as your IDE when using Nashorn. There are some tricks, for example, the IDE needs to...
Hello everyone! We've been bad at blogging here for a while. Apologies for that. I thought it would be prudent to talk a little bit about OpenJDK 8u40 which is...
Hello everyone! We've been bad at blogging here for a while. Apologies for that. I thought it would be prudent to talk a little bit about OpenJDK 8u40 which is now code frozen, and what enhancements we have made for Nashorn. 8u40 includes a total rewrite of the Nashorn code generator, which now contains the optimistic type system. JavaScript, or any dynamic language for that matter, doesn't provide enough compile time information to easily generate performant code. This is...
Hello everyone! We've been bad at blogging here for a while. Apologies for that. I thought it would be prudent to talk a little bit about OpenJDK 8u40 which is now code frozen, and what enhancements...
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...
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...
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...
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...
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"...
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...