117 points · by johnbender · 14y ago · 19 comments
I would love to see similar talks about other languages.
I was a little disappointed in SPJ's response, actually.
What would make it a bad language for such an application? What would make it a good language? Would the answer change if you instead wanted to create a framework for building thousands of web-store applications that were all similar but a little different?
I have been trying to learn haskell for a while, and I like it quite a lot. I found myself thinking things like "what kind of amazing software could I build in haskell that I couldn't with any other language". I realized that was the wrong way to think about it, but perhaps there's something more there. After such an investment in learning, maybe writing a simple web store seems like an under-use of the language.
I wonder what things would be like if people did write ordinary applications in haskell.
Additionally, Haskell is actually pretty well suited for web programming as well. There are several frameworks which make writing server-side code easy and have very good performance; the two most popular ones seems to be Snap[1] and Yesod[2]. The combination of expresiveness and performance Haskell offers server-side is very good--C++ may be faster but is uglier, Ruby and friends may be as expressive but are slower.
[1]: http://snapframework.com/ [2]: http://www.yesodweb.com/
So in all, Haskell is a good way to write "ordinary applications".
Notice the slides that thinks the connection between C/Java and Haskell is that C/Java programmers envy Haskell, and take ideas from it. No envy or ideas ever flow the other way.
For example, I have heard talk of extending Haskell's already nice list comprehensions with some LINQ features like orderBy.
So while the slides--which are just a backdrop for the talk rather than its entirety--may imply Haskell is insular like that, the reality is that Haskell is always happy to take features from other languages.
Finally, I think the idea isn't that everybody wants to use functional programming languages, but rather that everybody should want to use functional programming languages ;).
I think that is a misread of the slides. I see why you thought that, but in the talk itself it was more clear.
If you had actually watched the talk, you would have noticed that that's not the case at all.