On Fri, Dec 16, 2011 at 05:48, jayvandal <s...@ida.net> wrote:
> I was looking at the installation in "Learning clojure" and the batch
> file had this statement:
>
>  java -server -cp .;%CLOJURE_JAR% clojure.main
>
>     why is  the "server" in the line and what is it referencing???
> Thanks for any help

The Java virtual machine (JVM) can run either in "client" or "server"
mode. The server virtual machine's just in time (JIT) compiler
generates better performing machine code. The down side is that
startup is slower (generating better code is more work), but
performance after startup is better (better code runs faster). The
byte code Clojure translates to benefits considerably from the
optimizations offered by the server virtual machine.

Here's a "picture":

Clojure source -(Clojure compiler)-> JVM byte code -(JIT Compiler)->
Machine code

"java -server" makes "-(JIT Compiler)->" do more work to generate
better machine code.

// Ben

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

Reply via email to