
By the way, I do not know the GHC API well enough to say if it is possible to embed a super small bytecode interpreter, but : - If it is the case, then users who do not want to write scripts can use it. Others would want to compile haskell code, therefore they need GHC anyway. - If it is not, then a cool thing to do for the GHC team would be to add one ;-) In both cases, if someone on haskell-cafe knows the answer, could he write it on the wiki in the page about the ghc api ? Cheers, PE El 07/05/2010, a las 19:22, Brandon S. Allbery KF8NH escribió:
On May 4, 2010, at 01:52 , Maciej Piechotka wrote:
After change of file you have to wait a long time as it compiles and links with yi. On my system (1 GB of RAM taken by system + 1 GB 'free' + 2 GB swaps, x86-64) it could in some situations it caused OOM. I'd prefer if the code was interpreted by ghci instead of compiled by GHC in this case (it should be as fast as most of the code was compiled anyway).
On the one hand, this is doable with the GHC API. On the other, that more or less means your program contains what amounts to a full copy of GHC.
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe