caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Whitington <john@coherentgraphics.co.uk>
To: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] Stack size on OS X
Date: Mon, 30 Nov 2009 22:21:10 +0000	[thread overview]
Message-ID: <31C9E407-C330-4F79-82F3-73C3CEBE60B4@coherentgraphics.co.uk> (raw)
In-Reply-To: <4B143E93.6070702@univ-savoie.fr>

Hi Christophe,

On 30 Nov 2009, at 21:52, Christophe Raffalli wrote:
 not carefull,
> although quite rare in OCaml).
>> On first compiling my codebase (about 100,000 lines) on a machine with limited stack size, it took only about a day to fix up.
>> 
>> I agree that, morally, stack space available and general memory available should be roughly equivalent concepts (like with Linux), but sometimes it's easier to give in - after all, how are you to estimate the size you actually need accurately?
>> 
> I do not understand what you mean ? stack size + heap size = maximum of
> available memory as in linux is the best ?

In the sense that, since Linux expands the stack as needed, one needn't worry about a program which uses x Mb of stack being any more likely to 'crash' than one which uses x Mb of heap.

So, the total usage of a program (stack + heap) is the only metric needed. Unless (as you say) performance is to be considered.

Cheers,

-- 
John Whitington
Director, Coherent Graphics Ltd
http://www.coherentpdf.com/


      reply	other threads:[~2009-11-30 22:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 15:26 Christophe Raffalli
2009-11-30 16:07 ` [Caml-list] " John Whitington
2009-11-30 21:52   ` Christophe Raffalli
2009-11-30 22:21     ` John Whitington [this message]

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=31C9E407-C330-4F79-82F3-73C3CEBE60B4@coherentgraphics.co.uk \
    --to=john@coherentgraphics.co.uk \
    --cc=Christophe.Raffalli@univ-savoie.fr \
    --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).