On Feb 14, 2008 12:50 AM, John Meacham
(I'm gonna forward this response to the jhc list too, if that's okay) On Thu, Feb 14, 2008 at 12:26:49AM +0100, Lemmih wrote:
I've been wondering about your use of Ids in Jhc. As far as I can see, the rules for Ids goes as following: * named ids are odd * unnamed ids are even * id '0' has special significance.
Can you tell me a bit about how unnamed ids are used, why id '0' has special meaning, and how you generate new, unique unnamed ids.
[snip]
named Ids are odd, these are looked up in a table that is implemented via a hash table written in c in the StringTable/ directory. due to an intentional quirk of its implementation, it only generates odd, positive values. Conversion between a number and its string form is constant time in both directions.
It looks like it has been replaced by a Haskell implementation. -- Cheers, Lemmih