Hi Tim, The REPL is your tool for working with your program, debugging, tuning, etc. But it's not your primary source repository! You'll keep your source in a file hierarchy, organized by namespace (similar to a Java package, albeit with subtle differences). As you're working with the source, you can evaluate expressions, play with state, etc. directly in the REPL so that you can do iterative coding without having to stop and rebuild your application every time.
Look into Clojure's namespace packaging; specifically, if you have a namespace called foo.on.you then you'd want a file that defines the namespace with a (ns foo.on.you) located at /foo/on/you.clj. That file can then load others that belong to the same namespace with something like (load "bar") for the file /foo/on/bar.clj. When it comes to production deployment a REPL can be a handy tool to have (as per some other threads on this group), but your primary "vector" is to compile the clojure source into .class files and package it in a jar just as any other Java app (rather than running from REPL + source). Hope this helps, Greg On Jan 29, 8:03 am, timc <timgcl...@gmail.com> wrote: > I'm struggling to understand exactly what form(s) a Clojure program > can take. In particular, the empty section "The REPL and main entry > points" on the clojure.org web site doesn't help. > > Obviously, interacting manually with the REPL is nice for learning the > language, but this becomes tedious as the size of the source > increases. So the question is: what are the different ways that one > can run or package up a Clojure/Java program, so that it is invoked by > running a shell (or DOS cmd) script? > > I have got the book by Stuart Holloway, but that does not address this > issue (in its present revision). > > Are there any tools to perform this "packaging up"? > > I have been trying to use the clojure-dev Eclipse plugin but that does > not seem to be working yet. I work on Windows (using Eclipse) and want > to avoid using Emacs, which I find pretty vile (largely because there > does not seem to be an explanation of it that works). > > I apologize if I'm being really dense! I really like the "smell" of > this language and want to use it for real applications. > > Regards, Tim --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---