This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-07-29
Channels
- # aleph (45)
- # announcements (13)
- # aws (7)
- # beginners (113)
- # biff (5)
- # cider (15)
- # cljs-dev (1)
- # clojure (101)
- # clojure-europe (38)
- # clojure-madison (1)
- # clojure-norway (9)
- # clojure-uk (4)
- # cursive (7)
- # data-science (2)
- # datomic (6)
- # emacs (31)
- # events (2)
- # fulcro (10)
- # graphql (3)
- # gratitude (1)
- # hyperfiddle (11)
- # nrepl (4)
- # off-topic (110)
- # pathom (57)
- # portal (15)
- # random (1)
- # reitit (3)
- # releases (1)
- # squint (14)
- # xtdb (7)
I’ve been having performance issues in clojure-mode due to font locking. M-x font-lock-mode removed the lag, but I like my colors. Is switching to clojure-ts-mode likely to be a solution to my problem?
clojure-ts-mode is not 100% stable as of today so I'd say it comes with its own set of tradeoffs Classic clojure-mode works well for many people. Is a given file particularly large or nested? Maybe you have many .clj buffers simulatenously open?
Yeah I'd say that's quite exceptionally large. I have some 1.3kloc file and I feel ashamed of it :) (and perceive lag)
Correction, it's 2.2k loc now 😇 I was thinking of splitting it for unrelated reasons - a bit harder than usual for me as I'm currently working with a unusual paradigm.
For a solo project I find working in a single file to be a significant productive boost. It keeps me from getting distracted with modularisation and boundaries and so forth. When it gets messy I just group it into do/comment sections and M-x hs-hide-all. It works for me 😅
what do you do if u look at the 8k LoC [clojure.core](https://github.com/clojure/clojure/blob/master/src/clj/clojure/core.clj) ? just turn off clojure-mode or font lock?
Hmm I tried editing core.clj and it was first at fast. Then when I opened it in more buffers it got slow.
Normally nothing happens that I remember, as one isn't editing that file. At least on my setup it's not font-lock itself that is slow but things like format-on-save or indentation calculation. (jumping to that specific file is also a relatively frequent thing to do, so people would have complained)