This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-17
Channels
- # aws (16)
- # beginners (82)
- # boot (29)
- # cider (43)
- # cljs-dev (90)
- # cljsrn (14)
- # clojure (79)
- # clojure-dev (12)
- # clojure-greece (4)
- # clojure-italy (12)
- # clojure-russia (81)
- # clojure-shanghai (1)
- # clojure-spec (39)
- # clojure-uk (28)
- # clojurescript (159)
- # consulting (1)
- # cursive (16)
- # data-science (6)
- # datomic (18)
- # devops (3)
- # emacs (22)
- # figwheel (1)
- # graphql (15)
- # hoplon (3)
- # jobs (1)
- # jobs-discuss (8)
- # leiningen (1)
- # luminus (6)
- # lumo (1)
- # off-topic (18)
- # om (6)
- # onyx (38)
- # pedestal (30)
- # perun (3)
- # re-frame (38)
- # reagent (8)
- # ring-swagger (2)
- # rum (2)
- # sql (2)
- # unrepl (14)
- # untangled (1)
- # vim (8)
saavik.unification> (time (def v (vrange 1000000)))
"Elapsed time: 71.227628 msecs"
#'saavik.unification/v
saavik.unification>
make sure not to eval the `vrange 10000..) as this will print to the repl and that will get really nasty
saavik.unification> (time (def v2 (vrange2 1000000))) "Elapsed time: 45.889161 msecs" #'saavik.unification/v2
Weird? How to debug this issue?
No, I ue (def v (vrange 1000000))
.
I have (set! *print-length* 20)
in REPL.
Both Emacs and Leiningen are running. Can't type in code.
lein repl
, then cider-connect
.
I pressed [C-c]
in Lein repl, now typed your code.
No responding.
but we aren't touching CIDER, so it can't be a problem with that, if i'm understanding the situation correctly
Well, Maybe I need to debug this http://deeper.Do you know know to debug this?
Ok, bye, thanks.
I used to use CIDER's apropos to search, but don't know hot to specify the regexp pattern. Does anybody knows this? For example I want to apropos search string in function name and function docstring by regexp matching "first n". Then what should I type in CIDER doc apropos prompt?
after a long running repl session, the buffer itself is becoming slow and I don’t really care about output that happened days ago
hans: You mean cider-repl-clear-output
, C-u C-c C-o
? By default, C-c M-o
is cider-repl-switch-to-other
Oh, yes. C-c M-o
was the default binding in an ancient cider release and I've come to grow accustomed to it:
(add-hook 'cider-repl-mode-hook
'(lambda ()
(define-key cider-repl-mode-map (kbd "C-c M-o") 'cider-repl-clear-buffer)))
tatut: CIDER does not use comint
, it’s derived from SLIME’s custom REPL.
https://github.com/slime/slime
i think bbatsov has wanted more comint features for a while. and there's some inclination on his part to switch to a comint buffer but it would be a lot of work
I decided I don’t want to use comint at all. You get some things for free, but you also get a lot of limitations.
We’ve mostly been suggesting the use of Clojure’s own truncation mechanisms, but if people want something CIDER specific - that’s an option.
bozhidar: truncation applies to output for a particular expression; @tatut is talking about the REPL buffer specifically
Yeah, I get this. Btw, it’s easy to have different value for Clojure’s truncation for the REPL and source buffers. We just haven’t implemented something like this.
Oh, yes. C-c M-o
was the default binding in an ancient cider release and I've come to grow accustomed to it:
(add-hook 'cider-repl-mode-hook
'(lambda ()
(define-key cider-repl-mode-map (kbd "C-c M-o") 'cider-repl-clear-buffer)))