On Sat, Mar 27, 2010 at 12:56 AM, Thomas DuBuisson
thomas.dubuis...@gmail.com 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.
I just start ghci from shell and do nothing else. In fact, i really donot
know `Monad ((-) a) ` . Would you mind expplain it ?
Yusaku Hashimoto wrote:
Did you import the module includes the instance of Monad ((-) e)
somewhere in your code loaded in ghci?
I tried this on a fresh ghci
Why do you bother with the interior definition of f in there?
Because i want to try a C code style not layout style without `do` syntax
sugar .
Yusaku Hashimoto wrote:
fac n = let { f = foldr (*) 1 [1..n] } in f
Why do you bother with the interior definition of f in there?
fac =
David Menendez wrote:
On Sat, Mar 27, 2010 at 12:56 AM, Thomas DuBuisson
thomas.dubuis...@gmail.com 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
zaxis z_a...@163.com writes:
Why do you bother with the interior definition of f in there?
Because i want to try a C code style not layout style without `do` syntax
sugar .
Haskell /= C, so stop trying to code as if it is. If you like C so
much, then use C.
--
Ivan Lazar Miljenovic
Hi,
Rafael Almeida wrote:
On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit da...@codersbase.com 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
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
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,
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
random
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 z_a...@163.com writes:
Why do you bother with the interior definition of f in there?
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;
On Sat, Mar 27, 2010 at 12:43 AM, Rafael Almeida almeida...@gmail.comwrote:
On Fri, Mar 26, 2010 at 6:49 PM, Jason Dagit da...@codersbase.com wrote:
On Fri, Mar 26, 2010 at 2:33 PM, Bryan O'Sullivan b...@serpentine.com
wrote:
On Fri, Mar 26, 2010 at 10:46 AM, Rafael Cunha de Almeida
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
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 should have
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
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
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
-Ursprüngliche Nachricht-
Von: Günther Schmidt gue.schm...@web.de
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
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...
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
andrewcop...@btinternet.com wrote:
Ozgur Akgun wrote:
Nevertheless, I guess you're right. There are
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,
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 gue.schm...@web.de:
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,
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 (
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
On Sat, Mar 27, 2010 at 9:05 AM, Daniel Fischer daniel.is.fisc...@web.dewrote:
-Ursprüngliche Nachricht-
Von: Günther Schmidt gue.schm...@web.de
Gesendet: 27.03.2010 16:14:57
An: haskell-cafe@haskell.org
Betreff: [Haskell-cafe] Are there any female Haskellers?
Hi all,
from the
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
On Sat, Mar 27, 2010 at 1:45 PM, Tillmann Rendel
ren...@mathematik.uni-marburg.de 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
Alberto G. Corona agocorona at 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
http://en.wikipedia.org/wiki/Grace_Hopper
http://en.wikipedia.org/wiki/Grace_HopperA heck of a lady.
On Sat, Mar 27, 2010 at 12:51 PM, Andrew Coppin andrewcop...@btinternet.com
wrote:
Ozgur Akgun wrote:
Nevertheless, I guess you're right. There are very few females in most of
the CS
2010/03/27 Alberto G. Corona agocor...@gmail.com:
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.
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
So the first computer nerd was a women??!!! ;-) ;-) ;-)
On Sat, Mar 27, 2010 at 9:06 PM, John Van Enk vane...@gmail.com wrote:
http://en.wikipedia.org/wiki/Grace_Hopper
A heck of a lady.
On Sat, Mar 27, 2010 at 12:51 PM, Andrew Coppin
andrewcop...@btinternet.com wrote:
Ozgur Akgun
On Sat, Mar 27, 2010 at 2:22 PM, Peter Verswyvelen bugf...@gmail.com 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
2010/3/27 Jason Dusek jason.du...@gmail.com
2010/03/27 Alberto G. Corona agocor...@gmail.com:
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
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
michael rice nowg...@yahoo.com 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
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
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
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
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 ke...@malde.org wrote:
From: Ketil Malde
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, and
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
On Sat, Mar 27, 2010 at 1:56 PM, Jason Dagit da...@codersbase.com 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
On Sat, Mar 27, 2010 at 3:25 AM, Neil Mitchell ndmitch...@gmail.com 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
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:
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
ghc:
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
almeida...@gmail.com wrote:
John Meacham wrote:
Here are jhc's
2010/03/27 Leon Smith leon.p.sm...@gmail.com:
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
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
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 screwdriver
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
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% cpu 5.380
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
difficulty.
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 system 97%
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
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 then
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 1
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) =
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_nums
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
On Sat, Mar 27, 2010 at 3:14 AM, Colin Paul Adams
co...@colina.demon.co.ukwrote:
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
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
On Sat, Mar 27, 2010 at 11:11 PM, Chris Dornan ch...@chrisdornan.com 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
Jeff Wheeler j...@nokrev.com writes:
On Sat, Mar 27, 2010 at 11:11 PM, Chris Dornan ch...@chrisdornan.com 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
64 matches
Mail list logo