Tcl HomeTcl Home Hosted by
ActiveState

Google SiteSearch

Tcl'2006 Abstract: TJC: A Tcl to Java Compiler

13th Annual Tcl/Tk Conference

Main Registration Schedule Tutorials Info

October 9-13, 2006
Holiday Inn Select
Naperville, Illinois USA

Important Information
Abstracts and proposals due June 30, 2006
Notification to authors July 31, 2006
Author materials due September 30, 2006
Tutorials start October 9, 2006
Conference starts October 11, 2006
Email Contact [email protected]

We are pleased to announce the 13th Annual Tcl/Tk conference (Tcl'2006), sponsored by Noumena Corporation , Digital Smarties , Eolas Technologies and ActiveState .

TJC: A Tcl to Java Compiler

Author: Mo DeJong

Abstract

A recent trend in corporate computing environments is the reimplementation of legacy systems on a Java based software platform. Significant long-term savings can be realized through use of a common software platform and tools, but the costs of software development and retraining of engineers remains high. If a legacy system can be ported to Java without having to rewrite existing code, then most software development and retraining costs can be avoided entirely. A large semiconductor manufacturer recently faced just such a challenge and decided to evaluate Jacl (Tcl interpreter written in Java) as a migration tool for a large legacy system implemented in Tcl. Jacl was found to be satisfactory in all areas except one, runtime execution speed. Native Tcl contains a runtime compiler and execution engine while Jacl supports only interpreted execution. As a result, native Tcl executes code from 10 to 50 times faster than Jacl. This paper introduces TJC, a Tcl to Java compiler that converts Tcl procs into Java bytecode and closes this performance gap. In many cases, TJC compiled Tcl code executes more quickly than the same code running in native Tcl. This paper describes the TJC compiler's initial design and implementation, demonstrates code generated for some simple examples, and details optimizations that have been implemented as the compiler has matured into production ready software. In addition, performance of TJC compiled code is compared to native Tcl and to other popular scripting languages implemented in Java.

Conference Committee

Cyndy Lilagan   Eolas TechnologiesFacilities Coordination
Clif Flynt   Noumena CorpGeneral Chair
Steve Redler IV   SR TechnologyProgram Chair
Steve Landers   Digital SmartiesProgram Co-chair
Kevin Kenny   GE Global Research Center
Jeffrey Hobbs   ActiveState Corp
Andreas Kupries   ActiveState Corp
Ron Fox   NSCL Michigan State University
Donal Fellows   University of Manchester
Larry Virden   Tcl FAQ Maintainer
Mike Doyle   Eolas Technologies
Gerald Lester   HMS Software

Contact Information

[email protected]