It's a valid approach. Java is, after all, built on the basic model of first compiling to an intermediate representation (bytecode) which is then compiled down to native code.
And then, most likely, your CPU will take the "native" CISC instructions and translate them into a reduced RISC-like set. It's turtles all the way down, what's wrong with another one on the top? I understand a certain reticence given how badly the whole idea worked out with JSP (not fun to debug, no sir, not at all), but the principle is sound in spite of previous bad examples. Tying to a single IDE seems risky to me (vendor lock-in), and I'm not convinced that java is the best possible intermediate language for this[1], but there's absolutely no reason why it wouldn't work perfectly well. [1] Jribble is a better bet: http://scalagwt.github.com/jribble On 22 December 2011 11:22, Mark Derricutt <[email protected]> wrote: > There is - 2.2 came out a week or two ago with a standalone compiler, an > ant task, and a maven plugin. > > Maven plugin works great, apart from sending the generated source to > src/main/xtend-gen ( configurable ), I raised a bug and the default is now > target/generated-sources/xtend-gen which means IntelliJ just magically > picks up the generated source. > > So far I quite like Xtend - generating .java source and leaving the > compile up to you actually seems quite nice in that it works out of the box > with Android, Google App Engine, OSGi etc. > > Xtend to me feels much like CoffeeScript - Xtend is "just java classes" > with a very thin runtime library - it's the same type system - and the best > thing - extension methods via @Inject'ed fields is darn awesome. > > -- > "Great artists are extremely selfish and arrogant things" — Steven Wilson, > Porcupine Tree > > > On Thu, Dec 22, 2011 at 5:57 PM, Ricky Clarkson > <[email protected]>wrote: > >> I think you're missing xtend-lang, which also goes tools-first, >> possibly too far in that I don't think there's yet a >> publically-available command-line compiler, only an Eclipse plugin. >> Fantom? No user-defined generic types, and then it gets itself >> associated with a guy who wants to be everyone's enemy. >> > -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
