On Sat, 22 Sep 2001, Ken Fox wrote:
> I've been thinking about the possibility of building a higher-level
> VM. The current VM is very close to a traditional CPU. What if we did
> something non-traditional that made implementing higher-level
> lexically scoped languages easier?
<snip>
> I'm proposing:
>
> while (code)
> if (code.scope != current.scope)
> fixup_environment(code)
> code = dispatch(code)
Take it from me (the one with several abortive attempts at getting an
extra compare stuck in Perl 5's dispatch loop): You don't want to stick
another compare in there. It *kills* performance.
You'd want to use scope enter and leave opcodes instead. Much faster.
- D
<[EMAIL PROTECTED]>