Chain Frenkel writes:
>DS> For the internals, though...
>
>DS> This would be very useful, and it's a feature I'd really like to
implement. 
>DS> Basically you're asking for pre-computed, indirect, shared hash keys.
This 
>DS> sounds like a Good Plan to me.
>
>Why precomputed? Any 'interned' string has a unique value (e.g. address).
>Though wouldn't they have to be garbage collected? Short lived hashes
>with constantly changing keys, the shared hash keys would keep growing.

I'm not sure where the idea originated, but I've run into this concept with
MS-Windows and the X Window System.  They are shared strings that can be
referred to with a single integer number.  Local atoms in MS-Windows are
stored in hash tables, but I don't know how global atoms are stored.  I've
not really know anyone to use them very much, but it has been a long time
since I've done non-web GUI programming.

References:
http://msdn.microsoft.com/library/psdk/winbase/atoms_9alh.htm
http://support.microsoft.com/support/kb/articles/Q12/3/84.asp
http://www.rahul.net/kenton/xglossary.html
===============================================
Mark Leighton Fisher            [EMAIL PROTECTED]
Thomson Consumer Electronics    Indianapolis IN
"Display some adaptability." -- Doug Shaftoe, _Cryptonomicon_

Reply via email to