TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Conrad Barski's Haskell Tutorial

160 点作者 icey将近 12 年前

9 条评论

drcode将近 12 年前
Wow, how did my Haskell tutorial get to the HN front page out of nowhere? :-)<p>If you like my stuff, keep an eye out for my new Bitcoin book, which will be coming out this fall. I&#x27;ve been slaving over the artwork for months, it should be a beautiful book! The working title is &quot;Bitcoins for the Befuddled&quot;.
评论 #6042783 未加载
评论 #6041856 未加载
评论 #6042825 未加载
lelf将近 12 年前
&gt; <i>In Haskell, this type of integer can&#x27;t get bigger than 2^31...</i><p>It&#x27;s platform-dependent<p><pre><code> h&gt; finiteBitSize (0 :: Int) 64 </code></pre> &gt; <i>We could have used the type Integer instead- This type of integer grows &quot;magically&quot; and can hold any sized integer, no matter how big... but it&#x27;s slower, so we used Int instead, since our numbers will never get that big.</i><p>Premature optimisation at its best.
评论 #6042216 未加载
评论 #6042311 未加载
apgwoz将近 12 年前
Picnicmob was a really clever idea. I think I remember that it got cancelled though, which was unfortunate.<p>I like the tutorial though. I&#x27;d be willing to bet it&#x27;s his style and work that inspired the &quot;Learn you a...&quot; books. The Haskell one is great, and so is the Erlang one.
评论 #6042154 未加载
gtani将近 12 年前
My local Barnes and Noble has this book next to Felleisen et al&#x27;s &quot;Realm of Racket&quot;. These will be hours and cups of coffee well spent!<p><a href="http://realmofracket.com/" rel="nofollow">http:&#x2F;&#x2F;realmofracket.com&#x2F;</a>
gps408将近 12 年前
Simple and refined, guaranteed to blow your mind...<p>The tao of regular expressions link is broken in the first chapter. Does anyone have a link?
reirob将近 12 年前
I like the tutorial very much! Thank you! And I like the final words, which I think brings to the point the whole discussion about Haskell vs. Imperative languages:<p><pre><code> [..] Because the physical world changes only slightly from moment to moment, it means that languages that can comfortably mutate large data structures in targeted ways will always have a role to play in real-world software- The &quot;real world&quot; usually just doesn&#x27;t work the way Haskell, and other functional languages would prefer it did: Haskell preferred that at every moment in time, a &quot;new universe&quot; would look at the &quot;old universe&quot; and would rebuild itself, from scratch, from what it saw in the past, with radical changes happening all the time. Despite its many advantages, I humbly suggest, therefore, that in the future there will continue to be a rift between the &quot;imperative&quot; and &quot;functional&quot; camps of programming, until someone comes up with a truly robust way of uniting these two camps- And I think that some profound programming discoveries still need to be made in the future before this problem is really resolved- I get the feeling it&#x27;s just not good enough to wave at the problem and say &quot;Monads&quot;.</code></pre>
frou_dh将近 12 年前
ghc 7.6.3 (brew) installed on OS X doesn&#x27;t like the first code presented (System.Random, Text.Regex and StdGen aren&#x27;t found).
评论 #6041887 未加载
izietto将近 12 年前
I&#x27;m unsure which regex package flavor to use... regex-base? regex-compat? regex-pcre? regex-???
评论 #6044844 未加载
评论 #6044713 未加载
monokrome将近 12 年前
This website was written on a planet where 244 lines of Haskell is less than 100 lines of Haskell.
评论 #6043086 未加载