Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 933
Shiva Wu Avatar asked Jun 15 '16 15:06

Shiva Wu


People also ask

How does Clojure REPL work?

So a ClojureScript REPL consists of two parts: the first part is written in Clojure, it handles the REPL UI, and takes care of compiling ClojureScript to JavaScript. This JavaScript code then gets handed over to the second part, the JavaScript environment, which evaluates the code and hands back the result.

How do I launch REPL in Clojure?

To start a REPL session in Eclipse, click the Menu option, go to Run As → Clojure Application. This will start a new REPL session in a separate window along with the console output.

How do you abruptly stop execution in the REPL?

You can just press ctrl-d (*nix) or ctrl-z (Windows) to exit the REPL.

What is clojure Main?

The clojure. main namespace provides functions that allow Clojure programs and interactive sessions to be launched via Java's application launcher tool java .


1 Answers

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:

  • https://lambdaisland.com/guides/clojure-repls/clojure-repls
like image 90
Jiacai Liu Avatar answered Sep 20 '22 17:09

Jiacai Liu