[jhc] Re: Ids in Jhc.
John Meacham
john at repetae.net
Wed Feb 13 22:27:06 EST 2008
On Thu, Feb 14, 2008 at 01:29:43AM +0100, Lemmih wrote:
> 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.
>
> [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.
No, I just pushed out my changes that actually redid the atom stuff. it
is now down to about a fifth of what it used to be.
John
--
John Meacham - ⑆repetae.net⑆john⑈
More information about the jhc
mailing list