Cutting down GHC installation to bare minimum

2010-04-27 Thread leledumbo
I notice that many of the installed libs aren't required for learning Haskell. What libs are required so I can get the bare minimum version of GHC? Also, is there any automatic way so that I don't have to manually delete the folders and edit package.conf? -- View this message in context:

Re: FFI calls: is it possible to allocate a small memory block on a stack?

2010-04-27 Thread Simon Marlow
On 23/04/2010 19:03, Denys Rtveliashvili wrote: Tue Dec 1 16:03:21 GMT 2009 Simon Marlowmarlo...@gmail.com mailto:marlo...@gmail.com * Make allocatePinned use local storage, and other refactorings The version I have checked out is 6.12 and that's why I haven't seen this patch. Are

Re: [Haskell] Re: ANNOUNCE: GHC version 6.12.2

2010-04-27 Thread Simon Marlow
On 27/04/2010 01:58, Jens Petersen wrote: On 22 April 2010 10:19, Ian Lynaghig...@earth.li wrote: Release notes are here: http://haskell.org/ghc/docs/6.12.1/html/users_guide/release-6-12-2.html No mention of it, but is utf8-string now only an internal library? It was always supposed to

Re: Cutting down GHC installation to bare minimum

2010-04-27 Thread Yitzchak Gale
leledumbo wrote: I notice that many of the installed libs aren't required for learning Haskell. What libs are required so I can get the bare minimum version of GHC? For most people, the recommended approach is to install the Haskell Platform. This is not a minimal setup - it includes packages

Re: Cutting down GHC installation to bare minimum

2010-04-27 Thread Dave Bayer
I agree with the answer that Yitz gave, but let me frame it in a bit of context: Many people's idea of a programming language is Python, and within 12 minutes of settling in to a new language they're going to wonder how to match a regular expression to a string, or download a web page, and

Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
Hi, As a followup to the discussion [1] about the portable way to find the number of CPUs/cores: how is the default value of numCapabilities [2] set when +RTS -N is not on the command line? Does GHC runtime figure out the number of cores itself, or it is by default 1 unless specified on the

Re: Default value for numCapabilities?

2010-04-27 Thread Bryan O'Sullivan
On Tue, Apr 27, 2010 at 9:09 AM, Dimitry Golubovsky golubov...@gmail.comwrote: how is the default value of numCapabilities [2] set when +RTS -N is not on the command line? Does GHC runtime figure out the number of cores itself, With 6.12.1 and newer, no -N argument implies 1 core, -N*k*

Re: Default value for numCapabilities?

2010-04-27 Thread Bulat Ziganshin
Hello Dimitry, Tuesday, April 27, 2010, 8:09:49 PM, you wrote: a few months ago i asked SimonM about using all cores by default, but he said that it dramatically reduces performance in some cases Hi, As a followup to the discussion [1] about the portable way to find the number of

Re: Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
Bulat, All I need is to know how many cores I have. In my program, I can run some actions in parallel, and knowing the number of cores helps set the maximum number of parallel processes. These processes are in fact external programs (CPU-intensive but not memory intensive, so number of cores is

strong type derivation in ghc 6.12 compared to 6.12

2010-04-27 Thread Seyed Hosein Attarzadeh Niaki
I have problems with upgrading some already working code for GHC 6.12. The following code: --- {-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving, TemplateHaskell #-} import Data.Data import Language.Haskell.TH.Syntax

Re: Default value for numCapabilities?

2010-04-27 Thread Dimitry Golubovsky
Hi, Interesting: my program is compiled with -threaded, and when I run it with +RTS -N I get: program name: forking not supported with +RTS -Nn greater than 1 This is probably about forkProcess rather than forkIO/forkOS, but why this limitation? rawSystem works fine from within a thread started