News for hackers. Stuff that matters.
Re:Rhine – A Lisp on LLVM by zura on Saturday September 06, 2014 @06:03AM (#8277951)
Isn't JVM and Java libraries (i.e. "batteries") the one of the main selling points of Clojure?
Re:Rhine – A Lisp on LLVM by exDM69 on Saturday September 06, 2014 @08:49AM (#8278222)
> Isn't JVM and Java libraries (i.e. "batteries") the one of the main selling points of Clojure?

Yeah, but that only appeals to the people who are already committed to the JVM (or .NET), and that is a shrinking population. There's a whole layer of complexity to deal with managed code and OOP languages and there's a bit of a impedance mismatch between a Lisp and a Java-style library and the VM itself.

For people working with native code or otherwise not in the JVM ecosystem, Clojure is not really ideal.

Re:Rhine – A Lisp on LLVM by pjmlp on Saturday September 06, 2014 @09:35AM (#8278312)
> Yeah, but that only appeals to the people who are already committed to the JVM (or .NET), and that is a shrinking population.

Looking at the enterprise world, I would say it is still growing.

Re:Rhine – A Lisp on LLVM by exDM69 on Saturday September 06, 2014 @10:34AM (#8278427)
The enterprise world isn't exactly known for adopting new languages, JVM or not JVM.

But you could provide some kind of source if you disagree, all the statistics I've seen have had Java and JVM languages in a steady downward slope for the past five years or so.

Re:Rhine – A Lisp on LLVM by threeseed on Sunday September 07, 2014 @07:00AM (#8280763)
Couldn't disagree more. I work in the enterprise space and there are plenty of companies using Groovy, Scala, Clojure as well as Python/Ruby on the JVM.

I know it's anecdotal but what platform do you actually think enterprises are using ? Companies are looking for cheaper options so .Net isn't exactly on fire.

Re:Rhine – A Lisp on LLVM by vorg on Sunday September 07, 2014 @05:49PM (#8282540)
> there are plenty of companies using Groovy, Scala, Clojure as well as Python/Ruby on the JVM

Jython would be by far the least used of those alternatives, whereas Scala the most used. Clojure's coming up strong, JRuby's making slow inroads, Kotlin's getting some traction at Ceylon's expense, whereas Groovy's on the slide.

Re:Rhine – A Lisp on LLVM by pjmlp on Sunday September 07, 2014 @09:32AM (#8281062)
> Companies are looking for cheaper options so .Net isn't exactly on fire.

I work with Fortune 500 companies that have 100% Microsoft stacks.

MSDN yearly licenses are a drop in the ocean in these companies.

Re:Rhine – A Lisp on LLVM by pjmlp on Saturday September 06, 2014 @12:11PM (#8278667)
The source is the projects my employer gets and I cannot disclose.

It is a international consulting company that does large IT projects, mostly multi-site. You can imagine the possible candidates.

We only get JVM (only Java) and .NET (C# / VB.NET) requests for proposals for greenfield projects. Any other platform requests tend to be pure data spikes.

Re:Rhine – A Lisp on LLVM by pjmlp on Saturday September 06, 2014 @06:23AM (#8277982)
Clojure also targets JavaScript and .NET as targets.

One of the selling points of Clojure is that it embraces the libraries of the targeted eco-system.

The Clojure community has some time ago discussed addeding conditional support, to be able to build common libraries across multiple runtimes. Similar to what Common Lisp offers.

Re:Rhine – A Lisp on LLVM by Tloewald on Saturday September 06, 2014 @10:27AM (#8278410)
Doesn't targeting LLVM get you this kind of flexibility "for free"?
Re:Rhine – A Lisp on LLVM by exDM69 on Saturday September 06, 2014 @11:58AM (#8278625)
Yes and no. It can help with different target backends (including JavaScript, not sure about JVM or .NET) but you still have to do work to make sure that the calling conventions of your language and the target's match.
Re:Rhine – A Lisp on LLVM by Tloewald on Saturday September 06, 2014 @02:41PM (#8279096)
Sure, but AFAIK many/most of the "supports Javascript" languages out there rely on emscripten, so LLVM is involved anyway. By its nature, LLVM gives you more flexibility in the long term than VMs that were intended as a final destination.
Re:Rhine – A Lisp on LLVM by exDM69 on Monday September 08, 2014 @04:19AM (#8283829)
> Sure, but AFAIK many/most of the "supports Javascript" languages out there rely on emscripten, so LLVM is involved anyway.

Yes, yes. LLVM definitely helps here. But it doesn't come "for free", which is what the GP post asked. You still need some "glue" code to make it work.