[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

[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: http://quux.o

[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] 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 short

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

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 en

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 Findl

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 | /usr/bi

[Haskell] Speed of ByteString.Lazy

2006-06-29 Thread Chad Scherrer
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 | /usr/bin/time wc 2350570 4701140 49149973 5.81user 0.03system 0:06.08elapsed 95%CPU (0avgtext+0avgdata 0maxresident)

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 w