Re: ghc command line evaluation

2006-04-05 Thread Björn Bringert
Benjamin Franksen wrote: On Wednesday 05 April 2006 20:32, Pedro Miguel Duarte wrote: I am writing a Java program with a call to a Haskell module M.hs, in order to evaluate some expression expr. A very simple idea, which I got somewhere in the net, is to create a Process object p which e

Re: ghc command line evaluation

2006-04-05 Thread Benjamin Franksen
On Wednesday 05 April 2006 20:32, Pedro Miguel Duarte wrote: > I am writing a Java program with a call to a Haskell module M.hs, > in order to evaluate some expression expr. > > A very simple idea, which I got somewhere in the net, is to create a > Process object p which executes a GHC comman

ghc command line evaluation

2006-04-05 Thread Pedro Miguel Duarte
  I am writing a Java program with a call to a  Haskell module  M.hs, in order to evaluate some _expression_   expr.   A very simple idea, which I got somewhere in the net,  is to create a Process object p  which executes a GHC command-line instruction:   Process p = Runtime.getRuntime(); p.exec(

Re: ghc releasing memory during compilation

2006-04-05 Thread Ketil Malde
Ketil Malde <[EMAIL PROTECTED]> writes: > 18580 ketil 18 0 1762m 945m 256 D 3.0 93.5 33:52.81 rbr > > So it used more than double the amount of memory. I can provide the source, but perhaps I should mention that the program basically just builds a large "Map Int Int". No tricky FFI, a

Re: ghc releasing memory during compilation

2006-04-05 Thread Ketil Malde
I think I complained earlier about '+RTS -MxxxM' not being respected, but was unable to reproduce the issue. I just saw this again, my process was, I thought, limited to 800M heap, but, just before I gave up and killed the process, 'top' told me: 18580 ketil 18 0 1762m 945m 256 D 3.0 9