This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aws (5)
- # bangalore-clj (3)
- # beginners (84)
- # boot (31)
- # carry (1)
- # cider (6)
- # cljsrn (7)
- # clojure (188)
- # clojure-conj (1)
- # clojure-dev (3)
- # clojure-dusseldorf (8)
- # clojure-greece (10)
- # clojure-italy (7)
- # clojure-nl (3)
- # clojure-russia (45)
- # clojure-spec (5)
- # clojure-uk (64)
- # clojurescript (83)
- # clr (9)
- # core-async (45)
- # cursive (55)
- # datomic (8)
- # devops (1)
- # emacs (7)
- # graphql (1)
- # hoplon (3)
- # jobs (1)
- # jobs-discuss (37)
- # lein-figwheel (3)
- # leiningen (4)
- # luminus (6)
- # off-topic (5)
- # om (2)
- # onyx (33)
- # pedestal (13)
- # re-frame (9)
- # reagent (28)
- # rum (15)
- # specter (4)
- # unrepl (38)
- # vim (3)
Let’s summarize the self-hosted cljs situation: • stock repls (lumo or planck) can’t be upgraded BUT using https://github.com/cgrand/cljs-js-repl one can have a server socket upgradable repl (maybe one day it could be the default socket repl for both — wishful thinking)
• what is missing is a repl.cljs (given the IO differences I’m not sure a repl.cljc is worth it)
• and the blob gen (which is not high priority since stock socket repls are not upgradeable yet)
@cgrand thanks, that's very helpful to get a bit more of the big picture
> Upgrading a stock cljs (self hosted) repl requires more work. I have one working with both lumo and a branch of Planck.
Is this referring to
> I'd like it to go upstream but some issues with var bindings must be solved first.
Is there an issue somewhere for this that people can keep an eye on?
to me the selling point of unrepl is that it allows smart tooling (a la cider) without the need for nrepl. I would like to work on good Emacs and Atom integration of Lumo and/or Planck, and use that as a basis for some introductory level educational material
Yeah, I don’t see any problem with putting something into Planck, once all the stuff has been worked out.
it's either that, or porting nrepl-server to bootstrapped clojurescript. It seems no one is super keen to take that on, and I can understand why. I appreciate nrepl a lot, but I think it could be a bit overengineered.
Lumo and Planck are like twin siblings in that they essentially support all of the same command line options, etc. They could likely support Unrepl in a similar fashion.
it's times like these I really miss an old fashioned mailing list with longer form discussion. It's so much harder to piece together a coherent story from chat history... what's the situation? what needs to happen? etc...
Planck: I need to finish off fundamental socket support. This branch https://github.com/mfikes/planck/tree/sockets is sufficient to to make
Unrepl upgradeable REPLs work https://gist.github.com/mfikes/e44cf07e8217db2112facf90b550ab74
maybe some github issues on the unrepl repo would be good to have. "Lumo support for unrepl", "Planck support for unrepl", etc
from there we can link at whatever branches people are working on and summarize what the current state of things is, blockers, etc
that way you also have somewhere to point people next time someone asks, "hey when is lumo support coming", for example
For regular (non bootstrapped) ClojureScript, how would unrepl work there? I don't suppose you'll ever be able to upgrade a CLJS repl (or?), but I imagine you would upgrade a Clojure (un)repl to a CLJS unrepl. Possibly by providing a custom
Never say never. (My work on upgradable self-hosted repl made me realize an upgradable CLJS repl would be possible – not with major changes to how repls work at the moment.) Still I don't think it's the fastest way to get unrepl in the browser. Your general plan is ok (upgrade from CLJ) but to me the target is a CLJC repl.
(this whole thing reminds me the Lambda Island repl guide is gonna need a serious update :))
@plexus maybe I'm insane but I'm thinking of a repl that when you type (+ 2 2) you get 4 twice (once from clj, once from cljs – which may be not be that confusing given unrepl tagged outputs) and of course you can use conditional readers.
I'm not sure I'm convinced of the usefulness of evaluating things twice, but a repl that could eval clj and cljs expressions would be very useful for tooling, and get rid of some of the unnecessary complexity you have now when using cider with cljs
Either you have two repls or a modal (switching) repl or a cljc repl (where the switch is controlled form by form using conditional readers). The last one is maybe not that bad. I'm still pondering this stuff