Roadmap
The goal: a drop-in replacement for Tcl
ztcl aims to become a complete drop-in replacement for Tcl. It is not one yet. Compatibility has the measured state for each test file of Tcl 8.6.16.
Two rules stay while the work continues:
- The sandbox is the default. An interpreter with no capability reaches no host data.
- Host access is an explicit capability of the embedder:
clock,package,interp, channels,file,socket,exec, and the event loop.
Loading C extensions is a separate later project.
Tcl 9
ztcl follows Tcl 8.6.16 and makes no claim of Tcl 9 compatibility. The baseline for Tcl 9.1.0 is in Tcl 8.6 and Tcl 9.
- Decide on each proposed choice in that page.
- Add the commands of Tcl 9 that the choices accept.
Other known gaps
-
Name lookup for
socketthrough a name server.sys.resolvereads address literals,localhost, and the hosts file. -
The
httppackage, the table encodings (koi8-r,shiftjis, and others),info frame, and step traces. -
The test files in Compatibility: TclOO,
info frame, step traces,coroutine,tailcall, and the longest-match rules of regular expressions. -
A decision on the commands that the sandbox omits.
-
A
compactthat keeps the compiled forms of procs. -
An in-place write to an existing key of a dict at the global level.
-
Cheaper proc frames.
-
A cached list form for a string value.
llengthandlindexparse a string value again at each call.