Fork me on GitHub
#cider
<
2022-09-22
>
Panel09:09:02

Could cider-result keep history ? When I use cider-pprint-eval-last-sexp I wish to keep the previous result.

pmooser11:09:31

It used to work for me, but using cider-connect-cljs in my project results in a parsing error from parseclj ... What is it even trying to parse ?

pmooser11:09:41

Ah, maybe my shadow-cljs file?

pmooser11:09:14

Yup, this was it. I had introduced a syntax error that bugged cider but didn't bug shadow-cljs itself.

nixin7213:09:11

Hi, is there a way to get CIDER to cache compilation or to AOT the code and then just have CIDER redefine the small handful of things I'm working on? I'm working on a very large project (100k+ LoC) and starting the REPL can take upwards of 3 minutes. Having an older computer I like to stop my REPL when I'm not working on this code because it takes a large amount of memory, so I need to start and stop my REPL several times a day.

vemv16:09:20

I'd say this guide applies https://clojure.org/guides/dev_startup_time ...I use my own, more automated variation of it . I'd say the official way is a bit manual However, when applied+understood carefully, it should be a good gain

vemv16:09:10

It also can be a good idea to avoid as many requires as possible in user.clj If you have "dev niceties" over there, prefer a delayed requiring-resolve to a require

vemv16:09:27

And last but not least, it is very customary under clj/emacs/lisp tradition to have repl sessions that last days (weeks, for the most hardcore users) :) Worth the hammock if your workflow is excessively "stateless"

nixin7213:09:00

I totally get that a lot of people like to leave REPL sessions running for a very long time, and I used to with smaller projects, I just can't with such a large application, it takes too much memory on my old computer

nixin7213:09:41

Thank you though, I'll take a look at the link and see what I can do

vemv13:09:29

👀 how much memory are we talking about?

nixin7213:09:58

2-3gb on an 8gb machine

nixin7213:09:54

Plus LSP is using an extra 1.5gb of memory

nixin7213:09:00

So I just close Emacs entirely

vemv13:09:43

yeah honestly 8gb is peanuts 😅 and running cider and lsp has its cost I'd recommend to use a machine up to the job you're doing - human time is more valuable than material costs :) i.e. it will avoid hacking/headaches.

nixin7213:09:46

I don't disagree, I just don't want to dish out for a new computer yet. I've spent too much the past few months as is! 😅