r/Clojure • u/oakes • Oct 09 '16
Nightlight: An embedded editor for Clojure
https://sekao.net/nightlight/7
6
u/hagus Oct 09 '16
This is amazing, I can't wait to try it! It could be the figwheel for straight Clojure.
7
u/hagus Oct 09 '16
Some of my impressions so far. If you would like these as github issues I'll paste 'em there too.
it loaded up on first try with leiningen, although the browser didn't auto-open, which for some reason I expected. A one-line addition to profiles.clj to kick all this off is very impressive :)
normally from a REPL I would just switch to my core namespace and run (-main), but this produces a bunch of unresolved symbols. Because I'm doing a lot of Java interop, I rely on AOT class generation and those classes don't seem to be visible. I haven't investigated why yet, but maybe you're bypassing some class loading leiningen would have otherwise done?
I literally have no idea how to drive this thing … even a straight up list of keyboard shortcuts would be useful. How do I evaluate a sexp? How do I structurally edit (parinfer only?) How do I navigate in the completions list without using the pointer? I know I can read the source code to discover this, but even emacs doesn't have this problem ;)
Really looking forward to your continued work here, I'm super excited for this project!
3
u/zcaudate Oct 11 '16
are there plans to add customisable outputs... something like gorilla-repl with plots and maps?
2
u/Borkdude Oct 10 '16
This is cool! The feature I miss most is C-x C-e (cider-eval-last-sexp) from emacs/cider. Note that another web based Clojure IDE has been in existence for 4.5 years already: https://github.com/bodil/catnip, although that one doesn't seem maintained.
2
u/webappzero Oct 10 '16
I really enjoy the feeling of being inside the code that a smalltalk image provides. This reminds me a bit of Cloxp which I'm also a big fan of. Thank you for creating this!
1
1
u/seanirby Oct 10 '16
Did you build Nightlight in Nightlight?
0
Oct 10 '16
[deleted]
2
u/seanirby Oct 11 '16
That is so cool.
That means you could wrap this in a web app enabling you to interactively build Clojure projects sorta like HyperDev(but with a much better editor)
1
u/salman1567 Oct 11 '16
Aesthetically is very impressive and looks much like atom when you first start. Being an emacs user I am really fond of my key bindings and if there is any way to bring in emacs key bindings into the web browser so that they work on nightlight that would be game changing and definitely see myself using it.
15
u/fingertoe11 Oct 09 '16
That looks pretty stinkin' cool.. Especially for showing it off to new folks.