TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Haskell web programming (a simple tutorial)

207 pointsby yogsotothover 13 years ago

9 comments

mxavierover 13 years ago
I'm having a hard time understanding the intent behind "You shouldn't need to know Haskell". Do you mean in order to complete the tutorial and understand what Yesod does? That's probably true. Being someone who's been studying and using Haskell in personal projects for the past maybe 10 months or so, Haskell's syntax and fundamental design decisions (while spot on, in my book) are different enough from most programmers' skill sets that I don't think they'll make it very far writing a non-trivial Yesod app without knowing Haskell. I'm fairly proficient/enamored with Haskell now but I'm certain I would have crashed and burned if I got my start trying to learn Haskell from Yesod.<p>My first dose of Haskell was attempting to write an XMonad config. That turned out to be a frustrating, several hour long ordeal for me that had me write off Haskell as undecipherable, alien hieroglyphics for quite some time after that. I'd urge anyone reading the tutorial who likes what they see to put in the hard time to get a handle on the language, understand what its good for and what it isn't and then return to web programming with it.
评论 #3491249 未加载
评论 #3492154 未加载
评论 #3491250 未加载
akgover 13 years ago
Is there performance benchmark comparing Haskell and Erlang? I hear Erlang is also quite performant when handling a large number of requests, but no hard numbers. Are there similar web frameworks for Erlang as Yesod for Haskell?<p>Also, what about Clojure? That runs on the JVM but how does it fare on the "correctness" claim of Haskell, i.e., "If it compiles it's close to what the programmer intended".<p>I'm learning Haskell right now and really loving it. I wonder if I should stick with it for more production projects or make a switch to Erlang/Clojure. I know Erlang has quite a few success stories behind it, CouchDB being one of them.
评论 #3489594 未加载
评论 #3489815 未加载
评论 #3489248 未加载
评论 #3489912 未加载
prof_hobartover 13 years ago
From the bit of Haskell I've managed to learn, it's a great language, and I can see how an awful lot of the errors that you can make in other languages will probably be avoided in Haskell, but I've never understood the (frequently repeated) claim that<p>"If your program compile it will be very close to what the programmer intended".<p>There's nothing I've seen in Haskell, or any other language, that will prevent you implementing the wrong algorithm, or the wrong business rules etc. If you're doing a phsyics simulator (to take an example I've played around with), Haskell is not going to stop you badly miscalculating the gravitational effect of multiple objects, or calculating the mass of an object incorrectly.
评论 #3489204 未加载
评论 #3489243 未加载
评论 #3489971 未加载
评论 #3491506 未加载
评论 #3489172 未加载
t-crayfordover 13 years ago
Spelling corrections, noted as I read:<p>"point of vue" -&#62; point of view<p>"shell command are executed" -&#62; "shell commands are executed"<p>"benchmark are here" -&#62; "the benchmarks are here"<p>Also, heroku works just fine with haskell, as long as you compile a static binary on an ubuntu machine. I compile mine on virtual box (via way of vagrant), and have 3 haskell apps (none of them really production ready though) running on heroku right now.<p>Lastly, I don't <i>really</i> think haskell is the right language for a lot of web programming. In haskell, you really want your logic to be as purely functional as possible, but that gets pretty hard to do for web apps that rely on external apis.
评论 #3489125 未加载
jiggy2011over 13 years ago
Is anyone here using haskell or a similar funtional language for any web app?<p>Would be interested in known your experiences and opinion compared to something like django or rails.<p>How difficult is it to build something with a complex domain model?
评论 #3492171 未加载
评论 #3489598 未加载
评论 #3489525 未加载
gtaniover 13 years ago
<p><pre><code> You shouldn’t need to know Haskell. Don’t pay attention to all the syntax. If you are curious you can take a look at Applicative Functor. </code></pre> This is a nice, whirlwind tour, maybe the opening benchmarks and jab at node are superfluous. All haskell tutorials hit the speedbump of how to bootstrap haskell understanding, where to make forward references and when to say "Trust me" but code shown here: do blocks, ($), &#60;- and return would be confusing if you didn't know <i>any</i> haskell
评论 #3489062 未加载
agumonkeyover 13 years ago
Finally I know how to draw owls.
ericmoritzover 13 years ago
<p><pre><code> Haskell web frameworks handle parallel tasks perfectly. For example even better than node.js </code></pre> of course, node.js has no parallelism
评论 #3493174 未加载
minhajuddinover 13 years ago
haven't finished reading the whole content, but the zoom in zoom out effects are very annoying.
评论 #3489064 未加载