10

I've been reading this, but there seems to be no tutorial/doc about the difference between these two or whatnot.

Is socket repl going to replace nrepl?

Shiva Wu
  • 1,074
  • 1
  • 8
  • 20

2 Answers2

10

At least not now. clojure.core.server/repl is just a plain old REPL that listens on socket, and spits output through socket as well. I'd rather think this socket repl as a nice and small fix to add REPL over network functionality without (much) code change.

nREPL, on the other hand, has been out for long. It provides way more functionalities, among which middleware is the most prominent one. nREPL enables editors and IDEs to interactively communicate with the JVM, enriching the experience when using the basic REPL.

Davyzhu
  • 1,109
  • 9
  • 17
2

tldr;

  • Socket repl are just plain old repl, serviced on Socket. It's stream-oriented
  • nREPL is network REPL, while the name is similar with socket repl, they are very different. nREPL is messages-oriented program with server/client architecture.

Long version:

Jiacai Liu
  • 2,623
  • 2
  • 22
  • 42