From from what I see here, Haskell at work seems to target web development.
I should try this soon...
What is everyone using? Yesod?
2011/6/4 Michael Xavier nemesisdes...@gmail.com
I just wanted to echo this a bit. I'm a Ruby on Rails developer in my day
job. While I still enjoy ruby, I was
On Fri, 2011-06-03 at 10:03 +0200, Ketil Malde wrote:
Gresham's law states roughly that bad money drives out good. I thus
propose a corollary: bad languages drive out good.
That's not entirely true - http://en.wikipedia.org/wiki/Gresham's_law.
which states that when government compulsorily
Yves Parès limestr...@gmail.com wrote:
From from what I see here, Haskell at work seems to target web
development. I should try this soon...
That's one of the main use cases for Haskell in real world projects (in
my opinion). However, I also use Haskell for network servers.
What is
Michael Litchard mich...@schmong.org writes:
I disagree. I'm by no means proficient in Haskell. And, I never
bothered learning PHP. I will when I need to. PHP programmers are a
dime a dozen.
..and since PHP programmers are a dime a dozen, any decent manager (who,
after all, has an MBA and
I just wanted to echo this a bit. I'm a Ruby on Rails developer in my day
job. While I still enjoy ruby, I was very proud that my studies of Haskell
helped me identify a problem a week or so ago that would be much more
difficult to solve in an imperative language and benefits from laziness.
While
On Thursday 02 June 2011 01:12:37, Tom Murphy wrote:
How about this:
myFoldr :: (a - b - b) - b - [a] - b
myFoldr f z xs = foldl' (\s x v - s (x `f` v)) id xs $ z
Cheers,
Ivan
Great! Now I really can say Come on! It's fun! I can write foldr with
foldl!
Unfortunately, you
Alberto G. Corona agocor...@gmail.com wrote:
Haskell is an academic asset as well as a fun asset.
I cannot agree with this for practical reasons. I'm using Haskell for
real world commercial applications, and I'm very productive with it.
There is however a variation of this statement, with
Ivan Tarasov ivan.tara...@gmail.com wrote:
myFoldr :: (a - b - b) - b - [a] - b
myFoldr f z xs = foldl' (\s x v - s (x `f` v)) id xs $ z
That's not foldr. It's a function similar to foldr in Haskell and equal
to foldr in a different language, which lacks bottom.
Greets,
Ertugrul
--
Learning Haskell will pay off much less than learning PHP, if your goal is
to find a job.
Amen.
I cannot agree with this for practical reasons. I'm using Haskell for
real world commercial applications, and I'm very productive with it.
I wish so much I could say that... Out of curiosity,
Yves Parès limestr...@gmail.com wrote:
I cannot agree with this for practical reasons. I'm using Haskell
for real world commercial applications, and I'm very productive with
it.
I wish so much I could say that... Out of curiosity, what are you
using Haskell for?
I use the Yesod web
I disagree. I'm by no means proficient in Haskell. And, I never
bothered learning PHP. I will when I need to. PHP programmers are a
dime a dozen. It's been my experience that Haskell is a tool one may
use to distinguish oneself from the hoi-poloi. This is important when
you live in an area where
I got hired at a company because one of the interviewers was impressed that
I taught myself Haskell. I basically never use it at work, but I did in my
old job.
Dave
On Thu, Jun 2, 2011 at 2:23 PM, Michael Litchard mich...@schmong.orgwrote:
I disagree. I'm by no means proficient in Haskell.
Being able to use Haskell at such an early stage of my programming
career has given me high expectations of what comes next.
On Thu, Jun 2, 2011 at 3:22 PM, David Leimbach leim...@gmail.com wrote:
I got hired at a company because one of the interviewers was impressed that
I taught myself
Adrien Haxaire schrieb:
I fully agree. These are two of the three reasons which made me choose
haskell as the functional language to learn. Coding fortran all day, I
wanted a new approach on programming. The strong scientific roots of
haskell would give me stuff to learn and discover for a
On Wed, 01 Jun 2011 11:46:36 +0200, Henning Thielemann wrote:
Really, you can write foldr in terms of foldl? So far I was glad I
could
manage the opposite direction.
i didn't try it, that was just an example of how strange/interesting
the enthusiasm appeared to me when i started Haskell.
On Wednesday 01 June 2011 12:25:06, Adrien Haxaire wrote:
On Wed, 01 Jun 2011 11:46:36 +0200, Henning Thielemann wrote:
Really, you can write foldr in terms of foldl? So far I was glad I
could
manage the opposite direction.
i didn't try it, that was just an example of how
On Wed, Jun 1, 2011 at 3:28 AM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
On Wednesday 01 June 2011 12:25:06, Adrien Haxaire wrote:
On Wed, 01 Jun 2011 11:46:36 +0200, Henning Thielemann wrote:
Really, you can write foldr in terms of foldl? So far I was glad I
could
How about this:
myFoldr :: (a - b - b) - b - [a] - b
myFoldr f z xs = foldl' (\s x v - s (x `f` v)) id xs $ z
Cheers,
Ivan
Great! Now I really can say Come on! It's fun! I can write foldr with foldl!
___
Haskell-Cafe mailing list
http://stackoverflow.com/questions/6172004/writing-foldl-using-foldr/6172270#6172270
Thank Graham Hutton and Richard Bird.
On Wed, Jun 1, 2011 at 7:12 PM, Tom Murphy amin...@gmail.com wrote:
How about this:
myFoldr :: (a - b - b) - b - [a] - b
myFoldr f z xs = foldl' (\s x v - s (x `f` v))
On 11-06-01 07:15 PM, Don Stewart wrote:
http://stackoverflow.com/questions/6172004/writing-foldl-using-foldr/6172270#6172270
Thank Graham Hutton and Richard Bird.
Another one along the same line:
http://www.vex.net/~trebla/haskell/natprim.xhtml
Yet one more, along the tangent:
Evan,
On 24 May 2011 19:57, Evan Laforge qdun...@gmail.com wrote:
On the catMaybes thing, I have a function 'mapMaybe = Maybe.catMaybes
. map'. I turns out I only ever used catMaybes after mapping a Maybe
function, so I hardly ever use catMaybes anymore. I suppose it should
have been
On Tue, May 31, 2011 at 11:31 AM, Ozgur Akgun ozgurak...@gmail.com wrote:
Evan,
On 24 May 2011 19:57, Evan Laforge qdun...@gmail.com wrote:
On the catMaybes thing, I have a function 'mapMaybe = Maybe.catMaybes
. map'. I turns out I only ever used catMaybes after mapping a Maybe
function, so
fluency in Scala is an industry asset, since it runs in the Java VM,
while Haskell is an academic asset as well as a fun asset.
The value of an industry asset grows with the lack of competence of
others. Therefore competing guys are not welcome. There are enoug
crocodiles in the pond.
Le 31/05/2011 21:15, Alberto G. Corona a écrit :
Haskell is an academic asset as well as a fun asset.
I fully agree. These are two of the three reasons which made me choose
haskell as the functional language to learn. Coding fortran all day, I
wanted a new approach on programming. The strong
come on! it's fun! i can write foldr with foldl!
And when you try to explain that to your java-ITC-formatted friends, they
utterly surprisingly seem not to care about it ^^
2011/5/31 Adrien Haxaire adr...@adrienhaxaire.org
Le 31/05/2011 21:15, Alberto G. Corona a écrit :
Haskell is an
On 25/05/2011, at 12:41 AM, Johannes Waldmann wrote:
Yves Parès limestrael at gmail.com writes:
For instance, one of my friends asked me once why the operation of
calculating the length of list has an O(n) complexity,
since to his opinion, you could just store the size inside the list
On 24/05/11 22:41, Johannes Waldmann wrote:
Then tell me, why does calculating the length of a (Haskell)
list has O(n) complexity.
Infiniticity aside, tail would become O(n) if you store a length with
each cons cell.
--
Tony Morris
http://tmorris.net/
Why so? I think it wouldn't.
data FList a = FNil | FCons Int a (FList a)
empty = FNil
len FNil = 0
len (FCons n _) = n
cons x xs = FCons (1 + len xs) x xs
tail (FCons _ _ xs) = xs
2011/5/24 Tony Morris tonymor...@gmail.com:
On 24/05/11 22:41, Johannes Waldmann wrote:
Then tell me, why does
On 25/05/11 16:46, Eugene Kirpichov wrote:
data FList a = FNil | FCons Int a (FList a)
empty = FNil
len FNil = 0
len (FCons n _) = n
cons x xs = FCons (1 + len xs) x xs
tail (FCons _ _ xs) = xs
My mistake, sorry. Currently looking for original reason to have
accidentally come to believe
Tony Morris schrieb:
On 25/05/11 16:46, Eugene Kirpichov wrote:
data FList a = FNil | FCons Int a (FList a)
empty = FNil
len FNil = 0
len (FCons n _) = n
cons x xs = FCons (1 + len xs) x xs
tail (FCons _ _ xs) = xs
My mistake, sorry. Currently looking for original reason to have
Richard O'Keefe o...@cs.otago.ac.nz writes:
Then tell me, why does calculating the length of a (Haskell)
list has O(n) complexity.
Because it is a rather rare operation and the cost of doing
this would be far higher than you think.
I suspect that if you store the length non-strictly, it
So it seconds my initial point: you can't store the size because it has no
sense.
2011/5/25 Ketil Malde ke...@malde.org
Richard O'Keefe o...@cs.otago.ac.nz writes:
Then tell me, why does calculating the length of a (Haskell)
list has O(n) complexity.
Because it is a rather rare
Just laugh mate. It's the best possible outcomes sometimes.
On 24/05/11 15:10, Gregory Crosswhite wrote:
Hey everyone,
Okay, this will sound silly, but I ventured into the Scala mailing
list recently and asked an ignorant question on it, and I was shocked
when people reacted not by
Every computing culture is different.
Being in the habit of asking questions you should be able to answer yourself
is not a good idea. Why did you ask a question which you yourself characterize
as ignorant? Although Haskell comm. is necessarily welcoming due to
the learning curve and lack of
On 2011 May 24, at 09:37, Juan Daugherty wrote:
Every computing culture is different.
Being in the habit of asking questions you should be able to answer
yourself
is not a good idea. Why did you ask a question which you yourself
characterize
as ignorant?
I would guess it is because he
Why did you ask a question which you yourself characterize as ignorant?
Juan, I think it is the kind of question whose answer is obvious to people
with at least a little practice of the language.
For instance, one of my friends asked me once why the operation of
calculating the length of list
Juan Daugherty j...@acm.org writes:
Every computing culture is different.
Definitely. I've just given up on several cultures which are just too
vitriolic. Scala is on my list of interesting stuff to look at some
day, but if I'm going to be flamed for asking questions about the
language, I can
I've been lurking around, and yes, I also think the Haskell
community is very civilized.
I think having people asking all kinds of questions is a
good sign that people are interested. And as a member of
the community, especially if you are an experienced
member (i.e. you have invested time and
Hi Gregory,
I had a similar experience on the scala-user list some time ago. I found
most of the responses to my questions to be rather unproductive and
superficial. I love the haskell-cafe community for their helpfulness and
analytical approach.
I left scala-user not long afterward partly
For Scala, I think it's really due to the type of people that are
attracted to the community. My impression is that more people are coming
from Java programming than from academia.
Java developpers who whould be interested in doing things in a clean,
expressive and manageable way?
Maybe
Well, Yves, we can't know since the question in question was about
Scala not Haskell.
I think some respondents are confusing the sensed of ignorant
conveyed with the
objective condition of a lack of knowledge. In any case, IMHO IRC or some other
similar real-time venue and not a mailing list is
Yves Parès limestrael at gmail.com writes:
For instance, one of my friends asked me once why the operation of
calculating the length of list has an O(n) complexity,
since to his opinion, you could just store the size inside the list
and increment it when elements are appended.
Then tell
In Haskell, the reason for not doing this (besides simplicity, and
inertia)
actually is (I think) laziness: you don't want to evaluate
the length field of the second argument of the cons prematurely.
Yes, this is what I meant. I shouldn't have spoken about complexity, it was
irrelevant as you
And I thought Hugs was dead. :-)
On 24 May 2011 06:10, Gregory Crosswhite gcr...@phys.washington.edu wrote:
Hey everyone,
Okay, this will sound silly, but I ventured into the Scala mailing list
recently and asked an ignorant question on it, and I was shocked when people
reacted not by
On 24 May 2011 13:41, Johannes Waldmann waldm...@imn.htwk-leipzig.de wrote:
I could just store the length of the list - as an additional argument
to the Cons constructor that is automatically initialized on construction
(and you never need to change it later, since Haskell objects
are
On May 24, 2011, at 4:46 AM, Ketil Malde wrote:
Replying with a pointer to 'catMaybes' resulted in (most likely) the
author going off to finish/improve his program, and some more
interesting discussion on alternative ways to do this.
What's more, the thread added many other possible
Firstly, I would definitely like to second the group hug! I'd say best
learning community on the net, that I know of.
On 5/24/11, Ketil Malde ke...@malde.org wrote:
The point is that at face value, being rude and arrogant may drive away
naive questions, but is much more likely to result in
Will the same etiquette work when we start to get lots of questions from
Java programmers? :)
If you mean will we have to maintain the same etiquette? then, sadly, yes.
(And I said we were done trolling! ;) )
2011/5/24 Tom Murphy amin...@gmail.com
Firstly, I would definitely like to second
On Tue, May 24, 2011 at 10:03 AM, Stephen Tetley
stephen.tet...@gmail.com wrote:
Neither OCaml nor PLT Scheme cache the length or they didn't a year of
two ago when someone asked this question on the Haskell Beginners list
and I checked the respective source trees. As the PLT Scheme list was
On Tue, 2011-05-24 at 15:37 +0100, Colin Adams wrote:
And I thought Hugs was dead. :-)
I think we have explanation for the friendliness of Haskell community -
even the compiler hugs.
Regards
signature.asc
Description: This is a digitally signed message part
The community plays a large part of why I am using Haskell
professionally. The Haskell ecosystem is first-rate all by itself, but
I would have been dead in the water months ago without the community.
On Mon, May 23, 2011 at 10:10 PM, Gregory Crosswhite
gcr...@phys.washington.edu wrote:
Hey
2011-05-23 22:10 -0700, Gregory Crosswhite:
Hey everyone,
Okay, this will sound silly, but I ventured into the Scala mailing list
recently and asked an ignorant question on it, and I was shocked when
people reacted not by enlightening me but by jumping on me and reacting
with hostility.
52 matches
Mail list logo