What is the specific difference between Clojure 1.8 socket repl and nREPL?

I read this, but there seems to be no tutorial / document about the difference between the two or something else.

Will replacing a socket replace nrepl?

+7
clojure read-eval-print-loop nrepl clojurescript
source share
2 answers

At least not now. clojure.core.server/repl is just a plain old REPL that listens on a socket and also provides output through the socket. I would prefer that this socket be replaced as a good and small fix to add REPL on network functions without changing the code.

nREPL, on the other hand, has not been working for a long time. This provides more functionality, among which the most common is middleware. nREPL allows editors and IDEs to interact with the JVM, enriching the experience of using the basic REPL.

+7
source share

TL; DR;

  • Socket repl is just an old answer served by Socket. It is flow oriented
  • nREPL is a REPL network, while the name is similar to socket repl, they are very different. nREPL is a message-oriented program with server / client architecture.

Long version:

0
source share

All Articles