CheerpJ 1.1 released

Faster Java to JavaScript with better interop, exception handling, resource preloading

  • New JavaScript to Java interoperability API based on standard promises, enabling the use of the async/await operators, and with better support for method resolution and overloading;
  • Support for promise chaining and exception handling when calling Java from JavaScript
  • Dramatically improved code generation for low-level drawing routines. This translates to a large performance improvement for applications drawing many FPS (e.g. video playback, videogames)

Java-JavaScript interoperability, promises and exception handling

CheerpJ 1.1 features a new API based on standard promises to call Java methods (converted by CheerpJ) from HTML5/JavaScript.

resolvedMethod(arg1, arg2, arg3);

Optimising startup time through resource preloading

CheerpJ (similarly to the JVM) cannot predict which runtime resources will be required by an arbitrary application. Resources are therefore loaded on demand, one after the other, depending on the requirements of the application at run time.


Changelog — CheerpJ 1.1

  • Introduced parallel preloading of resources that are known to be needed before starting the application (useful in production);
  • New, faster API for JavaScript to Java interoperability based on standard promises (allowing async/await)
  • Exception handling when calling Java from JavaScript
  • Improved support for reflection
  • Improved code generation, particularly for low-level graphical routines
  • Improved HTTP/HTTPs connections
  • Support for time zones
  • Improved startup time
  • Support for custom cursors

Download

Cheerp 1.1 is available to download for Linux, Windows and macOS. To get started with CheerpJ, please visit the main documentation page.

Want to know more?

For more information on CheerpJ, check out our website at https://leaningtech.com/cheerpj/. Follow us on twitter (@leaningtech), visit our website, or drop us a line on Gitter!

leaningtech

Leaning Technologies' Blog - everything Cheerp, CheerpJ, compile-to-JavaScript and compile-to-WebAssembly

Stefano De Rossi

Written by

leaningtech

Leaning Technologies' Blog - everything Cheerp, CheerpJ, compile-to-JavaScript and compile-to-WebAssembly