TC: An Efficient Implementation of the Tcl Language

  • Authors:
  • Adam Sah

  • Affiliations:
  • -

  • Venue:
  • TC: An Efficient Implementation of the Tcl Language
  • Year:
  • 1994

Quantified Score

Hi-index 0.00

Visualization

Abstract

Tcl is a highly dynamic language that is especially challenging to execute efficiently. In this paper, I discuss many issues involved in implementing Tcl, and describe a design for a faster system that maintains Tcl semantics, including its C callout mechanism. This design focuses on a method for caching the parsed representation for data values, and lazily converting to strings on demand. This allows most computations to be performed using native types (e.g. integers) rather than strings. The current implementation is presented along with results showing a speedup of about 5-10 times over the existing Tcl interpreter.