[tcljava-dev] New TJC runtime compiler implementation available via CVS
Brought to you by:
mdejong
From: Mo D. <md...@un...> - 2006-02-14 19:53:21
|
Hi all A new runtime Tcl proc compiler API has been added to the CVS version of Jacl. This runtime compiler will take a Tcl procedure as input and generate Java byte code that will work the same way as the original Tcl proc. Previously, the TJC compiler only worked as a separate ahead of time compiler. See the documentation for the "TJC::compile" command for more info. The most basic usage is: package require TJC TJC::compile PROCNAME The above will kick off a second thread to do the compilation and convert the Tcl proc into Java source code. It will then use the embedded Janino Java compiler to convert Java source code to a class file. Finally, the class file will be loaded into the current interpreter, replacing the Tcl proc. This is a very exciting development for Jacl, but it is also very new and in need of much testing before it can be considered stable. Developers are encouraged to download this new code and give it a test run. cheers Mo DeJong |