I'm guessing, since this is a set of sweet.js macros you could mix Ki and Javascript code in the same file. So you could only use the lisp bits when you really needed to.
[Hi, author here] Yes, that is basically the idea. ki functions are js functions, same goes for vars, which makes it easy to jump from js to ki and back, without giving up on immutability, etc. Note that ki is not really intended as a ClojureScript alternative at all. It's more a way to take advantage of its data structures and some of its expressiveness from a pure JS ecosystem.
But it does have a fairly tight integration with clojure, and also uses the JVM-based closure compiler. However, I'd way rather see a clojurescript runtime for v8 than another language "inspired by" clojurescript.
Comments
Why would I want to use this in preference to ClojureScript?
I'm guessing, since this is a set of sweet.js macros you could mix Ki and Javascript code in the same file. So you could only use the lisp bits when you really needed to.
[Hi, author here] Yes, that is basically the idea. ki functions are js functions, same goes for vars, which makes it easy to jump from js to ki and back, without giving up on immutability, etc. Note that ki is not really intended as a ClojureScript alternative at all. It's more a way to take advantage of its data structures and some of its expressiveness from a pure JS ecosystem.
because the jvm is a pain?
ClojureScript is not executed on the JVM.
But it does have a fairly tight integration with clojure, and also uses the JVM-based closure compiler. However, I'd way rather see a clojurescript runtime for v8 than another language "inspired by" clojurescript.
Do you mean a ClojureScript compiler compiled to JavaScript? ClojureScript can be compiled and run in v8 just fine right now.
https://github.com/Bronsa/CinC
when this is done. Some people are working hard on it.
I think he means ClojureScript completely divorced from the JVM, so you don't need a Java infrastructure to develop/compile ClojureScript.
How do you compile clojurescript without the JVM?
V8 already is a ClojureScript runtime, isn't it?