ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcljava-dev
tcljava-dev
[tcljava-dev] New TJC runtime compiler implementation available via CVS
by Mo DeJong other posts by this author
Feb 14 2006 11:54AM messages near this date
Re: [tcljava-dev] Re: tjc runtime compiler | [tcljava-dev] New TclClassLoader implementation needs testers
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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
tcljava-dev mailing list
tcljava-dev@[...].net
https://lists.sourceforge.net/lists/listinfo/tcljava-dev

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved