Xtend is a little language that compiles into idiomatic Java source code. You can use any existing Java library seamlessly from Xtend (and vice-versa). The compiled output is readable and pretty-printed, and tends to run as fast or faster than the equivalent handwritten Java code. It's the CoffeeScript for Java.
Get the new release and learn how to write efficient Android applications without the tedious boiler-plate code.
Leverage the full power of Xtend by enhancing the compiler with Active Annotations a unique macro system for Java.
Enjoy the many new IDE and language features and the much improved type inference algorithm. Read the full release notes.
Xtend removes all the unnecessary syntactical noise: No semicolons, no empty parentheses, good default visibility, unmatched type inference.
Unlike all other JVM-languages, Xtend resembles Java's type system without any compromises or cheap short-cuts. This guarantees that you won't run into any interoperability pitfalls. Integration with Java works as expected in both directions and the generated code runs as fast as or faster than hand-written Java.
Static typing is not only important for early error detection but even more so for top-notch IDE support. To ensure a great and holistic user experience, the IDE and the language have been designed side by side. And of course the tools integrate tightly with the Eclipse Java IDE.
Xtend leverages existing Java concepts and adds modern language features on top. Unlike other JVM-Languages like Scala, Xtend doesn't add a whole new type system because this would cause interoperability issues and make the language harder to learn for Java developers. If you know Java you already know most of Xtend.
Xtend not only resembles the type system to ensure 100% interoperability, it also generates comprehensible Java source code. This allows to run the code on other platforms that are based on Java source code, such as GWT, and you can see how certain language constructs are translated to idiomatic Java.