Live data from Hacker News

The Road to Scala 3

scala-lang.org

11–20 of 196 posts

Re: The Road to Scala 3

#11
post #5

I switched to clojure for a new job from doing scala for 5 years. I just feel a weight has been lifted off of my head. Weight of syntax, slow compilation, weight of implicits ( some of them are so bad even editors like idea couldn't figure out what is going on). And most importantly the weight of the constant feeling of not being able to fully understand the meaning of endless math terms thrown at me casually like mo…

Does clojure interface well with Java libs?

Re: The Road to Scala 3

#12
post #5

I switched to clojure for a new job from doing scala for 5 years. I just feel a weight has been lifted off of my head. Weight of syntax, slow compilation, weight of implicits ( some of them are so bad even editors like idea couldn't figure out what is going on). And most importantly the weight of the constant feeling of not being able to fully understand the meaning of endless math terms thrown at me casually like mo…

Does clojure interface well with Java libs?

Yes. Very well. https://www.clojure.org/reference/java_interop

Re: The Road to Scala 3

#13
post #2

When I gave up on Scala in 2016, I did so because its future looked fragmented and uncertain. Fast forward more than three years, and the first release of Scala 3 won’t be out until another year from now. Compare this with the pace of development of Go or Rust: those languages are driven by a vision, and have a dedicated team behind them. Scala is declining because no one could figure out for the longest time what wa…

What about kotlin?

Yes, Kotlin seems to me like the future of Java.

Re: The Road to Scala 3

#14
post #2

When I gave up on Scala in 2016, I did so because its future looked fragmented and uncertain. Fast forward more than three years, and the first release of Scala 3 won’t be out until another year from now. Compare this with the pace of development of Go or Rust: those languages are driven by a vision, and have a dedicated team behind them. Scala is declining because no one could figure out for the longest time what wa…

Go is just barely statically typed though, with its lack of generics. Some day soon, it will tacked onto the language; a language that wasn't designed with that in mind.

I don't know about pace, but in absolute terms, Go is far behind even the oldest versions of Scala.

Re: The Road to Scala 3

#15
post #12

Earlier quoted context omitted.

Does clojure interface well with Java libs?

Yes. Very well. https://www.clojure.org/reference/java_interop

Interested but how much as good as with kotlin? Being compatible is one thing, being as idiomatic is another.

Re: The Road to Scala 3

#16
post #12

Earlier quoted context omitted.

Yes. Very well. https://www.clojure.org/reference/java_interop

Interested but how much as good as with kotlin? Being compatible is one thing, being as idiomatic is another.

Define idiomatic. As an example, I find myself using the java.time package quite frequently. An example:

    (ns dev.scratch.time-ex
      (:import
        (java.time Duration)
        (java.util Date)))

    (let [from (Date.)
          until (-> from (.toInstant) (.plus (Duration/ofHours 12)) (Date/from))]
      [from until])
Returns a 2-element vector containing two java.util.Date objects, the second twelve hours in the future of the first. Here I'm using Date, Instant, and Duration classes. It's consistent with Clojure syntax (methods being first items in a list), and remembering to use . or / (roughly for instance or static methods) for calling Java methods. Using something like the thread-first macro (->) is idiomatic Clojure, and it's not my goal to convince you that Clojure syntax and style is better, just that Java is immediately and idiomatically available (from a Clojure point of view).

I find very little friction in using Java directly from Clojure code. I can't speak to comparisons with Kotlin as I have no experience using it.

Re: The Road to Scala 3

#17
post #12

Earlier quoted context omitted.

Yes. Very well. https://www.clojure.org/reference/java_interop

Interested but how much as good as with kotlin? Being compatible is one thing, being as idiomatic is another.

> being as idiomatic

yea kotlin prbly is a better choice if you mainly want to use java's libraries and write idiomatic java.

Clojure is not 'better java' like kotlin, its a completely different paradigm.

Re: The Road to Scala 3

#18
post #2

When I gave up on Scala in 2016, I did so because its future looked fragmented and uncertain. Fast forward more than three years, and the first release of Scala 3 won’t be out until another year from now. Compare this with the pace of development of Go or Rust: those languages are driven by a vision, and have a dedicated team behind them. Scala is declining because no one could figure out for the longest time what wa…

Go is just barely statically typed though, with its lack of generics. Some day soon, it will tacked onto the language; a language that wasn't designed with that in mind. I don't know about pace, but in absolute terms, Go is far behind even the oldest versions of Scala.

That would be missing the point of Go. It’s not as though the Go team is incapable of introducing genetics they just took a hard line on not putting anything into the language that wasn’t absolutely needed. This built a simpler language and because of that a stronger community, which is why Go has all but entirely eaten scalas lunch

Re: The Road to Scala 3

#19
post #4
post #2

When I gave up on Scala in 2016, I did so because its future looked fragmented and uncertain. Fast forward more than three years, and the first release of Scala 3 won’t be out until another year from now. Compare this with the pace of development of Go or Rust: those languages are driven by a vision, and have a dedicated team behind them. Scala is declining because no one could figure out for the longest time what wa…

> Scala is declining And the proof of this is... Where?

Used to write scala, what a mess looking back on it now. Everyone I know that was writing it is now writing Go/Kotlin/Elixer

Re: The Road to Scala 3

#20
post #5

I switched to clojure for a new job from doing scala for 5 years. I just feel a weight has been lifted off of my head. Weight of syntax, slow compilation, weight of implicits ( some of them are so bad even editors like idea couldn't figure out what is going on). And most importantly the weight of the constant feeling of not being able to fully understand the meaning of endless math terms thrown at me casually like mo…

A while back i was happily writing clojure, but after a while its dynamic typing got problematic and that's when I learned scala. I really liked it, I think functional but statically typed is the way to go.

Although I still think that it is a lot of fun to write clojure, it's a breeze with its focus on stateless, functional code.

I tried to get into writing a GraphQL API in scala once, and the library made excessive use of the implicit parameters. That was too much for me, there was always something missing and it wasn't immediately apparent where things are taken from or why something doesn't work in one place but does in another.

Post reply on HN