4 ms·
Not trying to convince anyone, but if someone is already using Clojure with Emacs (which the annual survey seems to suggest is the most common case): those are
by lvh 7y ago
Not trying to convince anyone, but if someone is already using Clojure with Emacs (which the annual survey seems to suggest is the most common case): those are all features you get with CIDER + clj-refactor as well. If you use spacemacs, I think they mostly just work out of the box if you turn on the Clojure layer (and maybe turn on clj-refactor -- I forget if that's an option or a default now).
- pjmlp 7y agoCan it also display graphical representations of data structures, notebook style like Lisp Machines and commercial Common Lisps?
- lvh 7y agoThat's not one of the features GP enumerated, but, yes, there are lots of flavors of accomplishing that while using CIDER. The two most common ways I've seen people accomplish something like that is probably Clojure's builtin inspector functionality and CIDER's general ability to display any kind of image (which conveniently lets it do stuff like plotting as well). If your focus is on the permanence and documentation aspect of the notebook experience, you're probably going to be happier with ob-clojure or Gorilla REPL. If your focus is on the exploratory part, you're probably going to be happier with REBL, or if you really want everything inside an emacs buffer you might do that with walmartlabs' datascope. I do everything with cider-inspect because I don't find the graphical visualization that valuable -- most of my data structures are too large so I ~always end up writing a specter query ~immediately. All of this is for Clojure specifically. If you're writing in-browser apps you'll probably like frisk (through re-frisk or data-frisk), where you can do this stuff right in your browser next to the app: http://odinodin.no/x/datafrisk/ http://odinodin.no/x/datafrisk/ https://github.com/flexsurfer/re-frisk https://github.com/flexsurfer/re-frisk -- but that's not technically in CIDER, though you can certainly use it from CIDER.
- pjmlp 7y agoThanks for the overview.
- robto 7y agoThe Datafy[0] protocol can be implemented for literally anything, and some people have made some pretty nice pretty printers for it, like Rebl[1] [0]https://clojure.github.io/clojure/clojure.datafy-api.html https://clojure.github.io/clojure/clojure.datafy-api.html [1]https://github.com/cognitect-labs/REBL-distro https://github.com/cognitect-labs/REBL-distro
- pjmlp 7y agoThanks.