[Haskell-cafe] Timing difference

2008-12-25 Thread Aai
Programming for Rosetta Codes task http://www.rosettacode.org/wiki/Probabilistic_Choice I observed a remarkable (that's to say: for me) difference in timing using lambda function in the one case and point free in the other. Timing was measured in GHCi. Compiled there's no difference! Using

Re: [Haskell-cafe] Timing difference

2008-12-25 Thread Bulat Ziganshin
Hello Aai, Thursday, December 25, 2008, 11:45:33 AM, you wrote: remarkable (that's to say: for me) difference in timing using lambda function in the one case and point free in the other. Timing was measured in GHCi. Compiled there's no difference! compiler optimizes program, replacing slower

Re: [Haskell-cafe] Timing difference

2008-12-25 Thread Aai
Hi Bulat, That I (can) understand, but of course the main question is: is point free in (some/several/all) cases faster than the more readable lambda construction? That's to say when executed in GHCi. I noticed this behavior before (pity I haven't other examples at hand). In prog. lang. J (

[Haskell-cafe] Re: Timing difference

2008-12-25 Thread Max Vasin
Aai пишет: Hi Bulat, That I (can) understand, but of course the main question is: is point free in (some/several/all) cases faster than the more readable lambda construction? That's to say when executed in GHCi. I noticed this behavior before (pity I haven't other examples at hand). In prog.

Re: [Haskell-cafe] Re: Timing difference

2008-12-25 Thread Aai
Compiled timing (point free version: doesn't matter though as mentioned by Bulat): .. ghc -O2 ./../Puzzels/Rosetta/probabilistic_choice.hs -o proba .. time ./proba ... real0m9.975s user0m9.765s sys 0m0.212s GHCi: (12.26 secs, 2470869600 bytes) So about 20 pct faster than

[Haskell-cafe] ANN: Hieroglyph 0.85

2008-12-25 Thread Jeff Heard
I have changed the name of Thingie to Hieroglyph and added support for displaying images on the Cairo canvas. I'm still working on using template haskell to derive the basic UIState class, but I don't understand template haskell all that well, so it's taking some time. Hopefully I can get some

[Haskell-cafe] Haskell Weekly News: Issue 98 - December 25, 2008

2008-12-25 Thread Brent Yorgey
--- Haskell Weekly News http://sequence.complete.org/hwn/20081225 Issue 98 - December 25, 2008 --- Welcome to issue 98 of HWN, a newsletter covering

[Haskell-cafe] Hackage packages for indexing by Google

2008-12-25 Thread Henning Thielemann
When testing the ShowMeta parallel web: http://hackage.haskell.org.showmeta.parallelnetz.de/packages/archive/pkg-list.html I found, that all HackageDB pages forbid crawling and indexing. Actually, the content of this page is dynamic - but it changes only incrementally. It would be very

[Haskell-cafe] Re: How does one use Text.Regex.Base.RegexLike?

2008-12-25 Thread ChrisK
Yeah! I am glad the mailing list has helped. If you get stuck or need something fancier then let me know (I wrote RegexLike). But I still don't know how to get makeRegex to work. You need it to specify options like case insensitivity, or to use functions like matchAllText. Well, the