Out of curiosity: Who has written Haskell & deployed to production in the last 24h and if yes for what kind of app?
I know Amsterdam startup http://www.silk.co has their entire backend written in Haskell. I'm not sure they deploy in weekends though. Their CEO Salar told me that that, among other things, it gives them a hiring edge. People move to Amsterdam from all kinds of places just so they can write Haskell professionally.
The New Haskell.org
41–50 of 110 posts
Re: The New Haskell.org
#42Earlier quoted context omitted.
Two problems: 1. multi-line expressions aren't supported by the REPL. 2. You will need to use `let x = ..` syntax in the REPL (This is because the REPL are just so called IO-actions and the `let` syntax defines variables within its lexical scope) You could try this: > let sieve (p:xs) = p : sieve [x | x let primes = sieve [2..] > primes !! 3 > primes !! 4 Nice part abou this code is eventhough you express calculating…
This online REPL does not support `let` either. `let x = 4` is not an expression there.
let primes = sieve [2..] where sieve (p:xs) = p : sieve [x| x
Which is rather annoying.Re: The New Haskell.org
#43Out of curiosity: Who has written Haskell & deployed to production in the last 24h and if yes for what kind of app?
Re: The New Haskell.org
#44primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x As their first example of Haskell. It's a prime generator based on trial division. And not even trial division up to sqrt of the number you test, but all the way up.
I like the idea of a small snippet showing of the power of haskell, but there are many much better examples imho. Perhaps the website could just choose one at random at each load?
Re: The New Haskell.org
#45I don't understand why they want to use this code primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x As their first example of Haskell. It's a prime generator based on trial division. And not even trial division up to sqrt of the number you test, but all the way up. I like the idea of a small snippet showing of the power of haskell, but there are many much better examples imho. Perhaps the website could just…
Re: The New Haskell.org
#46The Haskell Platform is nowhere to be seen, why?
It looks nice on the surface, but the actual content needs work. And the link to more content is well-hidden at the absolute bottom of the page.
Re: The New Haskell.org
#47Earlier quoted context omitted.
You need to check syntax, or try some more basic examples first. In this case you pasted piece of code that won't work itself. If you want to get know more about it: http://learnyouahaskell.com/syntax-in-functions
Sure, but my point is that maybe the top example should be one that'd work verbatim in the REPL, to not scare noobs like me away.
Re: The New Haskell.org
#48I fear that this style of childish and somewhat condescending tutorial content is becoming fashionable. Was it the best fit for the audience?
Re: The New Haskell.org
#49Re: The New Haskell.org
#50I don't understand why they want to use this code primes = sieve [2..] where sieve (p:xs) = p : sieve [x | x As their first example of Haskell. It's a prime generator based on trial division. And not even trial division up to sqrt of the number you test, but all the way up. I like the idea of a small snippet showing of the power of haskell, but there are many much better examples imho. Perhaps the website could just…