practicalli / practicalli/clojure-cli-config

alias: unix socket repl for local dev

Open
#86 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.