Prototype-based programming

Bruno Desthuilliers bdesth.nospam at removeme.free.fr
Wed Dec 10 20:07:47 EST 2003


Hung Jung Lu wrote:
> Hi,
> 
> Description of PBP (Prototype-based programming) can be found at:
> http://en.wikipedia.org/wiki/Prototype_based
> http://www.dekorte.com/Proto/Chart.html
> 
> ("Self" is an example of a PBP language:
> http://research.sun.com/self/language.html)
> 
> The most naive PBP would imply a overwhelming redundancy in namespace
> entries. (E.g: all object instances carry bindings for their methods.)
> Efficient in time, but not very efficient in space (memory usage). But
> I am sure people have looked at lookup-precedence strategies, much
> like how Python finds names first in the local, then the global, then
> the built-in namespace, or how instance attributes are looked up in
> multiple inheritance.

You may want to have a look at Io
http://www.iolanguage.com/

(snip)

Bruno





More information about the Python-list mailing list