From: Claudio Sacerdoti Coen <sacerdot@students.cs.unibo.it>
To: caml-list@inria.fr
Subject: Re: symbol managment in Caml
Date: Fri, 25 Feb 2000 18:10:07 +0100 [thread overview]
Message-ID: <20000225181006.A18284@students.cs.unibo.it> (raw)
In-Reply-To: <20000225131622.A4595@pcrm.win.tue.nl>; from Stephan Houben on Fri, Feb 25, 2000 at 13:16:22 +0100
Hello,
I have had the same problem and I was about to write the
new function when I stopped: the time taken by the hash
function was not worth the extra coding.
But I think that it's really a great pity that the
standard library lacks such a function. Moreover, it
should be really easy to implement it. Could we expect
it implemented?
Cheers,
C.S.C.
On Fri, Feb 25, 2000 at 13:16:22 +0100, Stephan Houben wrote:
> Hello list,
>
> I am writing an interpreter for a simple language in O'Caml.
> The interpreter often needs to search a hash table with a string
> as key. A common optimization for this is to use pointer identity
> instead of string equality, and "intern" every string before using
> it as a key to the hash table.
>
> Unfortunately, I don't see how to do this with the current O'Caml
> libs. You can do identity checks with ==, but there seems no way
> to get a good hash corresponding to ==.
>
> Has anyone already written some code for this task?
>
> Thanks in advance,
>
> Stephan
--
-----------------------------------------
Real Name: Claudio Sacerdoti Coen
Address: via del Colle n.6
S. Lazzaro di Savena (BO)
Italy
e-mail: sacerdot@cs.unibo.it
-----------------------------------------
next prev parent reply other threads:[~2000-02-25 18:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-25 12:16 Stephan Houben
2000-02-25 16:21 ` skaller
2000-02-25 16:25 ` Judicael Courant
2000-02-25 17:10 ` Claudio Sacerdoti Coen [this message]
2000-02-26 6:13 ` Frank A. Christoph
2000-02-28 9:49 ` Sven LUTHER
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000225181006.A18284@students.cs.unibo.it \
--to=sacerdot@students.cs.unibo.it \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox