From: Stephan Houben <stephan@pcrm.win.tue.nl>
To: caml-list@inria.fr
Subject: symbol managment in Caml
Date: Fri, 25 Feb 2000 13:16:22 +0100 [thread overview]
Message-ID: <20000225131622.A4595@pcrm.win.tue.nl> (raw)
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
next reply other threads:[~2000-02-25 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-25 12:16 Stephan Houben [this message]
2000-02-25 16:21 ` skaller
2000-02-25 16:25 ` Judicael Courant
2000-02-25 17:10 ` Claudio Sacerdoti Coen
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=20000225131622.A4595@pcrm.win.tue.nl \
--to=stephan@pcrm.win.tue.nl \
--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