News for hackers. Stuff that matters.
Re:Practicality: PHP vs Lisp by norswap on Friday July 02, 2010 @06:40AM (#1480724)
This is so true, and it's also valid for non-web uses of common lisp. Except Racket they are no user friendly lisp/scheme package. And heck, even Racket is far from ideal.

Lisp may be a superior langage, but setting it up is impractical for anybody who isn't used to hack emacs and bash scripts all day.

Re:Practicality: PHP vs Lisp by swannodette on Friday July 02, 2010 @07:36AM (#1480796)
Wow people are upvoting this FUD?

  > but setting it up is impractical for anybody who 
  > isn't used to hack emacs and bash scripts all day
This is Hacker News right?

Having built websites in PHP, Python, Ruby, and Clojure ... guess what? They all present you with equal challenges if you're not building trivial small websites on shared hosting.

Getting a website up and running in Clojure is as simple as it gets. Compojure ships with a good webserver baked right in.

Re:Practicality: PHP vs Lisp by randallsquared on Friday July 02, 2010 @09:12AM (#1480985)
Having built websites in PHP, Python, Ruby, and Clojure ... guess what? They all present you with equal challenges if you're not building trivial small websites on shared hosting.

I've built websites in PHP, Python, Common Lisp, and RXML/Pike. Some have been very small, and some have been medium-sized. I currently work on a several-hundred-thousand-line PHP codebase, and I don't think being in PHP has been a serious problem for it.

I do agree that language infrastructure is more important for small projects, and language power is more important for large projects. I think it's critical to provide good language infrastructure precisely because of this, though, since virtually everyone starts out learning a language with a small project! It's really easy to bounce off of CL, when you're first starting out, as easily demonstrated by a survey of c.l.l (at least, when I paid attention there 2003-2007), and it's not because of the language itself; it's because the infrastructure is (was?) severely lacking.

I think it's harder to build a good infrastructure with a more powerful language, ironically, because the power substitutes for things that would otherwise be infrastructure-related, and once you've learned enough of the language to work on infrastructure, you no longer care so much.

Re:Practicality: PHP vs Lisp by Raphael_Amiard on Friday July 02, 2010 @08:23AM (#1480871)
> Getting a website up and running in Clojure is as simple as it gets.

Well you first have to get clojure running. And that's not as simple as it gets

Re:Practicality: PHP vs Lisp by masomenos on Friday July 02, 2010 @08:46AM (#1480921)
You piqued my curiosity, never having tried Clojure.

My time from 0 to getting (the correct!) result of (+2 2) from Clojure's REPL was approximately 60 seconds.

Pretty simple.

Re:Practicality: PHP vs Lisp by randallsquared on Friday July 02, 2010 @09:15AM (#1481004)
It took you less than 60 seconds to install Java, compile Clojure, and start the REPL? :) I haven't actually used (or installed) Clojure, but most of the complaints (here and on proggit) appear to be by people who don't already know Java, and so have to figure out enough of the Java build process to build Clojure in the first place, even though a touted advantage of Clojure is that you don't have to deal with Java.
Re:Practicality: PHP vs Lisp by golwengaud on Friday July 02, 2010 @11:21AM (#1481365)
I have no java (programming) experience, and it took me ~45 s:

#apt-get install closure

#closure

user=> (+ 2 2)

4

Most of that 45 s was waiting for apt-get.

Now it's not going to be this easy on platforms that don't have such nice package management (e.g. Windows). Furthermore, Raphael_Amiard makes a good point that there's a lot more infrastructure that has to go into web application development (or any other kind of application development, for that matter) than computing the sum of 2 and 2.

Nonetheless, it just doesn't seem that hard. At worst, put a "clojure /path/to/project.lisp" in rc.local or equivalent.

(Caveat: my web development experience consists entirely of a couple of toy projects I ran on my laptop for my own amusement. Take all this with a grain of salt.)

EDITed for formatting.

Re:Practicality: PHP vs Lisp by Raphael_Amiard on Sunday July 04, 2010 @06:32AM (#1485481)
There is _no_ cloJure package, neither on debian, neither on ubuntu repos, and it's called clojure, not closure, so either you are full of shit, either you installed closure common lisp, either you have non standart repos. This is a scary example of how a post can be upvoted when _nobody_ in presence understands what they are talking about.
Re:Practicality: PHP vs Lisp by mfukar on Saturday July 10, 2010 @11:24AM (#1503771)
Re:Practicality: PHP vs Lisp by dedward on Friday July 02, 2010 @04:40PM (#1482279)
The problem isn't that it's hard to get at the REPL (it's not) - it's envisioning how to use Clojure to do a full-scale web project. What's the workflow?
Re:Practicality: PHP vs Lisp by eeperson on Friday July 02, 2010 @11:56PM (#1483213)
Using Clojure actually isn't that hard. It is basically the same amount of difficulty as any other compiled language. You can basically take any text editor and do a standard 'write->compile->run'. However, most people that are familiar with Lisp, prefer a more interactive development environment that allows you to make changes to a running app. Probably the most powerful environment for doing this is SLIME in Emacs. As a result this is what is mentioned the most. I think this tends to scare people off.

I don't know why the Enclojure plugin for Netbeans isn't mentioned more. It provides an interactive development environment for Clojure in package that is much easier to digest for anyone who is familiar with an IDE.

Re:Practicality: PHP vs Lisp by 3d3mon on Friday July 02, 2010 @02:03PM (#1481808)
Just as easy for Windows. Use clojurebox. Double click the .exe file.

http://clojure.bighugh.com/

Re:Practicality: PHP vs Lisp by babblefrog on Friday July 02, 2010 @10:19AM (#1481179)
Probably already had a JRE installed (just about everybody does, I would expect), downloaded a pre-compiled clojure.jar, and ran it.
Re:Practicality: PHP vs Lisp by francoisdevlin on Friday July 02, 2010 @10:19AM (#1481180)
The advantage should be more properly stated that you don't have to deal with Java the language, but you still get Java the ecosystem. Using all of the supporting build & deployment stuff is actually seen as advantage with experienced Clojure guys.
Re:Practicality: PHP vs Lisp by Raphael_Amiard on Friday July 02, 2010 @10:32AM (#1481216)
well i was more speaking of setting up clojure in a web development way, meaning, starting automatically your jetty server and website at the machine boot, which is pretty much a given if you use a LAMP setup.

Also you don't code a website from a REPL, you need a proper developpement environnement, some way to manage your website dependencies, etc.. well, theses issues have been covered in lengths these last days, in a few articles, and the clojure people are well aware of it, and working on it, but for having done a serious website in clojure , let me say it's nowhere as automated or simple as setting up a LAMP server.