Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Richard O'Keefe
On Mar 28, 2010, at 9:52 AM, Luke Palmer wrote: On Sat, Mar 27, 2010 at 2:22 PM, Peter Verswyvelen wrote: So the first computer nerd was a women??!!! ;-) ;-) ;-) Yeah, and she was so attractive that the entire male gender spent the next 50 years trying to impress her. Augusta Ada Kin

Re: [Haskell-cafe] Haskell-friendly Linux Distribution

2010-03-27 Thread Ivan Lazar Miljenovic
Jeff Wheeler writes: > On Sat, Mar 27, 2010 at 11:11 PM, Chris Dornan wrote: >> Are there any particularly strong reasons for preferring or avoiding any >> particular distribution? > A bunch of stuff is packaged by dons for Arch; you can see a lot of > links to the Arch packages on Hackage. It mi

Re: [Haskell-cafe] Haskell-friendly Linux Distribution

2010-03-27 Thread Jeff Wheeler
On Sat, Mar 27, 2010 at 11:11 PM, Chris Dornan wrote: > Are there any particularly strong reasons for preferring or avoiding any > particular distribution? A bunch of stuff is packaged by dons for Arch; you can see a lot of links to the Arch packages on Hackage. It might be worth looking into.

[Haskell-cafe] Haskell-friendly Linux Distribution

2010-03-27 Thread Chris Dornan
Hi, I am choosing a Linux distribution for a production Haskell project and would would normally just go with Debian (pedigree, stability, and of course Haskell Platfom included) but CentOS is in the frame. Are there any particularly strong reasons for preferring or avoiding any particular

Re: [Haskell-cafe] Internet game servers in Haskell?

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 3:14 AM, Colin Paul Adams wrote: > Has anyone ever written a server in Haskell for managing live > game-playing (any game) across the internet? > I haven't yet, but I saw someone had a simple MUD-like game engine a few years ago. I don't know if Frag supports network play

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread zaxis
Both 6.10 and 6.12 use same .ghci ! %cat ~/.ghci :cd /media/G/www/qachina/db/doc/money :l Money %cat Money.hs|grep import import System( getArgs ) import System.Random import System.IO import System.Time import Text.Printf (printf) import Text.Regex import Data.List import Data.Time.Calendar impo

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread zaxis
thanks for your answer! However, i still feel the following code snippets have different code style. 1. C-style winSSQ count noRed noBlue = do { let {yesRed=[1..33] \\ noRed; yesBlue=[1..16] \\ noBlue}; ps <- picoSec; setStdGen (mkStdGen $ fromInteger ps); result <- pick_ssq_num

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Roman Leshchinskiy
On 28/03/2010, at 09:47, Lennart Augustsson wrote: > It's important to switch from mod to rem. This can be done by a > simple abstract interpretation. Also, changing the definition of rem from a `rem` b | b == 0 = divZeroError | a == minBound && b == (-1) = ove

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread zaxis
I just mean syntax. For example. the following code snippet is C-style. In vim, i can use `shift+%` to jump between `{' and `}', and so on. hitSSQ hitNum = do { nums <- fmap str_ints_pick $ readFile "ssqNum.txt"; forM_ nums (\n -> do { let { hitB = if (n!!6 == hitNum!!6) then

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Roman Leshchinskiy
On 28/03/2010, at 11:07, John Meacham wrote: > I have not thoroughly checked it, but I think there are a couple things > going on here: It could also be worthwhile to float out (i*i + j*j) in rangeK instead of computing it in every loop iteration. Neither ghc nor gcc can do this; if jhc can the

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Jeremy Shaw
One study suggests that the perceived work environment is too geeky: http://www.msnbc.msn.com/id/34437233/ns/technology_and_science-science/ I also suspect that much Haskell promotion is targeted towards male oriented sites, which does not help things: http://www.quantcast.com/slashdot.org http:

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Roman Leshchinskiy
On 27/03/2010, at 05:27, John Meacham wrote: > Here are jhc's timings for the same programs on my machine. gcc and ghc > both used -O3 and jhc had its full standard optimizations turned on. > > jhc: > ./hs.out 5.12s user 0.07s system 96% cpu 5.380 total > > gcc: > ./a.out 5.58s user 0.00s syst

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Roman Leshchinskiy
On 28/03/2010, at 01:36, Jan-Willem Maessen wrote: > It's worth pointing out that there's a bit of bang-pattern mysticism going on > in this conversation (which has not been uncommon of late!). A non-buggy > strictness analyzer should expose the strictness of these functions without > difficul

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread John Meacham
On Sat, Mar 27, 2010 at 07:30:30PM -0300, Rafael Cunha de Almeida wrote: > John Meacham wrote: > > Here are jhc's timings for the same programs on my machine. gcc and ghc > > both used -O3 and jhc had its full standard optimizations turned on. > > > > jhc: > > ./hs.out 5.12s user 0.07s system 96%

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Christopher Lane Hinson
Many of you may be interested in reading the Geek Feminism blog and wiki: http://geekfeminism.wikia.com/wiki/Geek_Feminism_Wiki http://geekfeminism.org/ It's not necessary to agree with everything, or to debate it, just try to put yourself in someone else's shoes. Friendly, --Lane

[Haskell-cafe] Re: Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread Maciej Piechotka
On Sat, 2010-03-27 at 04:28 -0700, zaxis wrote: > Of course, you are wrong ! C is VERY important for almost every programmer > in the world! Hmm. We don't deny that C is important. However importance of hammer does not make screwdriver unimportant. While you can say that you can use screwdrive

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Rafael Cunha de Almeida
Lennart Augustsson wrote: > It's important to switch from mod to rem. This can be done by a > simple abstract interpretation. > I'm nore sure if it's jhc or gcc that does this for jhc. > It's not just adding rem. Ghc still runs much slower using rem. It's only when switching to -fvia-C and using

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Jason Dusek
2010/03/27 Leon Smith : > I've heard rumors that in the early days of programming, that > women were in the majority, or at least they represented a > much greater proportion of programmers than they do now. I > seem to recall that this started to change sometime in the > 60s. Of course, I can't re

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Lennart Augustsson
It's important to switch from mod to rem. This can be done by a simple abstract interpretation. I'm nore sure if it's jhc or gcc that does this for jhc. -- Lennart On Sat, Mar 27, 2010 at 10:30 PM, Rafael Cunha de Almeida wrote: > John Meacham wrote: >> Here are jhc's timings for the same pro

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Rafael Cunha de Almeida
John Meacham wrote: > Here are jhc's timings for the same programs on my machine. gcc and ghc > both used -O3 and jhc had its full standard optimizations turned on. > > jhc: > ./hs.out 5.12s user 0.07s system 96% cpu 5.380 total > > gcc: > ./a.out 5.58s user 0.00s system 97% cpu 5.710 total >

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Sean Leather
On Sat, Mar 27, 2010 at 23:09, Leon Smith wrote: > I've heard rumors that in the early days of > programming, that women were in the majority, or at least they > represented a much greater proportion of programmers than they do now. > They're not just rumors: http://www.witi.com/center/witimuseu

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 3:25 AM, Neil Mitchell wrote: > Hi John, > > Any chance of seeing the benchmark? You're not the only one with an > optimising compiler tucked away somewhere :-) > Neil, for some reason John's reply didn't thread with the rest of the thread. Probably because he changed th

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Leon Smith
On Sat, Mar 27, 2010 at 1:56 PM, Jason Dagit wrote: > For some reason it started out as a male dominated field.  Let's assume > for cultural reasons.  Once it became a male dominated field, us males > unknowingly made the work and learning environments somewhat hostile > or unattractive to women.

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread wren ng thornton
wren ng thornton wrote: Alberto G. Corona wrote: because math abilities are not a -primary- reason for survival. Tools engineering and mastering is. I don't see the difference. (That is, the difference between CS and mathematics. Conversely, I don't see the similarity between physical to

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread wren ng thornton
Alberto G. Corona wrote: because math abilities are not a -primary- reason for survival. Tools engineering and mastering is. I don't see the difference. Being able to use a lever, wheel, pulley, fire,... is obviously helpful for survival. But "intellectual tools" like mathematics, logic, an

Re: [Haskell-cafe] Testing for valid data

2010-03-27 Thread michael rice
Hi Ketil, Good point, but I think it side-steps the question. Haskell coughs on a data value. Do we grep our data, finding and fixing the offender, or build extensive data tests into our application code? Michael --- On Sat, 3/27/10, Ketil Malde wrote: From: Ketil Malde Subject: Re: [Haskel

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Neil Davies
If you are looking for a real first - http://en.wikipedia.org/wiki/Ada_Lovelace - she is even credited with writing the first algorithm for machine execution. On 27 Mar 2010, at 20:06, John Van Enk wrote: http://en.wikipedia.org/wiki/Grace_Hopper A heck of a lady. On Sat, Mar 27, 2010 at

[Haskell-cafe] Re: Are there any female Haskellers?

2010-03-27 Thread Günther Schmidt
Hi guys (and I mean it), so, in short, no female haskellers ... Bare one which sent me an email directly, but it looks like she's not ready to come out of the closet yet. Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://w

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Vitali Xevet
I bet there are some people here who think women are very idiot to be knowledgeable about haskell. Cheers ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Testing for valid data

2010-03-27 Thread Ketil Malde
michael rice writes: > When I'm learning a new language I like to translate old programs into > the new language as a test of my understanding. However, many of the > old programs are from old programming texts, many written in the time > of punch-cards for batch processing, and many containing s

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread John Meacham
My friend named her cat Haskell after the language :) John -- John Meacham - ⑆repetae.net⑆john⑈ - http://notanumber.net/ ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Alberto G. Corona
2010/3/27 Jason Dusek > 2010/03/27 Alberto G. Corona : > > To say this in scientific headline jargon, it's a matter of > > division of work, time, and dimorphic fixation of abilities in > > the brain by natural selection trough dimorphic development of > > the brain of men and women by different

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Luke Palmer
On Sat, Mar 27, 2010 at 2:22 PM, Peter Verswyvelen wrote: > So the first computer nerd was a women??!!! ;-) ;-) ;-) Yeah, and she was so attractive that the entire male gender spent the next 50 years trying to impress her. Luke > On Sat, Mar 27, 2010 at 9:06 PM, John Van Enk wrote: >> http

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Peter Verswyvelen
So the first computer nerd was a women??!!! ;-) ;-) ;-) On Sat, Mar 27, 2010 at 9:06 PM, John Van Enk wrote: > http://en.wikipedia.org/wiki/Grace_Hopper > A heck of a lady. > > On Sat, Mar 27, 2010 at 12:51 PM, Andrew Coppin > wrote: >> >> Ozgur Akgun wrote: >>> >>> Nevertheless, I guess you

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread Yusaku Hashimoto
Hmm, When a ghci was started, there should be the only loaded module (Prelude.) And in both 6.10 and 6.12, such instance is not defined or exported in its Prelude. So please try `ghci -ignore-dot-ghci`. It invokes ghci without reading ~/.ghci and ./.ghci. And `((->) a)` is known as the Reader Mona

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Jason Dusek
2010/03/27 Alberto G. Corona : > To say this in scientific headline jargon, it's a matter of > division of work, time, and dimorphic fixation of abilities in > the brain by natural selection trough dimorphic development of > the brain of men and women by different genetic sequences. I > don't know

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread John Van Enk
http://en.wikipedia.org/wiki/Grace_Hopper A heck of a lady. On Sat, Mar 27, 2010 at 12:51 PM, Andrew Coppin wrote: > Ozgur Akgun wrote: > >> Nevertheless, I guess you're right. There are very few females in most of >> the CS topics, and haskell is no d

[Haskell-cafe] Re: Are there any female Haskellers?

2010-03-27 Thread Gracjan Polak
Alberto G. Corona gmail.com> writes: > > Hope that this cold answer don't end this funny thread ;( > Those concerned with Haskellers to Haskellinas ration can always employ this technique: http://www.newton.dep.anl.gov/askasci/bio99/bio99128.htm Any volunteers? :) -- Gracjan ___

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread David Menendez
On Sat, Mar 27, 2010 at 1:45 PM, Tillmann Rendel wrote: > Jan-Willem Maessen wrote: >> >> It's worth pointing out that there's a bit of bang-pattern mysticism going >> on in this conversation (which has not been uncommon of late!).  A non-buggy >> strictness analyzer should expose the strictness o

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Alberto G. Corona
To say this in scientific headline jargon, It´s a matter of division of work, time, and dimorphic fixation of abilities in the brain by natural selection trough dimorphic development of the brain of men and women by different genetic sequences. I don´t know any kind of tool more flexible and powerf

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Jason Dagit
On Sat, Mar 27, 2010 at 9:05 AM, Daniel Fischer wrote: > -Ursprüngliche Nachricht- > Von: "Günther Schmidt" > Gesendet: 27.03.2010 16:14:57 > An: haskell-cafe@haskell.org > Betreff: [Haskell-cafe] Are there any female Haskellers? > > >Hi all, > > > >from the names of people on the list it

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Tillmann Rendel
Jan-Willem Maessen wrote: It's worth pointing out that there's a bit of bang-pattern mysticism going on in this conversation (which has not been uncommon of late!). A non-buggy strictness analyzer should expose the strictness of these functions without difficulty. Could the result of stric

Re: [Haskell-cafe] chp-plus doesn't install

2010-03-27 Thread Neil Brown
Colin Paul Adams wrote: I'm getting these errors (ghc 6.10.4 on Linux x86_64): Building chp-plus-1.1.0... [1 of 9] Compiling Control.Concurrent.CHP.Test ( Control/Concurrent/CHP/Test.hs, dist/build/Control/Concurrent/CHP/Test.o ) [2 of 9] Compiling Control.Concurrent.CHP.Console ( Control/Conc

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread James Russell
Maybe not on the list, but there certainly are in academia. I can think of several off the top of my head. 2010/3/27 Günther Schmidt : > Hi all, > > from the names of people on the list it seems that all users here are males. > > Just out of curiosity are there any female users here, or are we guy

[Haskell-cafe] chp-plus doesn't install

2010-03-27 Thread Colin Paul Adams
I'm getting these errors (ghc 6.10.4 on Linux x86_64): Building chp-plus-1.1.0... [1 of 9] Compiling Control.Concurrent.CHP.Test ( Control/Concurrent/CHP/Test.hs, dist/build/Control/Concurrent/CHP/Test.o ) [2 of 9] Compiling Control.Concurrent.CHP.Console ( Control/Concurrent/CHP/Console.hs, dis

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Mihai Maruseac
I worked with a female student on a Haskell project last summer :) She's not into being member of a mailing list or a user group but she exists. On Sat, Mar 27, 2010 at 6:51 PM, Andrew Coppin wrote: > Ozgur Akgun wrote: >> >> Nevertheless, I guess you're right. There are very few females in most

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Andrew Coppin
Ozgur Akgun wrote: Nevertheless, I guess you're right. There are very few females in most of the CS topics, and haskell is no different. This is my experience too. Although note that apparently the world's very first computer programmer was apparently a woman... _

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Daniel Fischer
-Ursprüngliche Nachricht- Von: "Günther Schmidt" Gesendet: 27.03.2010 16:14:57 An: haskell-cafe@haskell.org Betreff: [Haskell-cafe] Are there any female Haskellers? >Hi all, > >from the names of people on the list it seems that all users here are males. > >Just out of curiosity are there

Re: [Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Ozgur Akgun
Why? Are you going to make dirty jokes or something :) Nevertheless, I guess you're right. There are very few females in most of the CS topics, and haskell is no different. I know at least 1 (one!) female who implemented software using haskell for her phd thesis, though. Cheers! 2010/3/27 Günthe

[Haskell-cafe] Testing for valid data

2010-03-27 Thread michael rice
When I'm learning a new language I like to translate old programs into the new language as a test of my understanding. However, many of the old programs are from old programming texts, many written in the time of punch-cards for batch processing, and many containing significant amounts of code t

[Haskell-cafe] Are there any female Haskellers?

2010-03-27 Thread Günther Schmidt
Hi all, from the names of people on the list it seems that all users here are males. Just out of curiosity are there any female users here, or are we guys only at the moment? Günther ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://ww

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Xiao-Yong Jin
On Fri, 26 Mar 2010 21:56:16 -0700, Thomas DuBuisson wrote: >> Using bang patterns didn't help almost anything here. Using rem >> instead of mod made the time go from 45s to 40s. Now, using -fvia-C >> really helped (when I used rem but not using mod). It went down to >> 10s. > Bang patterns shoul

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Pom
On 10-03-26 11:50 PM, wren ng thornton wrote: Well GHC has an -O3[1], but it's not a good idea to use it. Some of the "optimizations" that -O3 does can result in slower code for particular programs. Whereas -O2 is safe and never results in pessimizations. Slightly off topic, but ACOVEA may

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Jan-Willem Maessen
On Sat, Mar 27, 2010 at 12:43 AM, Rafael Almeida wrote: > On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit wrote: > > > > > > On Fri, Mar 26, 2010 at 2:33 PM, Bryan O'Sullivan > > wrote: > >> > >> On Fri, Mar 26, 2010 at 10:46 AM, Rafael Cunha de Almeida > >> wrote: > >>> > >>> During a talk with a

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread Dietrich Epp
I think Miljenovic was asking about this (I removed explicit braces): fac n = let f = foldr (*) 1 [1..n] in f Which is strictly equivalent to: fac n = foldr (*) 1 [1..n] Translated into C, this is kind of like doing this: int add(int x, int y) { int sum = x + y;

Re: [Haskell-cafe] Why is it so different between 6.12.1 and 6.10.4_1 ?

2010-03-27 Thread zaxis
Of course, you are wrong ! C is VERY important for almost every programmer in the world! Why cannot C programmer use haskell ? And Why does haskell support C code style ? Ivan Miljenovic wrote: > > zaxis writes: > Why do you bother with the interior definition of f in there? >> Beca

[Haskell-cafe] Re: Randomized N-Queens

2010-03-27 Thread Heinrich Apfelmus
Ronald Guida wrote: > Hi, > > I'm trying to solve the N-queens problem, but with a catch: I want to > generate solutions in a random order. > > I know how to solve the N-queens problem; my solver (below) generates all > possible solutions. What I am trying to do is generate solutions in a > rand

Re: [Haskell-cafe] GHC vs GCC vs JHC

2010-03-27 Thread Neil Mitchell
Hi John, Any chance of seeing the benchmark? You're not the only one with an optimising compiler tucked away somewhere :-) I have one "benchmark" where I outperform GHC by 21 times, although saying it's artificial is a bit of an understatement... Thanks, Neil On Fri, Mar 26, 2010 at 6:27 PM, Jo

[Haskell-cafe] Internet game servers in Haskell?

2010-03-27 Thread Colin Paul Adams
Has anyone ever written a server in Haskell for managing live game-playing (any game) across the internet? -- Colin Adams Preston Lancashire ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] GHC vs GCC

2010-03-27 Thread Grzegorz C
Hi, Rafael Almeida wrote: > > On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit wrote: > Using bang patterns didn't help almost anything here. Using rem > instead of mod made the time go from 45s to 40s. Now, using -fvia-C > really helped (when I used rem but not using mod). It went down to > 10s.