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.

OCamlers' critiques of Haskell

177 pointsby a0over 9 years ago

7 comments

conistonwaterover 9 years ago
From the top comment:<p>&gt; <i>Yoneda-crazy: I know Haskell, I know some category theory, but I am highly sceptical that teaching the Yoneda Lemma to C++ programmers is actually useful in any way.</i><p>This is infuriatingly true. Everything you do in Haskell you can understand in terms of what code gets executed where and how. This is just as true of Haskell as it is of any other high-level language.<p>Indeed, you can take an arbitrary Haskell program, and rewrite it in C with the same semantics, and all you&#x27;ll learn is how GHC&#x27;s runtime is implemented and how it executes your program. For a small concise program, this actually makes for a nice exercise. I don&#x27;t know why, but people sometimes seem to think the runtime is &quot;magic&quot;.
评论 #10128072 未加载
评论 #10129417 未加载
评论 #10127950 未加载
评论 #10128016 未加载
评论 #10130231 未加载
jordwalkeover 9 years ago
I am an unashamed OCaml fan, but I think my previously stated analogy is suitable:<p>&quot;FP communities: like debating which brand of natural spring water to give millions of thirsty people in the desert&quot;<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;jordwalke&#x2F;status&#x2F;566719390272335872" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;jordwalke&#x2F;status&#x2F;566719390272335872</a><p>Note that I do genuinely appreciate the discussion, while finding the overall scene humorous.
评论 #10129373 未加载
评论 #10128580 未加载
more_originalover 9 years ago
One technical reason that makes me prefer OCaml to Haskell is Haskell&#x27;s weak module system. I think there should be a good way to parameterize one module over another module (interface) and to use different instantiations of the module in the same program. I think people do such things using type classes and typing constraints. But I found this being awkward, because the compiler needs to be able to resolve the constraints automatically and there are issues with overlapping instances and the like.<p>To quote Bob Harper: <i>As a consequence, using type classes is, in Greg Morrisett’s term, like steering the Queen Mary: you have to get this hulking mass pointed in the right direction so that the inference mechanism resolves things the way you want it to.</i> [<a href="https:&#x2F;&#x2F;existentialtype.wordpress.com&#x2F;2011&#x2F;04&#x2F;16&#x2F;modules-matter-most" rel="nofollow">https:&#x2F;&#x2F;existentialtype.wordpress.com&#x2F;2011&#x2F;04&#x2F;16&#x2F;modules-mat...</a>] (I think this applies most of all if one is using type classes to emulate a module system. For other purposes, type classes are quite nice.)<p>Maybe Backpack will solve these issues. [<a href="http:&#x2F;&#x2F;plv.mpi-sws.org&#x2F;backpack&#x2F;" rel="nofollow">http:&#x2F;&#x2F;plv.mpi-sws.org&#x2F;backpack&#x2F;</a>]
yohoho22over 9 years ago
The OP on reddit lists several earlier &quot;What are Haskellers&#x27; critiques of &lt;X functionalish language&gt;&quot; threads.<p>Here&#x27;s another recent one going in the opposite direction, like this one, but asking Clojure fans about Haskell: <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Clojure&#x2F;comments&#x2F;3h4qdk&#x2F;what_are_clojurians_critiques_of_haskell&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Clojure&#x2F;comments&#x2F;3h4qdk&#x2F;what_are_cl...</a><p>A lot of the Clojure programmers seemed to focus on things, like records, that often bug Haskellers, too.
blitiover 9 years ago
I&#x27;ve toyed with Haskell before (enjoy toying with languages in my spare time). Its a nice language, that has a good community. But for some reason I could not see myself using it as one of my main goto (no pun intended) languages. Not due to any technical reason. Mostly because there is no easy introduction into it. No small projects to undertake showing what practical uses it might have. No twitter clone using SQLite (laugh all you want, this type of tutorial project helps understand how the language should be used and showcases libraries). Its just seems purely about doing math with it. But Im probably wrong. Last time I looked into it was about a year ago. I&#x27;ll gladly look again if anyone can comment about it.
评论 #10127857 未加载
评论 #10127919 未加载
评论 #10130257 未加载
评论 #10128724 未加载
评论 #10128981 未加载
评论 #10131043 未加载
edgyswingsetover 9 years ago
Although this isn&#x27;t OCAML, one thing I ended up missing when writing Haskell was F#&#x27;s Active Patterns.
评论 #10128229 未加载
bbcbasicover 9 years ago
&gt; When I met a Haskeller at the pub after a mini-conference and I mentioned that I didn&#x27;t like Haskell he began frothing at the mouth and punching the table. When we got up to leave he refused to shake my hand.<p>This is just gold!<p>All the Haskellers I have met seem to be quite normal, helpful. Maybe this guy rubs them up the wrong way.
评论 #10127786 未加载
评论 #10127782 未加载
评论 #10128035 未加载
评论 #10127757 未加载
评论 #10128472 未加载