dundalek / closh

Bash-like shell based on Clojure
Eclipse Public License 1.0
1.62k stars 66 forks source link

[QUESTION] Why Clojurescript and not JVM? #66

Closed NightMachinery closed 5 years ago

NightMachinery commented 6 years ago

Why Clojurescript and not JVM?

dundalek commented 6 years ago

I come from js and node background so it is easier for me to hack on. Plus lumo is awesome and it does a lot of heavy-lifting. Basically when I saw lumo I got the idea I could just hack the REPL a bit and got the prototype working.

I think with the new clj tool and clj.main Clojure proper gets more hackable too. It would be a cool exercise to abstract the code and implement platform specific code for JVM support. I would like to have that eventually down the road.

NightMachinery commented 6 years ago

That'd be awesome! JVM Clojure is both faster, more stable, more secure, and has a lot more libraries! 👍🏻

On Thu, Mar 29, 2018 at 5:57 PM, Jakub Dundalek notifications@github.com wrote:

I come from js and node background so it is easier for me to hack on. Plus lumo is awesome and it does a lot of heavy-lifting. Basically when I saw lumo I got the idea I could just hack the REPL a bit and got the prototype working.

I think with the new clj tool and clj.main Clojure proper gets more hackable too. It would be a cool exercise to abstract the code and implement platform specific code for JVM support. I would like to have that eventually down the road.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dundalek/closh/issues/66#issuecomment-377234510, or mute the thread https://github.com/notifications/unsubscribe-auth/Aii--l9Lsly6aFD7oIya8nBTyvj_xb7Mks5tjOEzgaJpZM4S_IbJ .

neominik commented 6 years ago

JVM is faster, but has a lot slower startup time. Waiting 10 seconds for your shell to start up every time would be a no-go for me. Otherwise I would also like to see a JVM version.

dundalek commented 6 years ago

I am hoping that in the future it could be compiled to native code with Graal which should make the startup time be less than a second.

Anyway, the JVM port is in progress in the master branch. It is mostly done, there are just a few issues that need to be ironed out before a release.

zcaudate commented 6 years ago

this is exciting. when will this be out?

dundalek commented 6 years ago

I don't want to give any promises, but it will hopefully be done in a month or so.

dundalek commented 5 years ago

Just FYI here are remaining issues that need to be completed for the JVM integration so that it can be released for v0.3:

zcaudate commented 5 years ago

would it also be possible to have nrepl support?

dundalek commented 5 years ago

@zcaudate What would be the use case for having nrepl?

zcaudate commented 5 years ago

@dundalek: I'd be looking at it as a replacement for lein

zcaudate commented 5 years ago

it'd be essentially like having both the shell and the repl in one.

dundalek commented 5 years ago

@zcaudate I see, it should be possible to include nrepl middleware to start an nrepl server. Could you create a separate issue so we can track it there?

jeroenvandijk commented 5 years ago

I think this can be closed as there is a JVM version now..? 🎉 #87

I'm already playing with it => #92

dundalek commented 5 years ago

I agree. Unfortunately more blocking issues were discovered. There are separate issues opened, I label them with bug and jvm tags.