develooper Front page | perl.perl6.internals | Postings from September 2005

Re: Tcl - compiling expressions

Thread Previous | Thread Next
Amos Robinson
September 30, 2005 10:39
Re: Tcl - compiling expressions
Message ID:
Eeek. Yes, I forgot just how crazy a language it was. :-D

> Yes, that's the plan, but the initial implementation isn't going to
> be a compiler like most people would expect:
> For example, something like:
> while {$a < 10} { incr a }
> while isn't language syntax. it's a command. So, this code would
> result in creating two PMCs for the args (first arg is {$a <10},
> second is {incr a}), and then lookup the while PIR .sub, and invoke
> it with the two PMC args.
> Future versions of the compiler will be able to cheat (presuming the
> while builtin hasn't been overriden) and generate inline-able PIR,
> which should improve performance.)
> Regards.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About