News for hackers. Stuff that matters.
Re:Dotty: a next generation compiler for Scala by insulanian on Wednesday June 22, 2016 @09:36AM (#11953759)
What's the chance for this to become a new Python 3 story?
Re:Dotty: a next generation compiler for Scala by premium-concern on Wednesday June 22, 2016 @09:40AM (#11953786)
Zero. People are actively aware of what happened in Python 2/3.

The good thing is that Scala is a typed language, so they can

a) provide tooling for migrating code

b) compile things and get clear information about how much differences there are

I think somebody said that necessary lines of change from Scala 2 -> Scala 3 should be below 0.1% to be acceptable.

Re:Dotty: a next generation compiler for Scala by enlait on Wednesday June 22, 2016 @11:19AM (#11954597)
Oh you. Our codebase uses scala xml and macros; migration will be a major PITA.
Re:Dotty: a next generation compiler for Scala by eugene_burmako on Wednesday June 22, 2016 @02:08PM (#11955799)
Author of Scala macros here. Here's a recent discussion on the future of macros in the brave new world of Dotty: https://www.reddit.com/r/scala/comments/4our5m/keynote_scala....
Re:Dotty: a next generation compiler for Scala by doikor on Wednesday June 22, 2016 @03:33PM (#11956387)
You will most likely get a chance of upgrading your macros into scala.meta before dotty comes out.

Also xml support as the scala-xml library will continue. Though as the xml literals are removed you have to use string interpolation (xml"<your><xml/>here</your>") which isn't as nice to use. (hopefully someone comes up with a nice DSL or something instead)

Re:Dotty: a next generation compiler for Scala by pyrophane on Wednesday June 22, 2016 @12:39PM (#11955196)
By the time this becomes an issue hopefully there will be a library that acts as a drop-in replacement for scala xml, at least.
Re:Dotty: a next generation compiler for Scala by merb on Wednesday June 22, 2016 @02:20PM (#11955897)
You will want to rewrite your macro's soon.
Re:Dotty: a next generation compiler for Scala by jinst8gmi on Wednesday June 22, 2016 @10:01AM (#11953957)
Odersky gave some details of language features being removed for Scala 3 in his talk and it seemed to be really obscure features I don't use anyway.
Re:Dotty: a next generation compiler for Scala by platz on Wednesday June 22, 2016 @10:56AM (#11954396)
Never give 0 for a statistical prediction.
Re:Dotty: a next generation compiler for Scala by rbonvall on Wednesday June 22, 2016 @10:49AM (#11954340)
Python may not be statically typed, but they still have an automated tool for migrating from 2 to 3.
Re:Dotty: a next generation compiler for Scala by jonstewart on Wednesday June 22, 2016 @10:57AM (#11954409)
...which covers only a subset of conversion issues and offers no guarantees.
Re:Dotty: a next generation compiler for Scala by outworlder on Wednesday June 22, 2016 @04:35PM (#11956802)
... and that is different from Scala how?
Re:Dotty: a next generation compiler for Scala by Blaisorblade0 on Friday June 24, 2016 @07:55AM (#11969033)
Unlike Scala, you can't figure out what Python code means correctly and statically — you have little idea what will be called by a function without running the code up to that point, so it's hard to do semantics-preserving refactorings.

But Python changed Strings to use Unicode, and that's something everybody uses and that is insanely hard to refactor automatically even with types.

For Dotty, instead, there are some hard-to-refactor-for changes, but they're in really advanced Scala things, so I expect they'll affect fewer users — mostly the kind of users who can write shapeless-like stuff.

Re:Dotty: a next generation compiler for Scala by lmm on Wednesday June 22, 2016 @12:55PM (#11955331)
How much money are you willing to lay down, at what odds?