JavaPoly is a library that polyfills native JVM support within any modern web browser. This allows websites to import Java libraries, and call them directly from Javascript, even if the user does not have Java installed on their computer. Unlike GWT and TeaVM, which attempts to compile a Java subset of JavaScript, JavaPoly actually executes Java bytecode instructions. This means that JavaPoly can run almost any Java library, including libraries that use threads, shared memory, locking primitives, and 64-bit integers. JavaPoly is designed to optimize performance by taking advantage of native JVMs when available. When running in Node.js, JavaPoly will always use a native JVM and thus use native capabilities as multi-core support (which is otherwise unavailable to Javascript applications). Similarly, JavaPoly will take advantage of native Java support within a web browser, if such support is available. If no suitable alternatives are detected, JavaPoly will call into a Doppio VM, which provides execution support on legacy browsers.

Leave a Reply


Copyright 2020
Shale theme by Siteturner