Fork me on GitHub
#unrepl
<
2017-05-22
>
cgrand13:05:36

@plexus it’s very helpful, thanks!

plexus13:05:25

it's mostly untested since I wasn't sure what else I needed to be able to use it

cgrand13:05:51

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)

cgrand13:05:37

• we have a print.cljc

cgrand13:05:19

• what is missing is a repl.cljs (given the IO differences I’m not sure a repl.cljc is worth it)

cgrand13:05:56

• and the blob gen (which is not high priority since stock socket repls are not upgradeable yet)

cgrand13:05:17

That’s all

plexus18:05:41

@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 cljs-js-repl? > 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?

cgrand19:05:32

Yes and no (well there's an old issue for var bindings).

cgrand19:05:58

However a first step is to prove the value of unrepl to entice @mfikes and @anmonteiro to ship Planck and Lumo with upgradable socket repls.

plexus19:05:03

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

mfikes19:05:05

Yeah, I don’t see any problem with putting something into Planck, once all the stuff has been worked out.

plexus19:05:39

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.

mfikes19:05:16

I think @futuro has been pondering ^

anmonteiro19:05:58

completely agree with @mfikes

anmonteiro19:05:19

happy to incorporate any needed changes to Lumo to support upgradable REPLs

anmonteiro19:05:31

“Upgradable REPLs” is also a really cool term btw

anmonteiro19:05:51

“My REPL is upgradable, what about yours?” 😉

plexus19:05:11

"I was upgrading my REPLs before it was cool"

mfikes19:05:11

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.

plexus19:05:03

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...

mfikes19:05:45

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

cgrand19:05:39

It's sufficient to make Planck supports upgradable repls. (Nitpicking)

cgrand19:05:35

Would you be more comfortable with a google group, a github issue or a wiki?

cgrand19:05:56

(Is the ggroup usenet bridge still active?)

plexus19:05:28

maybe some github issues on the unrepl repo would be good to have. "Lumo support for unrepl", "Planck support for unrepl", etc

plexus19:05:57

from there we can link at whatever branches people are working on and summarize what the current state of things is, blockers, etc

plexus19:05:31

that way you also have somewhere to point people next time someone asks, "hey when is lumo support coming", for example

plexus19:05:43

seems the issue was already there simple_smile

plexus19:05:17

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 cljs.repl/repl?

cgrand19:05:51

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.

plexus19:05:33

what do you mean exactly by a CLJC repl?

plexus19:05:24

(this whole thing reminds me the Lambda Island repl guide is gonna need a serious update :))

cgrand20:05:01

@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.

plexus21:05:32

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

cgrand21:05:59

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

mfikes22:05:06

Wow... a CLJC REPL could be useful when developing portable library code.