On Thu, 9 Sep 2010 11:16:11 -0700 (PDT) Brenton <bashw...@gmail.com> wrote:
> While evaluating Clojure, just remember, you don't have use it for > everything. When you need something simple, as in your examples, then > use cgi. When you need to do something more complex then Clojure can > help. The first problem with that is that this stuff seems show up *everywhere* in Javaland. It's not just web apps, it's pretty much anything. Second, just because a *problem* is complex and would benefit from Clojure doesn't mean that the requirements for deployment are complex and need more than a simple cgi (for example!) would require. Yes, when the choice is 150 lines of C with 0 lines of config vs. 20 lines of Clojure with with 10 lines of config, it doesn't look so bad - but 30% of the work being overhead still sucks. > You cannot deploy a .clj script on a running Tomcat (yet). When you > install Tomcat, you have a ROOT context into which you can place .html > and .jsp files and they will be dynamically loaded. This gives you > about the same functionality as you would get from php and apache. I didn't ask "how do I deploy a .clj script on a running Tomcat". I asked "how do I go from a .clj script to an application running on Tomcat"? I can't deploy a C program on running Apache server either - I have to compile and link it first. Not a problem. My 3/0/1 solution could just as well have been: $ cat - > hello.c main() { puts("Content-type: text/plain\n\nHello world!\n") ; } ^D $ cc hello.c $ cp a.out /usr/local/apache22/cgi-bin/helloworld Anything even close to that for Tomcat and clj? > Clojure is new so when you see something missing, build it. That is > why all of this other stuff is so simple, someone built it. Good advice. That's what I've been doing so far. On the other hand, I'd rather spend my time building the things that interest me rather than reinventing wheels for which I already have adequately round examples. If my expectations of "adequately round" are much higher than the communities, then I'll wind up doing to much of the latter and not enough of the former, and will probably be happier elsewhere. <mike -- Mike Meyer <m...@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en