Re: [Haskell-cafe] intercalate and (byte)strings

2008-12-23 Thread wman
Thank you, guys, i somehow got the impression that there has to be some meaning to this. It seemed unprobable, but why would anybody write it like that if there weren't some reason to it ? ;-))) Have a nice holidays, btw. Cheers, wman. On Tue, Dec 23, 2008 at 3:21 PM, Duncan Coutts

[Haskell-cafe] intercalate and (byte)strings

2008-12-22 Thread wman
calate instead of concat (probably when dealing with non-lazy bytestrings) ? Thx, wman. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Threads with high CPU usage

2008-12-22 Thread wman
Thanks to you all for inspiration. My web app (which otherwise ran ok) was getting stuck while getting harassed by ab (apache-benchmark) after receiving some 800+ requests in short succession (not less, never gotten to 900, what was weird that running like 500 reqs - pause - 500 reqs ... went ok).

Re: [Haskell-cafe] Time for a new logo?

2008-12-17 Thread wman
> > That's the kind of mentality I am talking about. The "we are better > than you" mentality, should stay with the Java and .NET people. If you > have this urge of feeling superior and believe haskell-hacking is some > kind of achievement. . > Well, you are what many call "person who just can

Re: [Haskell-cafe] Time for a new logo?

2008-12-17 Thread wman
2008/12/17 Tristan Seligmann > I really don't think that including a visual pun on the (>>=) > operator translates to "Haskell, it's all about monads"; you're only > likely to recognise the pun after you already know about monads anyway. > True, true, and who cares about folks afraid of unknown

[Haskell-cafe] Re: [Haskell] Re: Help : A problem with IO

2008-12-15 Thread wman
you probably got it pointed out in haskell-beginners, but in case not: On Thu, Nov 27, 2008 at 7:10 PM, abdullah abdul Khadir < abdullah.ak2...@gmail.com> wrote: > a) I need to put a do after else for more than one instruction (?) No, the do thingy is a syntactic sugar for chaining "warm, fuzzy

Re: [Haskell-cafe] Crash!

2008-10-23 Thread wman
> > Well yeah, if you directly access low-level stuff, it's quite easy to make > your program crash. > > The point is... I'm not doing that. Gtk2hs is, but that's a well-tested > library, so I very much doubt it's the source of the bug. so how would a bug in GTK or in libpng demonstrate itself ?

Re: [Haskell-cafe] parsec 3 & parsec 2

2008-10-08 Thread wman
Shouldn't hiding the package stop it from causing possible mayhem, yet it be accessible to those packages depending on the new version explicitly ? On Thu, Oct 9, 2008 at 2:53 AM, Jason Dusek <[EMAIL PROTECTED]> wrote: > I recently took a look at the new Yi, and it looks neat but I > am hesitan

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
as usual, i forgot to use the magical "reply to all" and under the impression I'm still talking to the list had bothered dons personally (heresy/sacrilege/deathwish , i know) to rectify it a bit at least, i'm posting a summary, in hopes someone find it useful. -- this d

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
ghc -Onot -fstrictness --make Main1.hs && ghc -Onot -fstrictness --make Main2.hs && ghc -Onot -fstrictness --make Main3.hs time Main1 < nums real0m39.530s user0m0.015s sys 0m0.030s time Main2 < nums real0m14.078s user0m0.015s sys 0m0.015s time Main3.exe < nums real0m

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
t; and now seriously: is there a reason why -O2 shouldn't be made the default (and allowing to turn off optimizations by -O0 perhaps) ? On Tue, Oct 7, 2008 at 5:36 AM, wman <[EMAIL PROTECTED]> wrote: > new figures, after updating bytestring (0.9.0.1.1 -> 0.9.1.2) && us

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
new figures, after updating bytestring (0.9.0.1.1 -> 0.9.1.2) && using -O2 time Main < nums real0m2.531s user0m0.015s sys 0m0.015s time Main2 < nums real0m13.999s user0m0.015s sys 0m0.015s time Main3 < nums real0m2.796s user0m0.015s sys 0m0.015s thats more li

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
the problem is that using readInt is actually _as slow_, at least using my test script :-(( On Tue, Oct 7, 2008 at 5:12 AM, Don Stewart <[EMAIL PROTECTED]> wrote: > 666wman: > >a slight modification to compile it : > > > >change: > >where sumFile = sum . map read . L.words > >to :

Re: [Haskell-cafe] newbie questions (read, etc., with Data.ByteString.Lazy.Char8)

2008-10-06 Thread wman
a slight modification to compile it : change: where sumFile = sum . map read . L.words to : where sumFile = sum . map (read . L.unpack) . L.words but it's actually _slower_ than the non-bytestring version. i did a little test, three versions of the same script and manufactured meself a ~50 MB f

Re: [Haskell-cafe] Darcs / Git

2008-10-06 Thread wman
the mingw git worked flawlessly for me (and will be certainly a lot less of hassle, if one tries to remain cygwin-free). their version of git-gui also works (i didn't test it extensively). http://code.google.com/p/msysgit/ featuring an installer as well ;-) as for darcs, look here: http://wiki.

Re: [Haskell-cafe] Name for Haskell based VPN Client/Server

2008-10-06 Thread wman
As far as insults go, one simply cannot go wrong with THE Shakespearean insult kit ;-)) http://www.pangloss.com/seidel/shake_rule.html 2008/10/6 John Van Enk <[EMAIL PROTECTED]> > > On Mon, Oct 6, 2008 at 2:52 PM, Don Stewart <[EMAIL PROTECTED]> wrote: > >> >> Is the code around somewhere? This

Re: [Haskell-cafe] Name for Haskell based VPN Client/Server

2008-10-06 Thread wman
And to be really original, try to sell some weird adjective with it. The ubuntu crowd didn't buy this, so maybe you could make it Horny Hornet VPN ;-) 2008/10/6 Jason Dagit <[EMAIL PROTECTED]> > > My advice so to find something cute, like an animal, and use that in the > name instead of some impl

Re: [Haskell-cafe] Name for Haskell based VPN Client/Server

2008-10-06 Thread wman
> >The best I can do is HaskVPN. This name is so bad I'm afraid to admit > it. > >A better suggestion would be much appreciated. > How about HaPN (pronounced as happen), obviously standing for Haskell Private Network. Whether it's better is a matter of taste ;-) > > Is the code around so

Re: [Haskell-cafe] cabal upgrade

2008-10-01 Thread wman
On Wed, Oct 1, 2008 at 10:52 PM, Duncan Coutts <[EMAIL PROTECTED]>wrote: > > and you have network access, start updating it. > > That's hard. Detecting if we would be able to make a network connection > without actually doing it is not something I know how to do (esp in a > portable way). We would

Re: [Haskell-cafe] csv one-liner

2008-10-01 Thread wman
On Wed, Oct 1, 2008 at 10:40 PM, Andrew Coppin <[EMAIL PROTECTED]>wrote: > Maybe I should start a new tradition where Haskellers have a blob of > Haskell as their sig? > > (I can't *wait* to see what the luminaries such as dons, dcoutts and igloo > come up with...) > Some haskell equivalent of :

Re: [Haskell-cafe] csv one-liner

2008-10-01 Thread wman
ing used to the fact that gmail kindly replies to the user on whose behalf the message was sent, not to the list. On Wed, Oct 1, 2008 at 9:51 PM, Andrew Coppin <[EMAIL PROTECTED]>wrote: > wman wrote: > >> Long story short, I promised him a one-liner to "show the power and bea

Re: [Haskell-cafe] csv one-liner

2008-09-30 Thread wman
True, true. And i told myself no-one would notice ;-)) On Tue, Sep 30, 2008 at 9:51 PM, Graham Fawcett <[EMAIL PROTECTED]>wrote: > 2008/9/30 wman <[EMAIL PROTECTED]>: > > Thanks a lot, I've had a hunch it was possible to get rid of those those > > liftM's.

Re: [Haskell-cafe] csv one-liner

2008-09-30 Thread wman
Thanks a lot, I've had a hunch it was possible to get rid of those those liftM's. I turned it into: (writeFile "output.csv") . printCSV . (map updateLine) . (either (error "Chyba pri cteni CSV.") id) =<< parseCSVFromFile "input.csv" and am sincerely hoping he will try to decypher it's meaning ;-)

Re: [Haskell-cafe] System.Process

2008-09-30 Thread wman
how about using a wrapper script, to which you would supply the value as parameter so you would just use runCommand "thescript " ? Herein lies the problem: I have a program that accepts complete commands > from a file and executes them. It works perfectly. And now I'd just like to > set an enviro

[Haskell-cafe] csv one-liner

2008-09-30 Thread wman
"input.csv") Is there room for improvement ? Could it still be made into one-liner without modifying the csv module (and without resorting to case parseCSVFromFile "input.csv" of { Left _ -> []; Right x -> x} kind of tricks) ? Thanks, wman. __

[Haskell-cafe] hircules resurrected (partially ;-)

2008-09-16 Thread wman
I stumbled upon hircules-0.3 IRC client and decided to take it for a test drive. I managed to get it to compile under ghc-6.8.3/win32, converted it to use Text.Codec.Iconv (the old version of included Iconv.hs should also work), but it seems it doesn't work. It only gives an empty form and accordi