News for hackers. Stuff that matters.
Re:Clojure adds AOT compilation by markessien on Friday November 14, 2008 @09:45AM (#364315)
It does not have to have a problem to be a fad. Programming languages all require a big time investment in learning them - so those that exist tend to stay around. People only change languages when there are very clear benefits. Clojure seems to have pulled up to the same level as other much older and better known programming languages - there are no benefits (at the moment) to it that would make the mass of programmers switch to it.

Ruby is a good language, but it only became popular when it offered a clear benefit.

For a language to enter the mainstream and stay in the mainstream, it has to do a lot more than just not be bad. It has to be better than others in some way.

(By the way, being a functional language does not make it better, it makes it worse, since most programmers have trouble grasping functional concepts)

At the moment, clojure may not have any negatives, but it does not have any strong positives, so I don't see why it would catch on.

Re:Clojure adds AOT compilation by whacked_new on Friday November 14, 2008 @10:37AM (#364374)
Suppose your arguments are true. Here's why clojure is destined to be big.

Clear benefit: you have Java at your disposal, while being "new and cool." From a library standpoint it is Java + extras.

Functional does not make it better: if there are two types of people, one that prefers functional, one imperative, go ahead! Let the functional use clj, the imperative use java. Now you can compile to .class and use either paradigm!

I don't code lisp regularly, but I'm convinced clojure is the NBT and so I'm preparing to jump ship after it matures :D

Re:Clojure adds AOT compilation by brl on Saturday November 15, 2008 @05:22AM (#365273)
Can you really compile Clojure into .class files? I was wondering that the other day, and the conclusion that I reached was that it doesn't work that way.
Re:Clojure adds AOT compilation by icey on Sunday November 16, 2008 @10:09AM (#366027)
Re:Clojure adds AOT compilation by markessien on Friday November 14, 2008 @10:58AM (#364399)
Should we take a bet on that? I say that with no extra framework coming up that utilizes clojure, clojure will forever remain a small niche product.
Re:Clojure adds AOT compilation by gaius on Friday November 14, 2008 @12:16PM (#364498)
Frameworks are big in Java-land because you need an enormous amount of scaffolding to make any non-trivial application work. That's less true in other languages. Libraries and interoperability with other languages are more important, and where LISP has traditionally suffered. Clojure has a lot of potential, but there are a lot of languages poised in the wings right now, all jockeying to be the next big thing. F# for example is functional (it's descended from OCaml) and has full access to the .NET libraries, which are as comprehensive as Java's, and has the backing of a major vendor. Now if Sun were to pick up Clojure and make it the official functional language on the Java platform, that would be something.
Re:Clojure adds AOT compilation by chollida1 on Saturday November 15, 2008 @12:04PM (#365382)
> Should we take a bet on that? I say that with no extra framework coming up that utilizes clojure, clojure will forever remain a small niche product.

I'm not sure how Clojure will play out but remember it's only a few years old. You could have said the same thing about Ruby in 1997.

Re:Clojure adds AOT compilation by arohner on Saturday November 15, 2008 @03:01PM (#365496)
Clojure's first birthday was just a few weeks ago.
Re:Clojure adds AOT compilation by whacked_new on Monday November 17, 2008 @02:37AM (#366674)
I take your bet.
Re:Clojure adds AOT compilation by markessien on Monday November 17, 2008 @06:42PM (#367546)
Alright, find me in a few years and claim the reward.
Re:Clojure adds AOT compilation by arohner on Friday November 14, 2008 @01:45PM (#364624)
Ruby is not a good language though. It's not consistent, it's not lexically scoped, it's slow and it's std library is immature.

There are similar arguments aginst Python, but less so.

As far as strong benefits of clojure: concurrency, it's lisp, it has libraries, it interoperates with Java.