Prothon Prototypes vs Python Classes
Christian Tismer
tismer at stackless.com
Mon Mar 29 07:55:09 EST 2004
Mark Hahn wrote:
> Mutability is an interesting area. I just added an unmutable bit in the
> Prothon internal object which makes the read_lock call a no-op and causes a
> write_lock call to throw an exception. This makes the object
> write-protected and makes the lock code run much faster.
>
> I did this for internal performance reasons, but after doing it I realize
> that extending it to the Ruby freeze() level would be really good. Tying
> the freezing in somehow to the bang! methods is also in interesting area of
> research.
> Mark Hahn (Prothon Author)
>
> P.S. If this belongs in the Prothon list instead of Python, let us know.
Allthough I'm a known Python-addict, I find this very interesting.
Being prototyped instead of class based was one of the features
of JavaScript, which were concidered "deficiencies". Well, I didn't
share this so much, there are many other much worse problems.
I'm eager to learn how a real language develops if it consequently
builds upon prototypes. Especially this one, since it is stackless
by nature. :-)
ciao - chris
--
Christian Tismer :^) <mailto:tismer at stackless.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Python-list
mailing list