advenjure icon indicating copy to clipboard operation
advenjure copied to clipboard

consider dropping Clojure (target only ClojureScript)

Open facundoolano opened this issue 8 years ago • 4 comments

The engine was written for Clojure because that was what I was learning at the time, but it feels like 99% of the time a user of this library will want to target primarily or exclusively the browser, because who wants to install clojure and play from the terminal?

Even while the conditional code was reduced a lot, removing reader conditionals in the requires alone would improve the readability of the code a lot.

Also, the project will become simpler and development process easier; I imagine new opportunities for improvement will become apparent once we start targeting a single host.

Obviously, unit tests and a better development workflow (i.e. better hot reloading without having to restart the game, fix whatever makes the figwheel repl unresponsive from time to time, etc.).

If you are reading this and think dropping terminal support is a bad idea, please chime in!

facundoolano avatar Oct 26 '17 15:10 facundoolano

Not saying you shouldn't drop terminal support, but it can compile to a .jar file which can be run so long as you have the java runtime installed (which pretty much everyone does)

Gman98ish avatar Oct 27 '17 12:10 Gman98ish

If you are a developer then yes, you probably have jre (although I know devs that specifically avoid to have it). But you generally want non developers to play your game as well.

facundoolano avatar Oct 27 '17 12:10 facundoolano

A game can be compiled with GaalVM and it will not require jre.

ghost avatar May 02 '19 00:05 ghost

You can drop Clojure (JVM) support and still have real terminal support if you also target Nodejs

I think it's not a bad idea to consider CLJS only

jprudent avatar Oct 07 '21 09:10 jprudent