News for hackers. Stuff that matters.
Re:What's Next for Scala by trevyn on Saturday April 11, 2020 @11:28AM (#22842159)
>it seemed to peak around 2016

https://trends.google.com/trends/explore?cat=5&date=all&geo=...

Early 2017, perhaps! Are Go and Rust seen as competitors to Scala?

Re:What's Next for Scala by capableweb on Saturday April 11, 2020 @12:43PM (#22842561)
Remember that Google Trends just measures search traffic. Also, handy tip, select "Programming Language" instead of "Term", the graph changes slightly with that: https://trends.google.com/trends/explore?cat=5&date=all&geo=...

Another tip, by default Google Trends just show data from the US, which is not very interesting, select Wordwide to get a better picture: https://trends.google.com/trends/explore?cat=5&date=all&q=%2...

Competitors are hard to say as there would different categories. Some workplaces would only choose a JVM language, then Scala's competitors are Java itself, Clojure and alike.

Go and Rust have mainly been described as "system" languages but they take vastly different approaches from each other.

If you be a bit more specific on what you're compared them on, it'll be easier to know if they are competitors or not.

Re:What's Next for Scala by myko on Saturday April 11, 2020 @12:48PM (#22842600)
I was interested in Scala and used various tools/hacks to build Android apps with it. Very neat language but the pain for building on Android was too much for me - I stopped using Scala around 2016/2017 as Kotlin became viable (and is now extremely well supported) on Android.
Re:What's Next for Scala by ashtonkem on Saturday April 11, 2020 @12:45PM (#22842576)
Depends who Scala was a competitor to.

If you viewed Scala as a competitor to Java, then Go is a competitor to Scala and not Rust; because Go is a competitor to Java in my opinion.

Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @12:51PM (#22842609)
Go is a competitor to Java 1.0, it still needs to grow a bit more if it wants to compete with Java 14 and its 25 years of tooling and libraries.

If Go 2.0 ever happens, it will be a competitor to Java 5.

Re:What's Next for Scala by ashtonkem on Saturday April 11, 2020 @12:57PM (#22842647)
So, it depends on what you’re talking about; language or organizational need.

Go is an imperfect match for Java The language, largely because of the whole Generics thing. But if you’re talking about how teams use Java and Go, they’re a good match now.

Go was designed for large companies like Google to have a huge number of engineers and produce consistent, quality code, all while constantly on boarding people and moving them around. From an organizational perspective there are a ton of Java shops that use Java for similar reasons, plus the ability to cheaply and quickly acquire contractors who know Java.

Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @03:14PM (#22843492)
Both, people comparing Go to Java apparently lack a complete understanding of the Java universe.

If you are talking about doing REST APIs, talking to Postgres in Java 1.0 servlets style code, yeah Go is a replacement for Java.

Except that is like 1% of everything that is currently being done in Java.

Re:What's Next for Scala by twic on Saturday April 11, 2020 @02:52PM (#22843345)
Go is a competitor to Java in that most of the things people do with one, they could do with the other.

As a Java guy, i would agree that Go is not actually competitive with Java. But then, a Go guy would probably say the opposite.

Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @03:11PM (#22843469)
Really? Where are the Go versions of Spring, JEE, Android, Solr, Liferay, Kafka, Gemalto, microEJ, PTC, Aicas, Ricoh, Kyocera, Java Card, VisualVM, JFR, JMX and plenty of other stuff I haven't bothered to type?
Re:What's Next for Scala by AzzieElbab on Saturday April 11, 2020 @03:56PM (#22843782)
You really should not have started with spring and jee
Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @06:41PM (#22844760)
Not understanding why they exist is the first error trying to sell to enterprise.
Re:What's Next for Scala by maddening on Sunday April 12, 2020 @01:34PM (#22849735)
Seeing how .Net is being sold to enterprises without such libraries I would say that they exist because business happily buys into any promise that something increases productivity even if that is just salesmen's lies. But it requires good salesmen not good engineers.
Re:What's Next for Scala by pjmlp on Monday April 13, 2020 @05:18PM (#22860107)
Actually it does have many of those libraries, they just come with a different name, or in commercial only form, without the FOSS variants from Java.
Re:What's Next for Scala by ratherbefuddled on Saturday April 11, 2020 @05:34PM (#22844438)
Avoiding the necessity for libraries like many of these would be a key success criteria for a new language were I judging.
Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @06:43PM (#22844764)
Then don't expect to actually take over Java on the domains it owns.
Re:What's Next for Scala by maddening on Sunday April 12, 2020 @01:30PM (#22849709)
Why Java devs automatically assume that every new language is made to overthrow Java/C#? They might still to provide better development in a particular domain. Go or Python or JacaScript are good at rivaling Java at mainstream language, and so what?
Re:What's Next for Scala by pjmlp on Monday April 13, 2020 @04:08AM (#22853998)
Because that is what the "every new language" crowd keeps selling, without understanding how they got there.
Re:What's Next for Scala by maddening on Sunday April 12, 2020 @01:25PM (#22849661)
I know people who would be sold on NO JEE, NO Spring, NO Hibernate. I am one of them. :)
Re:What's Next for Scala by Gibbon1 on Sunday April 12, 2020 @02:05PM (#22849939)
I have to say if they add generics without type erasure to go then Java is likely in trouble.
Re:What's Next for Scala by pjmlp on Tuesday April 14, 2020 @04:56AM (#22863917)
A language feature alone doesn't replace an ecosystem with 25 years of production experience across platforms that aren't even supported by Go.

After getting generics, Go still needs to offer JFR/JMX/VisualVM like monitoring and dynamic code loading capabilities (Go plugins are very limited), JEE/Spring like Web tooling, Liferay/AEM/Magnolia like CMSs, an OS of its own and real time GC, card chips, M2M hardware gateways, printer enterprise configuration appps, and plenty of other use cases that many on HN seem unaware of its existence in enterprise scenarios.

Re:What's Next for Scala by twic on Saturday April 11, 2020 @04:53PM (#22844139)
Isn't Kyocera, like, a printer company?
Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @06:41PM (#22844756)
Yes it is, and those printers support Java for customised enterprise solutions.
Re:What's Next for Scala by geodel on Saturday April 11, 2020 @06:14PM (#22844635)
Good. Here I was thinking Java 17 to be released in 2021 will be competitor to Go 1.0 when it finally have value types.
Re:What's Next for Scala by pjmlp on Saturday April 11, 2020 @06:39PM (#22844748)
Yeah, meanwhile Gonuts will still be discussing what is the best way to add generics, while it's users on Hacker News keep telling us that it isn't political and there is a working prototype at Google.

So where is the EA for generics like the value types EA I can download today from OpenJDK repository?

Re:What's Next for Scala by pjmlp on Sunday April 12, 2020 @07:46AM (#22847587)
To be fair, apparently this appears to be the current internal prototype, https://go-review.googlesource.com/c/go/+/187317

It still appears quite far from being done in 2021, though.