Re: Code breaks with '-O', any ideas.

2007-03-05 Thread Donald Bruce Stewart
haskell2: > David Brown wrote: > > Ian Lynagh wrote: > >> On Mon, Mar 05, 2007 at 10:51:46AM -0800, David Brown wrote: > >>> My program 'harchive' breaks > >>> if compiled with '-O'. Just wondering if anyone has suggestions on > >>> how to figure out what mi

Re: Code breaks with '-O', any ideas.

2007-03-05 Thread David Brown
David Brown wrote: > Ian Lynagh wrote: >> On Mon, Mar 05, 2007 at 10:51:46AM -0800, David Brown wrote: >>> My program 'harchive' breaks >>> if compiled with '-O'. Just wondering if anyone has suggestions on >>> how to figure out what might be causing this. >

Re: Code breaks with '-O', any ideas.

2007-03-05 Thread David Brown
Ian Lynagh wrote: > On Mon, Mar 05, 2007 at 10:51:46AM -0800, David Brown wrote: >> My program 'harchive' breaks >> if compiled with '-O'. Just wondering if anyone has suggestions on >> how to figure out what might be causing this. > > What do you mean by "b

Re: Code breaks with '-O', any ideas.

2007-03-05 Thread Ian Lynagh
On Mon, Mar 05, 2007 at 10:51:46AM -0800, David Brown wrote: > My program 'harchive' breaks > if compiled with '-O'. Just wondering if anyone has suggestions on > how to figure out what might be causing this. What do you mean by "breaks"? > Is is possible

Re[2]: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Bulat Ziganshin
Hello Simon, Monday, March 5, 2007, 3:59:17 PM, you wrote: >> my Streams library [1] don't uses this thread >> at all. for threads created with forkOS it provides excellent >> overlapping of I/O and computations (thanks, Simon, situation was >> *greatly* improved in 6.6). of course, it should be

Code breaks with '-O', any ideas.

2007-03-05 Thread David Brown
My program 'harchive' breaks if compiled with '-O'. Just wondering if anyone has suggestions on how to figure out what might be causing this. Is is possible to build some files with '-O' and others without? I'm not using unsafePerformIO. Thanks, David _

ANN: regex-base version 0.72

2007-03-05 Thread Chris Kuklewicz
The version 0.71 of regex-base supplied with GHC 6.6 has a bug in Text.Regex.Base.Context: instance (RegexLike a b) => RegexContext a b (MatchResult b) where that essentially uses 'tail' where it should not, and this may even be using tail on an empty list. This has been patched in the just a

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Ian Lynagh
On Mon, Mar 05, 2007 at 10:23:53AM -0600, John Goerzen wrote: > On Mon, Mar 05, 2007 at 03:20:05PM +, Ian Lynagh wrote: > > > >From reading the docs, it sounds like forkIO keeps everything in a > > > single OS thread/process. Doesn't this mean that a program that uses > > > forkIO instead of f

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Chris Kuklewicz
John Goerzen wrote: On Mon, Mar 05, 2007 at 03:20:05PM +, Ian Lynagh wrote: >From reading the docs, it sounds like forkIO keeps everything in a single OS thread/process. Doesn't this mean that a program that uses forkIO instead of forkOS loses out on SMP machines? You can use e.g. +RTS -N2

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread John Goerzen
On Mon, Mar 05, 2007 at 03:20:05PM +, Ian Lynagh wrote: > > >From reading the docs, it sounds like forkIO keeps everything in a > > single OS thread/process. Doesn't this mean that a program that uses > > forkIO instead of forkOS loses out on SMP machines? > > You can use e.g. +RTS -N2 to use

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Simon Marlow
Ian Lynagh wrote: On Mon, Mar 05, 2007 at 08:36:29AM -0600, John Goerzen wrote: On Mon, Mar 05, 2007 at 12:59:17PM +, Simon Marlow wrote: There seems to be a common misconception that forkOS is necessary to get certain kinds of concurrency, and forkIO won't do. I don't know where this com

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Ian Lynagh
On Mon, Mar 05, 2007 at 08:36:29AM -0600, John Goerzen wrote: > On Mon, Mar 05, 2007 at 12:59:17PM +, Simon Marlow wrote: > > There seems to be a common misconception that forkOS is necessary to get > > certain kinds of concurrency, and forkIO won't do. I don't know where this > > comes from

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread John Goerzen
On Mon, Mar 05, 2007 at 12:59:17PM +, Simon Marlow wrote: > There seems to be a common misconception that forkOS is necessary to get > certain kinds of concurrency, and forkIO won't do. I don't know where this > comes from: the documentation does seem to be quite clear to me. The only > re

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Simon Marlow
Bulat Ziganshin wrote: Hello Simon, Friday, March 2, 2007, 1:07:07 PM, you wrote: But let me add a voice to keeping the non-threaded RTS around. i want to mention that problem here is not the threaded RTS by itself, but standard i/o library that works via separate i/o manager thread that is

Re: Query information about installed modules user or system only?

2007-03-05 Thread Simon Marlow
Marc Weber wrote: Is there a way to ask ghc-pkg to list all availible packages found in the user lib or system lib or lib given by path? If I have read the documentation corretly it says: no. Is there any reason for this restriction? Can I query ghc-pkg to list pgk-config files (user/ system)?

Re: ghci and ghc -threaded broken with pipes & forking

2007-03-05 Thread Simon Marlow
John Goerzen wrote: On 2007-03-02, Simon Marlow <[EMAIL PROTECTED]> wrote: Regarding your shell: I would suggest trying forkIO for the Haskell "processes" (not forkOS unless for some reason you really need another OS thread). However, I can imagine that it might be hard to implement job con