Settings

Theme

Dotty 0.2.0-RC1

scala-lang.org

97 points by darkdimius · 19 comments

Reader

4 threads
egeozcan

Dotty is apparently the "next generation compiler for Scala": http://dotty.epfl.ch/

idyllei

Dotty is a great project to follow on GitHub if you want to take a look at some very high-quality Scala code. [1]

I like to take a look at /compiler/src/dotty/tools/dotc to whet my appetite from time to time [2].

[1] https://github.com/lampepfl/dotty [2] https://github.com/lampepfl/dotty/tree/master/compiler/src/d...

thechao

This is some language; not the graph layout package.

  • amelius
  • hota_mazi

    It's the new language that the creator of Scala is now working on.

    • systems

      i thought dotty is a new compiler for scala, not a new language

      does it break compatibility with current version of scala

      • hota_mazi

        It's a brand new language that looks like Scala but has its own syntax, which is incompatible with Scala's.

        • _lbaq

          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)

        • felipehummel

          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.

          • hota_mazi

            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.

            • virtualwhys

              > 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

    • thechao

      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.

      • tomku

        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".

    • merb

      It is what will become Scala V3 (eventually)

sjrd

Direct link to the announcement: http://scala-lang.org/blog/2017/07/12/second-dotty-milestone...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection