>
>
> Concretely, this would mean following the "Getting Started"
> instructions on clojure.org.  Then seeing what there is to see . . . I
> assume some sort of command line for doing "REPL" will come up as it
> says?
>

Yes, "Getting Started" will show you how to start the REPL. I think that's
near the beginning.


> But what about using other libraries?  I mean, eclipse makes it so you
> don't even have to really understand classpaths.  You can start
> eclipse, pick a compiler from anywhere on your machine (I assume here,
> you'd be picking the compiler your reader would use?), pick the jvm
> programs are going to run in (I assume here it has to be the same as
> what the REPL is using?), and select any number of dependent projects.


Eclipse has a lot of nice features for writing Java code. I consider the
REPL to be worth about as much as Eclipse's nice features, although it would
still be nice to have both. I would prefer to use Clojure with notepad.exe
and no REPL than Java with Eclipse. Clojure with an REPL and a decent editor
is even better.

Yes, I think you need to understand classpaths if you are working with Java
code.


> So here's what's odd to me: how come it isn't clear how someone would
> go about making an application for an end user?  I mean, it seems like
> clojure is for developers to use in a REPL.  That just can't be the
> only use case, right?


I am working on web applications, in which end users can use my application
while it is running on my server in an REPL. That is actually how I prefer
to work. I wrote an article about setting up "hello world" as a
Clojure/Compojure web application.

http://ericlavigne.wordpress.com/2008/12/18/compojure-on-a-slicehost-vps/

You can also choose between Repl and Script. The script option is closer to
what you would expect.


> I'm wondering if one is supposed to write some sort of launcher in
> java that gets the reader up and running that then reads all the
> clojure stuff you feed it from your java program?  If this is the
> case, I can see how to make other libraries available . . . just add
> them to the classpath when running the java main.
>

There are two launchers: Repl and Script. Choose Repl for interactive
programming, Script to run a program. Repl and Script are Java classes, and
yes you need to set the classpath in the usual manner as in Java. You will
also need to use Clojure's "import" command, which is similar to Java's
"import."


> Anyway, I took Rich's advice and joined this, my first discussion
> group, so thanks again for bearing with me.
>

Welcome to Clojure.

-- 
Education is what survives when what has been learned has been forgotten.

                   - B. F. Skinner

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to