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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Functional Programming Languages

8 点作者 big_data将近 14 年前
Faced with many choices, help me decide which functional programming language to learn. Just as important as making a recommendation, please tell me why you made your choice. For kicks, saying don't bother is also a choice.

8 条评论

viscanti将近 14 年前
What do you want to do? If you can only learn one "functional" language and you do anything with the web, I'd recommend Javascript (if you don't already know it). It's viable in the front and backends.<p>I'd personally recommend Haskell. It's going to stretch your brain (in a good way), and helps reinforce all the "functional" concepts. It's one of the very few purely functional languages, and it does have a bit of a learning curve to get started with, but I think it's worth the work. There's a lot of library support, and almost all the sample code you find online in tutorials is well written. You can pretty much do whatever you'd like with Haskell (Web servers like Yesod, to all kinds of fun AI/ML stuff). If you're into computer science theory, you'll find as much as you'd ever want with Haskell. The GHC (compiler) has particularly good support for concurrency and parallelism (likely in most cases as good or better performance than Erlang).<p>If you're a quant looking into building a trading algorithm OCaml is a good choice.
评论 #2867527 未加载
coconutrandom将近 14 年前
Erlang seems to be making headway... <a href="http://news.ycombinator.com/item?id=2866337" rel="nofollow">http://news.ycombinator.com/item?id=2866337</a>
cyrus_将近 14 年前
Ocaml is probably the one at the sweet spot since its fairly practical (reasonable number of libraries and a good compiler) and has a simple-but-effective core type system (ADTs + modules). Plus you can transition to F# later if you want more libraries. Haskell wouldn't be a terrible choice either -- just be warned that it is more difficult and idiosyncratic (laziness + type classes + monads + random GHC extensions that do strange things).
评论 #2867555 未加载
shangaslammi将近 14 年前
Haskell has definitely been the most rewarding programming language to learn for me personally. It's fairly unique in many ways, and really forces you to think in functional terms (unlike many other functional languages, which make it easy to drop back to OO or imperative style).<p>However, Scala was the "gateway" language that helped me grok the core functional concepts after a long history of doing just OOP.
alecbenzer将近 14 年前
<a href="http://learnyouahaskell.com/" rel="nofollow">http://learnyouahaskell.com/</a><p>^^ one of the most interesting (and entertaining) experiences I've had learning a programming language
spooneybarger将近 14 年前
I dont know anything about your background, but I suspect that Haskell will have a mind altering effect.<p>That would be my suggestion.
big_data将近 14 年前
Thanks to all for responding. Haskell it is for now.
naughtysriram将近 14 年前
lisp or scheme then you can jump to clojure