From: Joel Reymont <joelr1@gmail.com>
To: Jesper Louis Andersen <jesper.louis.andersen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] appending data to a mmap-ed file
Date: Thu, 16 Dec 2010 13:13:25 +0000 [thread overview]
Message-ID: <5923F3B9-6794-4C87-9ED3-C0EA5078014B@gmail.com> (raw)
In-Reply-To: <AANLkTi=Mc3ac=V=mVpWrQUdozzvSkfnT4jJ+VdAXuFAy@mail.gmail.com>
Jesper,
On Dec 16, 2010, at 12:38 PM, Jesper Louis Andersen wrote:
> Simply have an Ocaml array of bytes or something such to
> store data into (my Ocaml representation specific knowledge is not up
> to par at the moment, but arrange it such that the byte-array has
> C-representation underneath.
The data comes from a C++ thread running a market data feed. I was planning to manage the memory-mapped file in the same thread and only notify OCaml when new data is available, after extending the memory mapping. It seems to be the simplest approach to me.
I also need to launch a C++ thread from OCaml and talk to it but that's probably a subject for a new mailing list thread.
Thanks, Joel
---
http://twitter.com/wagerlabs
next prev parent reply other threads:[~2010-12-16 13:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-16 11:31 Joel Reymont
2010-12-16 12:38 ` [Caml-list] " Jesper Louis Andersen
2010-12-16 13:13 ` Joel Reymont [this message]
2010-12-16 12:57 ` Gerd Stolpmann
2010-12-16 17:16 ` Richard W.M. Jones
2010-12-17 0:36 ` Goswin von Brederlow
2010-12-17 14:48 ` Richard W.M. Jones
2010-12-17 15:49 ` Joel Reymont
2010-12-17 19:05 ` Goswin von Brederlow
2010-12-18 9:56 ` Christophe Raffalli
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=5923F3B9-6794-4C87-9ED3-C0EA5078014B@gmail.com \
--to=joelr1@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=jesper.louis.andersen@gmail.com \
/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