caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Real Time Ocaml
Date: Thu, 15 Apr 2004 10:17:03 +0200	[thread overview]
Message-ID: <16510.17663.1463.981075@ithif51.inf.tu-dresden.de> (raw)
In-Reply-To: <20040414161227.14830.qmail@web12404.mail.yahoo.com>

Erol Akarsu writes:
   
   Have we tried to run Ocaml application on any real
   time os?
   
I believe, in order to use Ocaml for real time applications you
have to go (at least) the way sketched in Section 9.2 of Luca
Cardellis "Typeful Programming" [1]:

- identify the subset of Ocaml that is heap allocation free
- possibly modify the compiler to enlarge the heap allocation
  free subset
- make sure any programm in this subset does not invoke the
  garbage collector

You also have to do something about signal delivery. 
Then you can write your real time application in this heap
allocation free subset. You could even write the ocaml garbage
collector in Ocaml then.


Of course as others pointed out, depending on your real time
needs Ocaml might already be completely satisfactory. Another
example of Ocaml code in a time critical environment is provided
by the Ensemble project [2]. Garbage collection does not pose any
problems there.


Bye,

Hendrik

[1] http://citeseer.ist.psu.edu/cardelli89typeful.html
[2] http://www.cs.cornell.edu/Info/Projects/Ensemble/index.htm

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  parent reply	other threads:[~2004-04-15  8:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14 16:12 Erol Akarsu
2004-04-14 17:07 ` Basile STARYNKEVITCH
2004-04-15  6:51   ` Kenneth Knowles
2004-04-15 18:44     ` Brian Hurt
2004-04-16  7:55       ` Basile Starynkevitch
2004-04-16 12:33         ` Erol Akarsu
2004-04-16 15:12           ` skaller
2004-04-20  0:20         ` Brian Hurt
2004-04-20  0:31           ` Karl Zilles
2004-04-20  1:50             ` skaller
2004-04-14 18:21 ` Jon Harrop
2004-04-15  8:17 ` Hendrik Tews [this message]
2004-04-15 22:33   ` Erol Akarsu
2004-04-20  8:04     ` Hendrik Tews
2004-04-20 13:44       ` Eric Dahlman

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=16510.17663.1463.981075@ithif51.inf.tu-dresden.de \
    --to=tews@tcs.inf.tu-dresden.de \
    --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).