News for hackers. Stuff that matters.
Re:Dotty 0.2.0-RC1 by thechao on Wednesday July 12, 2017 @08:52AM (#14752046)
This is some language; not the graph layout package.
Re:Dotty 0.2.0-RC1 by amelius on Wednesday July 12, 2017 @10:01AM (#14752565)
Re:Dotty 0.2.0-RC1 by hota_mazi on Wednesday July 12, 2017 @08:59AM (#14752097)
It's the new language that the creator of Scala is now working on.
Re:Dotty 0.2.0-RC1 by systems on Wednesday July 12, 2017 @09:17AM (#14752213)
i thought dotty is a new compiler for scala, not a new language

does it break compatibility with current version of scala

Re:Dotty 0.2.0-RC1 by hota_mazi on Wednesday July 12, 2017 @09:20AM (#14752245)
It's a brand new language that looks like Scala but has its own syntax, which is incompatible with Scala's.
Re:Dotty 0.2.0-RC1 by walkingolof on Wednesday July 12, 2017 @09:39AM (#14752410)
No, Dotty is the next generation Scala compiler, the syntax is overwhelmingly compatible, with new features and some breakage.

Just like Go has "gofix", Scala will have "Scalafix", that will automate migration between Scala 2.x (scalac) and Scala 3.x (Dotty)

Re:Dotty 0.2.0-RC1 by AheadOfTime295 on Wednesday July 12, 2017 @12:49PM (#14754111)
Migration problems can be tricky. An umbrella ticket [1] tracks Spark's migration from Scala 2.11 to 2.12

"Tricky" as in [2] "Spark 1.x's Dataset API runs into subtle source incompatibility problems for Java 8 and Scala 2.12"

[1] https://issues.apache.org/jira/browse/SPARK-14220

[2] https://issues.apache.org/jira/browse/SPARK-14643

Re:Dotty 0.2.0-RC1 by felipehummel on Wednesday July 12, 2017 @09:33AM (#14752355)
That's no true at all. The syntax is pretty similar with few key differences. The idea is for dotty to become Scala 3.0. But, in the meantime, the next Scala 2.* versions will pave the way for 3.0. Meaning to avoid too many breaking changes in 3.0.

The above has been said repeatedly by Martin Odersky (creator of Scala) and the folks on the Scala compiler team in talks and discussions.

Re:Dotty 0.2.0-RC1 by hota_mazi on Wednesday July 12, 2017 @12:30PM (#14753921)
Martin has made no guarantee of compatibility or even to supply a Scalafix app. The fact you can do this relatively easily today is just a consequence of Dotty being very young. As it evolves and becomes more complex, there is no guarantee that a translation from Scala to Dotty will even be possible to achieve automatically.
Re:Dotty 0.2.0-RC1 by virtualwhys on Wednesday July 12, 2017 @02:33PM (#14755215)
> Martin has made no guarantee of compatibility or even to supply a Scalafix app

The entire point of scalafix[1](developed by the Scala Center) is to bridge the gap between Scala 2.x and Scala 3/Dotty. Martin talks about it in every Dotty presentation.

[1] https://github.com/scalacenter/scalafix

Re:Dotty 0.2.0-RC1 by thechao on Wednesday July 12, 2017 @09:58AM (#14752541)
I've never heard of dotty-the-language before this morning, but have been a long-time dotty user. I was hoping to help antialias the name collision for others.

On a different note: I've noticed that HN is starting by to develop the drive-by-I-disagree-voting that Reddit has. That's unfortunate.

Re:Dotty 0.2.0-RC1 by tomku on Wednesday July 12, 2017 @10:32AM (#14752803)
I'm sure you meant well, but the way you phrased your post made it sound more dismissive about something you didn't care about than helpful. I think that's a far more likely explanation for the downvotes than "HN becoming more like Reddit".
Re:Dotty 0.2.0-RC1 by thechao on Wednesday July 12, 2017 @10:46AM (#14752935)
On a reread, I see your point.
Re:Dotty 0.2.0-RC1 by merb on Wednesday July 12, 2017 @09:01AM (#14752113)
It is what will become Scala V3 (eventually)