Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Bulat Ziganshin
Hello Vyacheslav, Monday, October 23, 2006, 7:20:47 AM, you wrote: Bulat: I didn't get the chance to use the streams library yet, but could you explain how it would solve my locking problem? The core problem that the runtime under Win32 doesn't have an IO manager still remains, correct? i

Re: Timing Stats in ghci-6.6

2006-10-23 Thread Daniel Fischer
Repost, seems to have been lost last week: Am Dienstag, 17. Oktober 2006 12:35 schrieb Simon PJ: What timing? Can you be more explicit pls? Just plain old :set +s in ghci: [EMAIL PROTECTED]:~/Downloads/Euler ghci Euler44 ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | |

Re: Benchmarking GHC

2006-10-23 Thread Simon Marlow
John Meacham wrote: On Fri, Oct 20, 2006 at 10:38:39AM +0100, Simon Marlow wrote: I'm not sure that -funbox-strict-fields always improves performance, even if you only do it on Ints for example. If you end up pulling out those fields and passing the Int to a lazy function, the Int will be

Re: GHC 6.6 using stale stub.c files

2006-10-23 Thread Simon Marlow
Juan Carlos Arevalo Baeza wrote: I tried recompiling a little (big?) Win32 binding library I had made, when the official one wasn't working for me. It had a bunch of generated stubs files in it (I'm not 100% sure what they are for). The problem is that, not even with -fforce-recomp (much

Debugging on Mac OS X

2006-10-23 Thread Luke Worth
Hi all, I just installed GHC 6.6 using the PPC binary installer on Mac OS X. I'm having some trouble getting debuggers to work; I have tried both plargleflarp (buddha) and Hat. Neither of them will compile on GHC 6.6 on Mac yet. For anyone in the same situation, how do you survive? I know

Re: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Simon Marlow
Bulat Ziganshin wrote: Hello Vyacheslav, Monday, October 23, 2006, 7:20:47 AM, you wrote: Bulat: I didn't get the chance to use the streams library yet, but could you explain how it would solve my locking problem? The core problem that the runtime under Win32 doesn't have an IO manager still

Re: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Simon Marlow
Donald Bruce Stewart wrote: bulat.ziganshin: Hello Donald, Sunday, October 22, 2006, 9:04:02 AM, you wrote: can't you define this call as 'safe'? But is it safe. Hmm I get kind of queasy when mucking about in the rts. i don't understand you (because of my weak English). 'safe'

Re: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Simon Marlow
Simon Marlow wrote: Bulat Ziganshin wrote: Hello Vyacheslav, Monday, October 23, 2006, 7:20:47 AM, you wrote: Bulat: I didn't get the chance to use the streams library yet, but could you explain how it would solve my locking problem? The core problem that the runtime under Win32 doesn't

moving to ghc-6.6

2006-10-23 Thread Johannes Waldmann
Hello. I just move a larger project to ghc-6.6 (from 6.4) http://dfa.imn.htwk-leipzig.de/auto/ (ca. 1000 modules) I had to modify my sources in several places. Perhaps the following list of observations is useful. tools: cabal/ghc work nicely, including building for profiling and

Re[2]: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Bulat Ziganshin
Hello Simon, Monday, October 23, 2006, 5:05:56 PM, you wrote: Perhaps your bug is that you're using hGetBufNonBlocking, which isn't on Windows? _whose_ bug? you write to Simon Marlow :) and what is you explanation why Vyacheslav's programs using getLine does block? -- Best regards,

Re: Concurrency issue with dynamic linker in GHC

2006-10-23 Thread Simon Marlow
Bulat Ziganshin wrote: Hello Simon, Monday, October 23, 2006, 5:05:56 PM, you wrote: Perhaps your bug is that you're using hGetBufNonBlocking, which isn't on Windows? _whose_ bug? you write to Simon Marlow :) Sorry - let me rephrase that: perhaps the problem is that hs-plugins uses

Re: GHC 6.6 using stale stub.c files

2006-10-23 Thread Juan Carlos Arevalo Baeza
Simon Marlow wrote: Juan Carlos Arevalo Baeza wrote: I tried recompiling a little (big?) Win32 binding library I had made, when the official one wasn't working for me. It had a bunch of generated stubs files in it (I'm not 100% sure what they are for). The problem is that, not even with

Re: moving to ghc-6.6

2006-10-23 Thread Juan Carlos Arevalo Baeza
Another one: library change: the HasBounds class is gone. JCAB Johannes Waldmann wrote: Hello. I just move a larger project to ghc-6.6 (from 6.4) http://dfa.imn.htwk-leipzig.de/auto/ (ca. 1000 modules) I had to modify my sources in several places. Perhaps the following list of observations

Re: GHC 6.6 using stale stub.c files

2006-10-23 Thread Simon Marlow
Juan Carlos Arevalo Baeza wrote: Simon Marlow wrote: Juan Carlos Arevalo Baeza wrote: I tried recompiling a little (big?) Win32 binding library I had made, when the official one wasn't working for me. It had a bunch of generated stubs files in it (I'm not 100% sure what they are for).

Re: Bad control characters in GHCi 6.6 (Mac OS X PPC)

2006-10-23 Thread Björn Buckwalter
On 10/19/06, Simon Marlow [EMAIL PROTECTED] wrote: See this page that I just created: http://hackage.haskell.org/trac/ghc/wiki/Building/MacOSX I tried these instructions, first by using my existing (darwinports) readline in /opt/local, and when that failed by first installing readline in

ghc error

2006-10-23 Thread Chad Scherrer
I tried compiling a file today using -O2, and it gave me this: /tmp/ghc10376_0/ghc10376_0.hc:5:20: HsTime.h: No such file or directory It compiled fine without the -O2. Am I missing some files? Where can I find what I need to make this work again? Thanks, -- Chad Scherrer Time flies

Re: Benchmarking GHC

2006-10-23 Thread John Meacham
On Mon, Oct 23, 2006 at 01:06:48PM +0100, Simon Marlow wrote: Right, this occurred to me too. Alternatively we could have the strictness analyser represent a strict enumeration by Int# (I believe there's a ticket for this). I think when we discussed this for GHC the conclusion was that

Heap representation evil

2006-10-23 Thread Brandon Moore
Thinking to take advantage of fortuitous heap layout of some Haskell values for interfacing with C, I've written the following function: addressOf :: a - Ptr () addressOf x = x `seq` unsafeCoerce# (Box x) data Box x = Box x For example, data A = A {-# UNPACK #-} !(Ptr Word8) {-# UNPACK #-}

Re: Heap representation evil

2006-10-23 Thread Brandon Moore
John Meacham wrote: I am not sure if you can't use them for some reason, but this sounds like exactly the problem that stable pointers are meant to solve: http://haskell.org/ghc/docs/latest/html/libraries/base/Foreign-StablePtr.html Which problem? Mostly, I noticed that evaluated Haskell