top

Google Closure Compiler Shifts from Java to JavaScript

Google’s Closure compiler no longer needs Java for optimizing JavaScript. The source code of Java will now be compiled into Javascript, making it possible to run it on Node.js or even possible to run it on browsers. However, Google has warned that performance might not be equal to that of the Java version and it has also announced the non-availability of some features. It is known that the release is still experimental and it supports some of the ECMAScript features like arrow functions and let and const. It will also check for syntax and types and will provide warnings for ‘gotchas’ of Javascript. The developer programs engineer at Google, Sam Thorogood stated "If you'd like to migrate from google-closure-compiler, which requires Java, you'll have to use gulp.src() or equivalents to load your JavaScript before it can be compiled. As this compiler runs in pure JavaScript, the compiler cannot load or save files from your file system directly." Developers can specify the codes via flags if they are not using Gulp or Webpack plugins as stated in notes of GitHub. The upgrade cannot be considered as a complete rewritten version because it is not and by adding it as a dependency to a project via NPM, the developers will be able to use the newer version. However, the newer version can also be used with Gulp streaming build system.
Rated 4.0/5 based on 20 customer reviews
Normal Mode Dark Mode

Google Closure Compiler Shifts from Java to JavaScript

Geneva Clark
What's New
06th Sep, 2016
Google Closure Compiler Shifts from Java to JavaScript

Google’s Closure compiler no longer needs Java for optimizing JavaScript. The source code of Java will now be compiled into Javascript, making it possible to run it on Node.js or even possible to run it on browsers.

However, Google has warned that performance might not be equal to that of the Java version and it has also announced the non-availability of some features. It is known that the release is still experimental and it supports some of the ECMAScript features like arrow functions and let and const. It will also check for syntax and types and will provide warnings for ‘gotchas’ of Javascript.

The developer programs engineer at Google, Sam Thorogood stated "If you'd like to migrate from google-closure-compiler, which requires Java, you'll have to use gulp.src() or equivalents to load your JavaScript before it can be compiled. As this compiler runs in pure JavaScript, the compiler cannot load or save files from your file system directly."

Developers can specify the codes via flags if they are not using Gulp or Webpack plugins as stated in notes of GitHub. The upgrade cannot be considered as a complete rewritten version because it is not and by adding it as a dependency to a project via NPM, the developers will be able to use the newer version. However, the newer version can also be used with Gulp streaming build system.

Geneva

Geneva Clark

Blog Author
Geneva specializes in back-end web development and has always been fascinated by the dynamic part of the web. Talk to her about modern web applications and she and loves to nerd out on all things Ruby on Rails.

Leave a Reply

Your email address will not be published. Required fields are marked *

SUBSCRIBE OUR BLOG

Follow Us On

Share on

other Blogs

20% Discount