JavaFX and Groovy
When I heard the announcement in the Keynote I had this sinking feeling in the back of my mind why not Groovy? In fact after looking at the JavaFX Script demo in the pavilion the code looks just like Groovy's builders. Very interesting. In the keynote Rich Green explained JavaFX Script as "unexpected" innovation but in a lot of ways it points to Sun's myopia of what is going on in the community. This is not a slam on Java FX. I'm sure it will be interesting technology if Sun promotes and supports it properly. Granted the community is large and there are so many things going on that it's hard to keep track of everything but Sun really should have taken a look at Groovy builders and tried to reuse it in Java SE somehow. That has implications beyond providing a simple interface to Java 2D but has wider impact on areas such as markup parsing and generation which are pretty awful in standard Java. We'll see. Hopefully this doesn't feed the JRuby vs Groovy trolls. I think the best way to look at it is that the Groovy approach is validated every time Sun makes a dynamic language move. Update -- Interesting snippet from the JavaFX FAQ (https://openjfx.dev.java.net/JavaFX_FAQ.html#Why_not_Groovy.3F): "Groovy and other languages have two specific traits which don't precisely meet these needs, namely that they are generic in nature and don't provide the appropriate abstractions necessary to optimize the UI design process and similarly are designed specifically for programmers other than content authors." That's pretty lame if you ask me.