Needs advice
on
ClojureClojure
and
ScalaScala

Basically, I am looking for a good language that compiles to Java and JavaScript(and can use their libraries/frameworks). These JVM languages seem good to me, but I have no interest in Android. Which programming language is the best of these? I am looking for one with high money and something functional.

Edit: Kotlin was originally on this list but I removed it since I had no interest in Android

READ LESS
6 upvotes·41.2K views
Replies (3)
Senior Consultant at scalac.io·

It's not clear exactly what you mean by "high money", you mean financial support to the language, money paid for a job, economic health of the market the language is positioned on?

In any case, it's very hard to give any advice here, since you'd need to provide details on the intended usage, what sector, kind of product/service, team size, potential customer type... Both languages are very general purpose and decently supported, each have its own pros and cons, both are functional as approach, and neither is really mainstream.

READ MORE
1 upvote·29.5K views
Recommends
on
Scala

Clojure is a Lisp dialect, so if you like Lisp that's probably the way to go. Scala is more popular and broadly used, and has a larger job market especially for data engineering. Both are functional but Scala is more interoperable with Java libraries, probably a big factor in its popularity. I prefer Scala for a number of reasons, but in terms of jobs Scala is the clear leader.

READ MORE
6 upvotes·2 comments·40.1K views
Chris Howe-Jones
Chris Howe-Jones
·
February 17th 2022 at 6:42PM

I would disagree that Scala is more interoperable with java libraries altho it depends. I agree implementing abstract classes if required might be more tricky but simply calling Java is simple.

I've not used Scala.js but JavaScript interop is simple in Clojure and React.js is particularly well supported.

·
Reply
Jean Casteaux
Jean Casteaux
·
September 11th 2022 at 12:40PM

Scala.js interop with JS is amazing too, and there are numerous projects to integrate seamlessly with the React world. For instance: https://slinky.dev/

·
Reply
View all (3)
Avatar of ivanopagano

ivanopagano

Senior Consultant at scalac.io