Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Konstantin Tcholokachvili <tcholoka@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Ocaml implementation and low level details
Date: Thu, 28 Jan 2010 18:39:50 +0000	[thread overview]
Message-ID: <20100128183950.GA7701@annexia.org> (raw)
In-Reply-To: <ecafee001001280442p3d8edc81jbbab51fd269211f1@mail.gmail.com>

On Thu, Jan 28, 2010 at 01:42:15PM +0100, Konstantin Tcholokachvili wrote:
> I am writing an operating system kernel and I am considering the idea of
> rewritting it in Ocaml or make a wrapper.
> As I don't  know how Ocaml is implemented in detail so I have the following
> question:
> If want to code in Ocaml without using the garbage collector, will I be able
> to use my own multithreading implementation or will I be limited by Ocaml's
> global lock?

You're probably better off not using the current runtime, but instead
implementing enough of the runtime based on the functions that the
code generator needs.  But reading the rest of the thread it sounds
like you really need to look deeply at the current implementation
first before you are in a position to make any decision (luckily the
runtime of OCaml is not hard to understand, and is mostly written in
C).  Asking if one can code in OCaml "without using the garbage
collector" doesn't really make any sense as a question, since at least
the minor heap is a fundamental concept in the language.  And the
"global lock" just prevents reentrancy in the current implementation
of the GC -- you can easily use one minor heap per thread, although
that is likely to just push the problem elsewhere.

Rich.

-- 
Richard Jones
Red Hat


  parent reply	other threads:[~2010-01-28 18:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-28 12:42 Konstantin Tcholokachvili
2010-01-28 12:55 ` [Caml-list] " Samuel Thibault
     [not found]   ` <ecafee001001280510t10cde708h7e2d258629cb0f9c@mail.gmail.com>
2010-01-28 13:12     ` Konstantin Tcholokachvili
2010-01-28 13:18     ` Samuel Thibault
2010-01-28 13:35       ` Konstantin Tcholokachvili
2010-01-28 13:45         ` Samuel Thibault
2010-01-28 17:28           ` Konstantin Tcholokachvili
2010-01-28 17:47             ` Basile STARYNKEVITCH
2010-01-28 18:39 ` Richard Jones [this message]
2010-01-28 20:22   ` Goswin von Brederlow
2010-01-28 21:16     ` Konstantin Tcholokachvili

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=20100128183950.GA7701@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@yquem.inria.fr \
    --cc=tcholoka@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