News for hackers. Stuff that matters.
Re:Ki – A lisp for your JavaScript by oweiler on Monday June 16, 2014 @04:31AM (#7897919)
Why would I want to use this in preference to ClojureScript?
Re:Ki – A lisp for your JavaScript by weavie on Monday June 16, 2014 @06:46AM (#7898267)
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.
Re:Ki – A lisp for your JavaScript by lantiga on Monday June 16, 2014 @08:08AM (#7898568)
[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.
Re:Ki – A lisp for your JavaScript by sunkencity on Monday June 16, 2014 @04:42AM (#7897948)
because the jvm is a pain?
Re:Ki – A lisp for your JavaScript by jhh on Monday June 16, 2014 @05:02AM (#7897996)
ClojureScript is not executed on the JVM.
Re:Ki – A lisp for your JavaScript by adambard on Monday June 16, 2014 @05:55AM (#7898132)
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.
Re:Ki – A lisp for your JavaScript by vmind on Monday June 16, 2014 @10:22AM (#7899178)
Do you mean a ClojureScript compiler compiled to JavaScript? ClojureScript can be compiled and run in v8 just fine right now.
Re:Ki – A lisp for your JavaScript by leishulang on Monday June 16, 2014 @12:44PM (#7899979)
https://github.com/Bronsa/CinC

when this is done. Some people are working hard on it.

Re:Ki – A lisp for your JavaScript by SkyMarshal on Monday June 16, 2014 @07:01PM (#7901969)
I think he means ClojureScript completely divorced from the JVM, so you don't need a Java infrastructure to develop/compile ClojureScript.
Re:Ki – A lisp for your JavaScript by integraton on Monday June 16, 2014 @12:38PM (#7899948)
How do you compile clojurescript without the JVM?
Re:Ki – A lisp for your JavaScript by chc on Monday June 16, 2014 @02:10PM (#7900537)
V8 already is a ClojureScript runtime, isn't it?