121 points · by puredanger · 15y ago · 37 comments
(Retrieved by setting my User-Agent to that of an iPad, which causes infoq to serve up a <video> tag.)
I'd love for somebody to convince me why a Haskell approach to web frameworks is superior to Python/PHP/Ruby/JS beyond the usual "it's a matter of taste" argument.
Edit: And for Haskell, achieving needed performance can be quite tricky with regard to its laziness.
But Snap is driven by enumerators/iteratees (via the enumerator package), which make it much easier to do fast near-constant space IO.
I have built a web application that uses Snap to query large (parse) treebanks, and it was easy to make it performant.
No .Net in there, though.
At the moment, my answer is "Not yet, but ask again in a year." There are tons of interesting things happening in the area of letting you have "performance, correctness, rapid development and prototyping, pick three", but they're still in the early phases yet.
Next, the author mentions about several limitations that C# has and that Haskell has a much better approach.
So, why use C#? Why not only use Haskell?
The client-side code is written in C# because the .net APIs for Office are the easiest to deal with.
I'd like to use this "property-based testing" he stressed.
Slides are here: http://bos.github.com/strange-loop-2011/talk/talk.html#%281%...
Navigation uses keyboard arrows.
He had a similar/same talk about a month prior and here is the video on Vimeo if you're not a fan of InfoQ's format:
http://vimeo.com/27192476 (Bryan O'Sullivan - Building Solid Distributed Applications with Haskell and Riak)