-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dynamic-loader #214
Comments
need to rethink how to use it in which situations and what value it provides. |
For me the main use case it pretty-straightforward - you bundle all the Clojure deps (e.g. middleware) with the client package and the client loads those when it starts. This eliminates the need for you to craft special Lein/Boot/clj invocations to provide the deps in this manner. More importantly, if the deps are packaged with the plugin, you can inject them in remote connections that you didn't start and that you don't control the dependencies of. This also makes it simpler for other plugins to load their library deps/middleware on the demand, without having to fiddle with the jack-in commands. |
This will be a super useful feature! Especially when iced needs its own middleware in addition to cider-nrepl (which I expect to be found in most places with nrepl). Supporting dynamic middleware loading will make it possible for iced to connect to basically every running nREPL instances. For the downsides, I learned from this article https://lambdaisland.com/blog/2021-11-24-making-nrepl-cider-more-dynamic-2 that sideloading may hurt performance if the nREPL connection is not local. Nevertheless, the ability to connect to running servers without modifying its dependencies would still outweigh the drawback, IMO. After taking a look at iced-nrepl, I also found it's basically independent from other cider-nrepl or nrepl features. So maybe another way to obtain the ability is to make a "proxy" connection, i.e. vim-iced will spawn an iced-nrepl process, which will handle all iced-specific ops locally, and forward everything else to the remote cider-nrepl instance? |
nrepl/nrepl#185
The text was updated successfully, but these errors were encountered: