Re:Eclipse launches new language to cut down Java boilerplat...
by DanielRibeiro on Friday November 04, 2011 @07:30PM
(#3198192)
It is also great for using with Android/GWT. Scala can be both used with Android[1] and GWT[2], but it is not a walk in the park.
It seems like a great gateway drug for Scala.
Re:Eclipse launches new language to cut down Java boilerplat...
by Dn_Ab on Saturday November 05, 2011 @12:01AM
(#3198872)
I agree. I use Scala for a personal Android app. Once you get over the antbuild and proguard hurdle - agree its no walk in the park - its smooth sailing. Scala meshes well with the android libraries and is fast. Although it gets highly wonky if you need to add a library that is not a jar but instead a package.
The major downsides which are super troublesome are that it takes 2 minutes to build each time - even for trivial changes and I have to debug the old school way with messages.
Re:Eclipse launches new language to cut down Java boilerplat...
by marcmarc on Saturday November 05, 2011 @11:11AM
(#3199902)
You can speed up the build time a lot by preinstalling Scala on the phone or emulator. This will allow you to skip the Proguard step. Here's how you do it http://zegoggl.es/2011/07/how-to-preinstall-scala-on-your-an...
Re:Eclipse launches new language to cut down Java boilerplat...
by lemming on Friday November 04, 2011 @06:45PM
(#3198017)
One of the nice things about compiling to Java source is that it allows you use it with GWT. The only downside that I can see is that there might be constructs that you can't express in Java that you would want in a new language (note that you're fine with ones that you can technically express in Java but are just ugly, like closures). There are probably not very many of them, though.
Re:Eclipse launches new language to cut down Java boilerplat...
by DanielRibeiro on Friday November 04, 2011 @07:21PM
(#3198154)
Well, scala can be used with gwt: https://github.com/scalagwt
It was documented on scala, page, but now you have to use the google cache to see this: http://webcache.googleusercontent.com/search?q=cache:wqqu7uQ...
Re:Eclipse launches new language to cut down Java boilerplat...
by CarlSmotricz on Sunday November 06, 2011 @12:43PM
(#3203269)
Exciting! Thanks for the link.
Re:Eclipse launches new language to cut down Java boilerplat...
by bunderbunder on Friday November 04, 2011 @06:59PM
(#3198086)
I didn't notice any mention of taking care of the primitive/object divide. That would be high on my wish list.
Re:Eclipse launches new language to cut down Java boilerplat...
by baddox on Saturday November 05, 2011 @02:32AM
(#3199132)
From a quick scan of the Xtend page, it seems to be fairly backwards compatible with Java source code.
Re:Eclipse launches new language to cut down Java boilerplat...
by bunderbunder on Friday November 04, 2011 @06:54PM
(#3198055)
It would be nice to at least have the option to compile to bytecode, but this is a good start. I'm hoping it was just a decision to get the language out there and drum up interest before taking on a bigger project, and a 'real' compiler is on the way.
This one in particular is interesting since it seems to be an attempt to catch up with some of the rapid development C# has made. The Java platform is great, but the language has visibly been allowed to grow moss lately.
Re:Eclipse launches new language to cut down Java boilerplat...
by naveen99 on Saturday November 05, 2011 @12:42AM
(#3198950)
Legal JavaScript is legal coffeescript.
Is legal java legal xtend ?
Can we expect something like http://js2coffee.org
Java seems to be going through a period of experimentation, and alternative Java-like and JVM languages. Interesting times.