News for hackers. Stuff that matters.
Re:Is Clojure dying, and what has Ruby got to do with it? by swannodette on Thursday May 25, 2017 @03:58PM (#14419716)
I don't really have anything to say about your other points, but the only comparable compile-to-JS tech in your list to ClojureScript is Scala.js. The other options assume you don't see significant value in using the same programming idioms across client and server.
Re:Is Clojure dying, and what has Ruby got to do with it? by virtualwhys on Thursday May 25, 2017 @04:32PM (#14419937)
The point is that most server languages these days compile to javascript. OCaml has Bucklescript, Haskell has GHCJS, Kotlin and Rust compile to JS, etc.

Clojurescript and Scala.js are probably the most mature, but getting developers to make the switch when their server language is not Clojure or Scala is an uphill battle. Case in point: I find Bucklescript to be absolutely amazing (generated binaries on par with size of hand written JS) but Scala.js is a better fit since I've been writing Scala for 6 years.

Re:Is Clojure dying, and what has Ruby got to do with it? by swannodette on Thursday May 25, 2017 @04:38PM (#14419964)
That's exactly what I'm saying. You don't choose ClojureScript or Scala.js haphazardly, you're already using Clojure or Scala. Thus it doesn't make sense to lump them into choices that are primarily client-centric like Elm or PureScript.
Re:Is Clojure dying, and what has Ruby got to do with it? by amelius on Friday May 26, 2017 @04:07AM (#14422640)
Also, WASM is just around the corner, which will probably make this a non issue.
Re:Is Clojure dying, and what has Ruby got to do with it? by lilactown on Thursday May 25, 2017 @05:52PM (#14420434)
As someone who chose ClojureScript over many of the other compile-to-JS languages without using Clojure on the server, I disagree.

Especially if ClojureScript could become more attractive than (or at least have a real solid standing amongst) Elm/PureScript/etc., I could see that being a big boon to Clojure development as well.

Re:Is Clojure dying, and what has Ruby got to do with it? by spiralganglion on Friday May 26, 2017 @12:58PM (#14425501)
With CLJS on Node booting up as fast as it does, I can envision a world where CLJS is vastly more popular than CLJ, since it's able to deliver a class of experience prohibited by the slow JVM startup. All the other common criticisms are shared by both CLJ and CLJS, so there's a chance that, eventually, CLJ only has the startup time as a knock against it, and CLJS has no such shortcomings. (Ignoring, of course, "Lisp is weird".. don't get me started.)

That all said, I think all 'piles-to-JS language bets are off in the face of WASM.

Re:Is Clojure dying, and what has Ruby got to do with it? by dragandj on Friday May 26, 2017 @03:52PM (#14426676)
There are also things that clj has and cljs doesn't have and this is the top-class virtual machine. lots of us really appreciate JVM, and are not impressed at all by node, and especially its ecosystem.
Re:Is Clojure dying, and what has Ruby got to do with it? by spiralganglion on Wednesday May 31, 2017 @01:13AM (#14450556)
That just depends on your background. For a bunch of us folks who come from a non-JVM background, we could say the same about Java. Really, Java and JS are the two biggest language communities in the world, with phenomenal feats of engineering in their runtimes, and a whole host of things to complain about. Since CLJ and CLJS are tied in this regard, I still think the startup time is the only differentiable factor in my proposed hypothetical future.
Re:Is Clojure dying, and what has Ruby got to do with it? by ledgerdev on Saturday May 27, 2017 @03:35AM (#14429284)
So nice to hear someone else say this, and I feel the same about CLJS.

And yeah WASM is looking pretty promising (threads/gc/efficiency), and a CLJ like language that targets it directly would be so interesting for the very long term future.

Re:Is Clojure dying, and what has Ruby got to do with it? by spiralganglion on Wednesday May 31, 2017 @01:09AM (#14450541)
To the best of my knowledge, there's no GC in WASM.
Re:Is Clojure dying, and what has Ruby got to do with it? by dragonwriter on Thursday May 25, 2017 @04:11PM (#14419788)
While not on the list above, there are certainly others like Opal (Ruby in js)
Re:Is Clojure dying, and what has Ruby got to do with it? by nurettin on Friday May 26, 2017 @12:47AM (#14422052)
I've used Opal for client-side validation of a server-side game's rules. (player makes a move on the client, game rules are played out, just the move is sent to server and server plays the same move again using the same game class)

That said, it wasn't a breeze to work with. The compiled object's properties were hard to access. I actually had to serialize it to json