caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Brown <caml-list@davidb.org>
To: Jere Sanisalo <xm_ocaml@xmunkki.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml to C
Date: Sun, 9 May 2004 12:48:29 -0700	[thread overview]
Message-ID: <20040509194829.GA24809@davidb.org> (raw)
In-Reply-To: <20040509115000.A9300@xmunkki.org>

On Sun, May 09, 2004 at 11:50:00AM +0300, Jere Sanisalo wrote:

> Because ocaml compilers/runtimes do not exist for every platform (say,
> consoles). And because compiling to C code could allow you to write
> independent libraries for others to use.

The runtime is actually there for a reason.  It is much of what makes
ocaml, ocaml.  Even if you could generate C code from ocaml (it probably
wouldn't be very good, unless you did lots of non-compiler-portable
tricks like GHC), it would still need the same kind of runtime.  Ocaml
programs generate a lot of short-lived garbage.  Without a garbage
collector, the program would eat up a lot of memory.

The native code runtime isn't very big.

I think effort would be better spent porting the runtime to these new
platforms.

Dave Brown

-------------------
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


  reply	other threads:[~2004-05-09 19:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-07 21:11 Jon Harrop
2004-05-08 21:37 ` John Goerzen
2004-05-09  8:50   ` Jere Sanisalo
2004-05-09 19:48     ` David Brown [this message]
2004-05-10 19:10     ` John Goerzen
2004-05-10 20:03       ` Eric Stokes

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=20040509194829.GA24809@davidb.org \
    --to=caml-list@davidb.org \
    --cc=caml-list@inria.fr \
    --cc=xm_ocaml@xmunkki.org \
    /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).