The next *big* milestone is to be able to run tcl's test suite natively.
That means being able to deal with all the commands in:
http://cvs.sourceforge.net/viewcvs.py/tcl/tcl/library/tcltest/tcltest.tcl?view=markup
This will require a *lot* of work.
On the plus side,
we'll be passing a lot more tests by then.
=-)
- Generate compiler-variants for several builtins,
esp.
those used by examples/bench.tcl - NB: bench.tcl is currently failing.
- Add compiled TclComment objects,
which do nothing other than generate PIR comments with the same text.
- It would be nice if
--pir
generated more human readable output.
It's OK,
I think,
if the generated PIR has more whitespace all the time,
even if a human isn't peeking.
- It should be possible to implement some builtins in terms of other builtins.
See http://wiki.tcl.tk/15051 for some musings on this.
We already at least partial implementations of most of the items there.
If we go this route,
then we need to pre-compile the builtins-in-tcl into PIR at build time.
- Makefile deps
- Should be more explicit about the PMC dependencies in the makefile.
*something* is causing things to get rebuilt unecessarily each time "make tclsh" is run.
Very likely due to the build_dynclasses targets that don't specify explicit deps.
- Use new argument handling from inside [proc]s
- Most builtins take a varying number of arguments,
so it's hard to use this there,
but for procs without {args} arguments,
this error handling can be help eliminate a chunk of the wrapper script.
Throw an exception *inside* the sub,
catch it,
and then throw the appropriate tcl exception about the wrong # of args.
See lt's mail to the p6i titled:
pdd03 and Overflow/Underflow - r10269
- implement default globals, etc.
- global variables provided by tcl libary. tclvars.
- global variables provided by tcl interpreter. tclsh
- source per-user settings. tclsh
- provide a way to access existing library PIR from Tcl.
- Perhaps via [namespace import]? Can fake it right now with [inline]
- returncodes.pir
- The __clone macro should be moved to 'lib/macros.pir'.
- [expr]
- Add "is_const" global which checks to see if something is, in fact, constant. (which will allow us to then constant fold. Leo assures us that constant folding isn't necessary at the language level, but.)
- TBD: ternary op
- TBD: functions that take > 1 arg.
- TBD: Argument type requirements - Currently works ONLY on bitand - esp need to get any that require int-only args, as we can now /generate/ floats, even if we cannot specify them. This is all supportable by MMD - we just need to specify the correct errors to throw.
- [pwd], [cd] [#???]
- Need this to run tcltest
- [interpinfo name] [#36277]
- how to do this from inside parrot? Design issue: what's the right answer? if we're called as
parrot tcl.pbc foo.tcl
, do we report just parrot
, or parrot tcl.pbc
?
- [after], [vwait]
- pending the event system thunk.