CheerpJ Java-to-JavaScript compiler boosts exception handling, native methods

Edition 2.one of the CheerpJ Java-to-WebAssembly-and-JavaScript compiler, produced April 6, provides optimizations to exception handling and indigenous solutions.

Explained as a servicing launch, CheerpJ 2.one introduces optimizations for exception handling, which are now compiled to “much extra efficient” JavaScript code, in accordance to a bulletin on the edition 2.one improve. In addition, indigenous Java reflection calls have been optimized, thus decreasing the overhead in comparison with conventional Java calls. The build size of in advance-of-time JavaScript output has been minimized as very well.

CheerpJ converts a Java customer software into conventional HTML, JavaScript, and WebAssembly, functioning from Java bytecode with out necessitating entry to resource code. CheerpJ 2.one also attributes:

  • Improvements to the -stub-natives, a cheerpjfy.py selection that creates stub JavaScript information for indigenous solutions, enabling development of browser-centered implementations of indigenous solutions in JavaScript/WebAssembly.
  • Improvements to the robustness of the in advance-of-time compiler.
  • Improvements in Java-JavaScript interoperability.

CheerpJ added WebAsssembly help with launch 2., which arrived in February.  CheerpJ 2.one is obtainable for Home windows, MacOS, and Linux at Ieaningtech.com. Designed and supported by Leaning Systems, CheerpJ works on Java Swing purchasers, Java applets, and Java libraries.

Copyright © 2020 IDG Communications, Inc.