develooper Front page | perl.perl6.internals | Postings from February 2002

RE: Globals

Thread Previous | Thread Next
From:
Angel Faus
Date:
February 11, 2002 08:45
Subject:
RE: Globals
Message ID:
NDECKMNLNLHACJPEBADPGEJADHAA.afaus@corp.vlex.com

>Melvin Smith [mailto:melvins@us.ibm.com]:
>
>I was also pondering the usefulness of being able to plug
>in a symbol table lookup algorithm, rather than hardcoding
>it as a hash, so languages that don't need dynamic naming
>lookup (I guess most that don't have runtime eval support
>fall in this category), store/loads of globals can be optimized
>as an array offset rather than a hash key.
>

This is an interesting discussion of how to optimize globals (it talks about
Python's VM but I'd say that most of it could be aplicable to Parrot):

http://www.python.org/~jeremy/talks/spam10/PEP-267-1.html

It essentially suggests that names known at compile-time work using an
array offset, while variable names created dinamically work by a hash key.

It's an online version of a PythonCon talk. BTW, Dan was there,
wasn't him? Any news about the conference? Were the Python zealots
friendly? :-)

-angel


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