Re: [GHC] #608: Make the NCG able to compile the RTS

2006-06-29 Thread GHC
#608: Make the NCG able to compile the RTS -+-- Reporter: simonmar| Owner: wolfgang Type: task| Status: closed Priority: normal | Milestone:

Re: [Haskell] Forcing Type Class Equality

2006-06-29 Thread Gerrit van den Geest
Hi John, NB the essence what I am trying to do is to define a proxy class Foo for class Ba1 I would have thought that something as simple as the following would have worked ?? class Ba1 a where dosomething :: a - IO () ba1 :: Ba1 a = a - IO () ba1 x = dosomething x instance Ba1 Int

Re: [Haskell] Speed of ByteString.Lazy

2006-06-29 Thread Robby Findler
Just out of curiosity, did you try wc -l? Robby On Jun 29, 2006, at 1:18 PM, Chad Scherrer wrote: I have a bunch of data files where each line represents a data point. It's nice to be able to quickly tell how many data points I have. I had been using wc, like this: % cat *.txt |

Re: [Haskell] Speed of ByteString.Lazy

2006-06-29 Thread Chad Scherrer
No. I suppose man wc would have helped, but this has been entertaining, anyway. Times for lc and wc -l seem comparable over a couple of runs. So in any case, it's encouraging that it's so easy to reach speeds comparable to (presumably) highly-tuned C code like this. -Chad On 6/29/06, Robby

Re: [Haskell] Speed of ByteString.Lazy

2006-06-29 Thread Robby Findler
Haskell's expressiveness really shines here, doesn't it! Robby At Thu, 29 Jun 2006 11:43:02 -0700, Chad Scherrer wrote: No. I suppose man wc would have helped, but this has been entertaining, anyway. Times for lc and wc -l seem comparable over a couple of runs. So in any case, it's

Re: [Haskell] Speed of ByteString.Lazy

2006-06-29 Thread Ketil Malde
Robby Findler [EMAIL PROTECTED] writes: Just out of curiosity, did you try wc -l? import qualified Data.ByteString.Lazy.Char8 as L main = L.getContents = print . L.count '\n' ..or import Data.ByteString (hGetLines) main = hGetLines IO.stdin = print . List.length ? -k -- If I

[Haskell] Re: Speed of ByteString.Lazy

2006-06-29 Thread Donald Bruce Stewart
chad.scherrer: Wow. 64 times as fast for this run, with almost no effort on my part. Granted, wc is doing more work, but the number of words and characters aren't interesting to me in this case, anyway. I can't imagine (implementation time)*(execution time) being much shorter.

[Haskell] ANN: HDBC 1.0

2006-06-29 Thread John Goerzen
Well, the latest HDBC has been stable for quite awhile. I've used it in a number of projects, and I know several others have as well. I've made some minor tweaks to the cabal files to work with GHC 6.4.2, and released it as 1.0.0. Have fun. http://quux.org/devel/hdbc -- John -- John Goerzen

[Haskell] NEW: hpodder

2006-06-29 Thread John Goerzen
Hello everyone, I'm pleased to announce the first release of hpodder. hpodder is a podcast downloader (podcatcher) written in pure Haskell. I wrote it because I was unsatisfied with the other podcatchers for Linux. I am using hpodder for my own purposes already. hpodder homepage:

[Haskell] ANNOUNCE: HNOP 0.1

2006-06-29 Thread Ashley Yakeley
HNOP: Haskell No Operation A first version of HNOP 0.1 is now available under a simple permissive license. This version should be considered beta quality, though I don't know of any bugs. http://semantic.org/hnop.tar.gz HNOP does nothing. Here's a sample session to illustrate: $ ./hnop $

Re: [Haskell-cafe] A question about stack overflow

2006-06-29 Thread ihope
On 6/27/06, Udo Stenzel [EMAIL PROTECTED] wrote: Neil Mitchell wrote: Or if you don't want to go for a fold next, in a style more similar to the original: maximum [] = undefined maximum [x] = x maximum (a:b:xs) = maximum (max a b : xs) It even reproduces the stack overflow, though for a

[Haskell-cafe] System.FilePath, Request for comments

2006-06-29 Thread Neil Mitchell
Hi, I have written a System.FilePath module in part based on the one in Yhc, and in part based on the one in Cabal (thanks to Lemmih). The aim is to try and get this module into the base package, as FilePath's are something many programs use, but its all too easy to hack up a little function

Re: [Haskell-cafe] System.FilePath, Request for comments

2006-06-29 Thread Bulat Ziganshin
Hello Neil, Thursday, June 29, 2006, 8:42:08 PM, you wrote: I have written a System.FilePath module in part based on the one in Yhc, and in part based on the one in Cabal (thanks to Lemmih). The aim is to try and get this module into the base package, as FilePath's are i think that filepath

Re: [Haskell-cafe] System.FilePath, Request for comments

2006-06-29 Thread Neil Mitchell
Hi 1) there are two independent filepath modules used with little modifications in all projects i seen. They both included in MissingH (FilePath.hs and NameManip.hs). From what I can tell, FilePath.hs is the one from Cabal, which I already used as a reference. As far as I can tell, this

[Haskell-cafe] Re: Speed of ByteString.Lazy

2006-06-29 Thread Chad Scherrer
Then I should be thanking Duncan as well (thanks!). I had seen the array fusion idea before in the NDP work, but I hadn't thought of applying to this area. I wonder where else the concept might apply? Is there a typeclass to be built? -- Chad ScherrerTime flies like an arrow; fruit flies like a