News for hackers. Stuff that matters.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by time_management on Tuesday December 09, 2008 @10:35PM (#392406)
The first time I encountered FP was in an undergraduate PL class. I remember how easy it was to use, how beautiful the language was, and how many cool things could be done with it that were utterly foreign to Java at the time. I remember the thought: "Functional languages are so cool. It's too bad that you can't use them for anything serious." I guess this was a case of the cage door being swung open and the monkey staying inside.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by seertaak on Wednesday December 10, 2008 @05:15AM (#392726)
I totally agree. We learned Miranda, which is similar to Haskell. Had we learned Haskell and the lecturer had pointed us to its FFI (which is a real joy to use, similar in ease-of-use to the lisp FFIs -- much easier than the java JNI [although JNA goes a long way towards alleviating JNI pain]), things probably would have been very different.

I mean, the first real programming I did was with logo. Why was it fun? Because the it resulted in pretty pictures and animations. When I started programming pascal, C, and assembler, it was 320x200x256 graphics that made it fun (that and TSRs).

Programs need to do something to be exciting. Sorting lists and building trees is certainly interesting, but doesn't inspire that "I need to figure out how they did that" feeling that every programmer my age will have felt when he/she first saw Doom or Wolfenstein, or in my case, Strike Commander.

Re:The Power of The Functional or: I’ll bet you can’t do thi... by jhancock on Wednesday December 10, 2008 @02:07AM (#392588)
I predict that in 2 to 3 years, there will be several accessible web frameworks in erlang, scala, and maybe even haskell. Yes, there are frameworks for them now, but they are not "accessible" to the masses yet. This will change and good programmers will have all the readability they need for quick web dev as well as the power and safety of more advanced language features.

As much as I like merb, I would like it _much_ better if it was in erlang or scala. lift, erlyweb, mochiweb, etc are still not at the ease of use level of the ruby frameworks. There will be a tipping point, I hope ;).

Re:The Power of The Functional or: I’ll bet you can’t do thi... by gaius on Wednesday December 10, 2008 @02:59AM (#392634)
F#, don't forget. It has the backing of a major industry player and access to all of the .NET libraries and tools already.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by seertaak on Wednesday December 10, 2008 @04:52AM (#392710)
Plus it's based on ML, which, while possessing a few wrinkles and warts, is a very pragmatic language.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by silentbicycle on Wednesday December 10, 2008 @07:51AM (#392818)
Don't forget OCaml, for that matter.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by seertaak on Wednesday December 10, 2008 @08:20AM (#392848)
Agreed; in fact I've that's the only ML I've tried! What I don't like about it is the standard library; compared to Haskell's it feels so obtuse. Actually I think Haskell's standard library is pretty friggin' awesome. Everything is where it should be, functionality is well documented, the names are succinct but clear. It's a joy to use.
Re:The Power of The Functional or: I’ll bet you can’t do thi... by silentbicycle on Wednesday December 10, 2008 @09:05AM (#392895)
> [the standard library is] so obtuse

Agreed, strongly. Look at extlib ( http://code.google.com/p/ocaml-extlib/ ) and such, though. While OCaml's official standard library has some infuriating gaps, the unofficial standard library makes up for many of them (and the core language is quite good).

Re:The Power of The Functional or: I’ll bet you can’t do thi... by tphyahoo on Wednesday December 10, 2008 @07:35AM (#392813)
I am trying to make happs, a haskell web framework, more accessible to the masses:

http://www.happstutorial.com