caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jonathan Bryant <jtbryant@valdosta.edu>
To: caml-list@inria.fr
Subject: Marshal and Polymorphism
Date: Thu, 04 Aug 2005 14:23:56 -0400	[thread overview]
Message-ID: <1123179836.3276.76.camel@starlight.valdosta.edu> (raw)

I know the subjects of the questions I ask on this list must seem all
over the map, but I'm working on a large project with many different
parts.  Anyway, on to my question :).

I'm trying to write a disk bound hashtable.  I'm doing this because I
have to store somewhere between 1,000,000,000 - 2,000,000,000 (no, that
is NOT a typo) words and their corresponding index numbers, as well as
the documents they appeared in (20,000,000,000+) and frequency
information.  My question is this:

If I make the module have

type = ('a, 'b) t

in the module definition, can I use

(Marshal.from_string ... : 'a)

and get whatever 'a was defined as in the definition.  For example, if
it was a (string * int) t, would the function return a string?  Or would
this be redundant (since Marshal.from_string already returns 'a)?

-- 
*=========================*
|Jonathan Bryant          |
|Valdosta State University|
|Information Technology   |
|System Operations        |
|-------------------------|
|jtbryant@valdosta.edu    |
|x6358                    |
*=========================*


             reply	other threads:[~2005-08-04 18:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-04 18:23 Jonathan Bryant [this message]
2005-08-04 20:06 ` [Caml-list] " Stephane Glondu
2005-08-04 20:39   ` Jonathan Bryant
2005-08-04 21:57     ` Stephane Glondu
2005-08-04 23:17     ` skaller

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=1123179836.3276.76.camel@starlight.valdosta.edu \
    --to=jtbryant@valdosta.edu \
    --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;
as well as URLs for NNTP newsgroup(s).