Skip to content
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

Rewrite the Alda REPL as part of the Java client #154

Closed
daveyarwood opened this issue Dec 25, 2015 · 1 comment
Closed

Rewrite the Alda REPL as part of the Java client #154

daveyarwood opened this issue Dec 25, 2015 · 1 comment

Comments

@daveyarwood
Copy link
Member

daveyarwood commented Dec 25, 2015

Right now, alda repl just uses Java-Clojure interop to run (alda.repl/start-repl!) which means you have to wait for the Clojure runtime to load, the MIDI system to initialize, and a new Alda score to be initialized.

The REPL is really just an interactive version of the Alda client, so now that we have a client, I think we should re-implement the Alda REPL in terms of the client. This would carry two major benefits:

  1. Immediate start-up, no waiting for the Clojure runtime.
  2. You would be interactively editing Alda scores running on existing servers. This would give you the flexibility to go back and forth between editing scores on the command-line (in your editor, etc.) and hopping into the Alda REPL to edit the same score.

Hopefully this won't be too difficult. The Alda client already does most of the things we need the REPL to do, and most of them are functions in the AldaServer class. Basically we'll just be translating the JLine interface into Java and have it call functions in the AldaServer class.

@daveyarwood
Copy link
Member Author

Moved to alda-lang/alda-client-java#1.

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

1 participant