This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: guile extension: python dictionary type


Federico Mena Quintero <federico@nuclecu.unam.mx> writes:

| >  Modulo auto-resizing, which Guile hashtables should have anyway but
| >  don't (I secretly plot a reimplementation at some point, personally),
| >  hash tables are supposed to have O(1) access, it's hard to beat that
| >  except by improving the constant.
| 
| Maybe you can steal glib's implementation of auto-resizing hash tables.

When I remember right, glib uses the address of a string for the hash
table. That is the same like a hash with Scheme symbols. The last time
I looked at the glib hash tables, it was not possible to use them for
a dictionary of strings for example.

-- 
/* In the beginning was the Word: */
typedef long SCM;