HyREPL icon indicating copy to clipboard operation
HyREPL copied to clipboard

Add option to invoke a plain shell

Open Foxboron opened this issue 10 years ago • 3 comments

Same thing lein repl does. Possibly add a switch so we can have less overhead.

Foxboron avatar Jul 30 '15 06:07 Foxboron

I think there's two ways to do this:

  1. We start a regular Hy Repl that happens to have an instance of HyREPL running in a thread somewhere
  2. We build our own little Repl with readline and pass everything to a HyREPL instance we're running in another process via python-nrepl-client.

I think option 1 is easier to do because we won't have to build ourselves the repl, number 2 somehow feels "cleaner", but I'm not too sure about that...

farhaven avatar Jul 30 '15 15:07 farhaven

I think we should maybe just use python-nrepl-client and try make this self containing. Then we can also use hyrepl to jack into remote session aswell, and that could open up interesting ways to use this project.

On Thu, Jul 30, 2015 at 08:15:05AM -0700, Gregor Best wrote:

I think there's two ways to do this:

  1. We start a regular Hy Repl that happens to have an instance of HyREPL running in a thread somewhere
  2. We build our own little Repl with readline and pass everything to a HyREPL instance we're running in another process via python-nrepl-client.

I think option 1 is easier to do because we won't have to build ourselves the repl, number 2 somehow feels "cleaner", but I'm not too sure about that...


Reply to this email directly or view it on GitHub: https://github.com/Foxboron/HyREPL/issues/25#issuecomment-126367361

Foxboron avatar Jul 30 '15 15:07 Foxboron

That is actually a good point. We'd then simply start a regular HyREPL server and use our fancy little python-nrepl-client using Repl implementation to jack in to that... Yeah, I like that.

farhaven avatar Jul 30 '15 16:07 farhaven