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

Re: Tcl - compiling expressions

Thread Previous | Thread Next
From:
Amos Robinson
Date:
September 30, 2005 10:39
Subject:
Re: Tcl - compiling expressions
Message ID:
2209.144.136.37.243.1128101946.squirrel@webmail.coscom.net
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About