[jhc] Re: Ids in Jhc.

Lemmih lemmih at gmail.com
Wed Feb 13 19:29:43 EST 2008

On Feb 14, 2008 12:50 AM, John Meacham <john at repetae.net> wrote:
> (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.


> 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.


More information about the jhc mailing list