Skip to content

[Discussion] REPL vs IDE #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
gracjan opened this issue Aug 9, 2015 · 11 comments
Closed

[Discussion] REPL vs IDE #809

gracjan opened this issue Aug 9, 2015 · 11 comments

Comments

@gracjan
Copy link
Contributor

gracjan commented Aug 9, 2015

We feel that there are two important use cases for a running Haskell interpreter process:

  1. REPL-based: load/reload only on command, any interactive command allowed, interpreter window interacts with the user
  2. IDE-based: load-on-save/visit, -Wall by default for warning overlays, interacts with user only with predefined set of commands, results are parsed and presented

The discussion was spawned by @deepfire comment: #795 (comment).

Lets discuss this avenue here.

@gracjan
Copy link
Contributor Author

gracjan commented Aug 17, 2015

We have a bit more information:

DanielG/ghc-mod#544

In this case we should settle for the following:

  1. ghc-mod serves the IDE-mode workflow
  2. ghci serves the REPL-mode workflow

@deepfire
Copy link
Contributor

Does this mean we will have two haskell processes running?

@gracjan
Copy link
Contributor Author

gracjan commented Aug 17, 2015 via email

@DanielG
Copy link

DanielG commented Aug 17, 2015

I'm planning to add interactive code evaluation support to ghc-mod so then both of these would happen at the same time. In ghc-mod we first need to add server-client RPC support though as this would have to run as a separate process probably.

@gracjan
Copy link
Contributor Author

gracjan commented Aug 17, 2015 via email

@alanz
Copy link
Contributor

alanz commented Aug 17, 2015

I think if the right/separate comms channels are established between the ide and ghc-mod this shouldn't be a problem, even if it is one physical channel with streams multiplexed onto it.

@gracjan
Copy link
Contributor Author

gracjan commented Aug 17, 2015 via email

@DanielG
Copy link

DanielG commented Aug 17, 2015

The problem is that the memory consumption of a single ghci process is already insane in the right project and running ghc-mod and ghci at the same time is just a huge waste.

@gracjan
Copy link
Contributor Author

gracjan commented Aug 17, 2015 via email

@acowley
Copy link

acowley commented Aug 17, 2015

I'd definitely like it to be one process, but it should of course be a top priority to avoid hanging the editor.

@DanielG is there are branch where you are working on the design of adding interactive evaluation to ghc-mod?

@gracjan gracjan changed the title REPL vs IDE discussion [Discussion] REPL vs IDE Aug 30, 2015
@gracjan
Copy link
Contributor Author

gracjan commented Jan 27, 2016

Looks like HIE is better forum to discuss this.

@gracjan gracjan closed this as completed Jan 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants