--
You received this message because you are subscribed to the Google Groups "clojure-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-tools+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "clojure-tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-tool...@googlegroups.com.
The two things on my "perfect nrepl" wish list (definitely not urgent, but the two improvements I can think of) are some method of making it more secure (that is, some access control beyond "local connections only") and startup time.
Addressing these would eliminate the two reasons I ever don't run nrepl when I run Clojure.
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-dev...@googlegroups.com.
To post to this group, send email to cloju...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-dev.
For more options, visit https://groups.google.com/d/optout.
that comparison wasn't totally fair - the nREPL one was loading a namespace and making it current, and the clojure.main one was not$ time echo '(System/exit 0)' | lein run -m clojure.main -e "(do (require 'lazybot.run) (in-ns 'lazybot.run))"#<Namespace lazybot.run>real 0m6.303suser 0m8.620ssys 0m0.255s
On Monday, March 30, 2015 at 8:01:47 PM UTC-7, Justin Smith wrote:Hi Laurent,This is a comparison between the vanilla clojure.main repl as opposed to nREPL.The startup time difference between `lein run -m clojure.main` and `lein repl` is significant, so I find myself doing the former to get a faster loading repl.~/clojure/lazybot$ time echo '(System/exit 0)' | lein run -m clojure.mainlazybot.run=> (System/exit 0)
Clojure 1.7.0-alpha1
user=>
real 0m3.269s
user 0m4.435s
sys 0m0.332s
~/clojure/lazybot$ time echo '(System/exit 0)' | lein repl
nREPL server started on port 55211 on host 127.0.0.1 - nrepl://127.0.0.1:55211
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.7.0-alpha1
Java HotSpot(TM) 64-Bit Server VM 1.8.0_05-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
SocketException The transport's socket appears to have lost its connection to the nREPL server
clojure.tools.nrepl.transport/bencode/fn--7491/fn--7492 (transport.clj:95)
clojure.tools.nrepl.transport/bencode/fn--7491 (transport.clj:95)
clojure.tools.nrepl.transport/fn-transport/fn--7463 (transport.clj:42)
clojure.core/binding-conveyor-fn/fn--4145 (core.clj:1910)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
java.lang.Thread.run (Thread.java:745)
Bye for now!
real 0m9.817s
user 0m17.238s
sys 0m0.536sThe clojure.main repl does not listen on an unsecured socket, so it doesn't provide full access to my account (or the account running the repl at least, usually mine) for any process local to my machine (acknowledged that local holes are numerous for every OS, but there are Clojure users who cannot use nREPL because of this concern).
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-dev+unsubscribe@googlegroups.com.
To post to this group, send email to cloju...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-dev.
For more options, visit https://groups.google.com/d/optout.
--Laurent Petit
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-dev...@googlegroups.com.
To post to this group, send email to cloju...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-dev.
For more options, visit https://groups.google.com/d/optout.
--
Laurent Petit
--
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure-dev...@googlegroups.com.
To post to this group, send email to cloju...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojure-dev.
For more options, visit https://groups.google.com/d/optout.