Re: compojure stop server?

2010-02-20 Thread Jeff Schwab
Brian Wolf wrote: Is there something like a (stop-server) I don't see anything here Are you just looking for compojure/stop? $ cat hello.clj (ns hello) (use 'compojure) (defroutes rts (GET / (html [:h1 Hello World])) (ANY * (page-not-found))) (defserver srv {:port 8080}

Re: Question about how I got run?

2010-02-16 Thread Jeff Schwab
Mike Meyer wrote: Is there any way to tell if inside a .clj file if it was invoked as a script by clojure.main, vs. being loaded for use elsewhere? Use a shebang line that calls a wrapper script, e.g. clj-script, that passes a command-line arg to tell the code it's being run as a script. $

Re: Clojure and OOP

2010-02-11 Thread Jeff Schwab
Joel Westerberg wrote: You can work with java objects. But clojure itself is not object oriented, because it's functional, and object orientation requires state manipulation. By whose definition? Are you saying there is no such thing as an immutable object? Other lisps support object

Re: Clojure for system administration

2010-02-06 Thread Jeff Schwab
Phil Hagelberg wrote: On Thu, Feb 4, 2010 at 8:33 AM, Stuart Sierra the.stuart.sie...@gmail.com wrote: Clojure can certainly do these things; clojure-contrib contains many file and io-related utilities. But remember that Clojure, like any Java program, takes more time to start up than

Re: clojure.contrib compile fail

2010-02-01 Thread Jeff Schwab
Stuart Sierra wrote: On Jan 30, 9:07 am, Jeff Schwab j...@schwabcenter.com wrote: The clojure-contrib I just pulled from github fails to compile, with an error that the ColumnWriter class extended by PrintWriter is not found. This has been fixed now. Thanks. I see that you made an end

clojure.contrib compile fail

2010-01-30 Thread Jeff Schwab
Hi: What is the right place to report a clojure-contrib compile failure, or to look for information? The clojure-contrib I just pulled from github fails to compile, with an error that the ColumnWriter class extended by PrintWriter is not found. The relevant source directory does define

Re: Request for Feedback: Improve VimClojure's documentation

2010-01-30 Thread Jeff Schwab
Meikel Brandmeyer wrote: Please send me your suggestions for FAQ and other tips via private email or add a ticket in the bb tracker for the documentation component. Hope you don't mind if I add to this thread instead. By the way, can you suggest a forum for reporting VimClojure bugs and

Re: clojure.contrib compile fail

2010-01-30 Thread Jeff Schwab
Mike Mazur wrote: http://paste.lisp.org/display/94135 The automated build is also broken: http://build.clojure.org/job/clojure-contrib/lastFailedBuild/console Thanks, I didn't know about that. Looks like I guessed right about the ordering issue, though:

Re: Style for mutable data

2010-01-30 Thread Jeff Schwab
Johann Hibschman wrote: Does anyone have style suggestions for distinguishing the states from the refs to mutable data? Let's say I'm manipulating a cell in a lattice, or doing dynamic programming, or something. In any case, I have a cell. ;; Current convention: use cell- as the type of the

Re: Clojure Conference Poll

2010-01-27 Thread Jeff Schwab
Joseph Smith wrote: +1 Lincoln/Omaha Nebraska. :) Mr. Buffet? Is that you? Have you, too, decided to invest in Clojure? -- 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

Re: Clojure Conference Poll

2010-01-24 Thread Jeff Schwab
+1 Boston. Brent Millare wrote: Weekend, and East coast, either near the DC area or New York Area, maybe Boston area is OK too. On Jan 22, 12:36 pm, dysinger t...@dysinger.net wrote: We will be organizing a conference in the next month for 2010 (probably in the fall). One question I would

Re: compojure/defservlet

2010-01-20 Thread Jeff Schwab
James Reeves wrote: Compojure's documentation is generally not in the best of states; however, I'm holding off fixing it until I finish work on the next version in a couple of months. Fair enough, thanks. -- You received this message because you are subscribed to the Google Groups Clojure

compojure/defservlet

2010-01-19 Thread Jeff Schwab
Hi: The compojure wikibook claims that compojure provides a defservlet function, along with other syntactic conveniences that I seem to be missing. Grepping the git log didn't turn up anything relevant, so I'm wondering: Is compojure supposed to provide defservlet, or should I fix the

Re: Recommendation for Clojure Indentation tool

2010-01-09 Thread Jeff Schwab
Gabi wrote: I really hate emacs. ... Any other way to format lisp/clojure ? http://www.vim.org/scripts/script.php?script_id=2501 -- 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