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
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
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 (
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.
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
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 Weekly News
http://sequence.complete.org/hwn/20081225
Issue 98 - December 25, 2008
---
Welcome to issue 98 of HWN, a newsletter covering
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
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