practicalli / practicalli/clojure-cli-config
alias: unix socket repl for local dev
Open
@practicalli-johnny is already working on this.
Since Aug 29, 2024.
- Dominant language
- edn
- Stars
- 560
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
using JDK 16 or newer, or you add a junixsocket dependency, you can ask it to listen on a UNIX domain (filesystem) socket instead:
{ ;; ... :aliases {:nREPL {:extra-deps ;; UNIX domain socket support was added in 1.0.0 {nrepl/nrepl {:mvn/version "1.3.0"} com.kohlschutter.junixsocket/junixsocket-core {:mvn/version "2.3.2"}}}} }
$ mkdir -m go-rwx nrepl-test $ clj -M:nREPL -m nrepl.cmdline --socket nrepl-test/socket
UNIX domain sockets only run locally and skip additional checks required for network repl connections, so are faster and lighter on resources than TCP/IP sockets
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.