J2CL can translate most existing Java code from source but not all Java APIs are supported, such as the Java reflection API. Another use might be reusing a library written in Java in a Node.js application. J2CL does the transpilation of all document manipulation and rendering logic from Java -> JS". For example, Thomas Deegan, a previous contributor to the J2CL project, says "the code powering Google Docs front end needs to be written for web. One such way is to ensure complex logic running on multiple platforms implemented in different technologies, can be shared across platforms. The tool was developed with flexibility in mind and can be applied in a number of different ways. According to the developers, "ou can use J2CL to just make some Java code accessible from JavaScript or go all the way to create a whole application with it whatever best suits your needs." Instead, J2CL is about interoperability and cross-platform code reuse. J2CL attempts to solve a different problem than similar Java-to-Javascript frameworks such as GWT, and it is not meant to compete with or replace existing JavaScript frameworks. J2CL developers say the compiler "enables seamless use of Java in your JavaScript applications." Designed, developed, and open-sourced by Google, J2CL is a source-to-source compiler that converts Java to Javascript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |