5 ms·
I've been looking for alternatives to Java for Android development. Since Python and Clojure aren't options (right now anyway), I looked at Scala among others.
by lucian1900 15y ago
I've been looking for alternatives to Java for Android development. Since Python and Clojure aren't options (right now anyway), I looked at Scala among others.
I found the syntax pretty terrible, worse than Java in several ways. In particular, too complex. I also found the object system overly complicated (and I find Haskell's ok).
- michaelcampbell 15y agoIt's early days yet, but you /can/ do Clojure on android. Check out https://market.android.com/details?id=com.sattvik.clojure_repl https://market.android.com/details?id=com.sattvik.clojure_re..., and google Daniel Solano Gomez; the guy behind the vast majority of that effort.
- lucian1900 15y agoI know, and it's an awesome effort. But it's still not practical (yet).
- michaelcampbell 15y agoOh I agree; I didn't know if you knew of it, or if you simply meant it wasn't "there" enough yet for your use. I just wanted to make you aware of it in case you weren't. Cheers!
- rckenned 15y agoThe Bump guys did a "Scala on Android" talk at the last Scala Days. They didn't explicitly say it, but reading between the lines it sounded like, "Scala on Android…don't". http://www.slideshare.net/michael.galpin/scala-on-android-experiences-at-bump-technologies http://www.slideshare.net/michael.galpin/scala-on-android-ex...
- foobarbazetc 15y agoThis would be obvious to anyone who's ever had to program Java for Android. It's slow enough -- why would you want to make it even slower?
- svenefftinge 15y agoHave a look at Xtend (http://xtend-lang.org http://xtend-lang.org). It's exactly what the yammer guy is looking for: convenience of Scala (closures, type inference, and more) without the complexity. And it compiles to Java source code, which makes it an ideal language for Android development.
- discreteevent 15y agoIf you are the real Sven then kudos for signing your name to this comment but I think it looks a bit opportunistic of you to pile on in this context with a recommendation for your language. No language is perfect and xtend itself hasn't even been used in anger yet.
- svenefftinge 15y agoYes, I was recommending it as an answer to the Android question. I should have left out the bit about the "Yammer guy". I like Scala btw.
- soc88 15y agoYet another language obsolete after Java 8. That's exactly what people need.
- gtani 15y agoYou never know. It's like the Kentucky Derby. There's the big 4, scala, clojure, JRuby and groovy, all nice languages. Then there's the little 5: kotlin, ceylon, gosu, fantom, Xtend. Gosu and fantom are worth trying, I just haven't got around to it..
- lucian1900 15y agoIt looks interesting, actually. I may give it a try, along with haXe's Java backend (if/when it gets released).