5 ms·
State of Clojure on Android 2013
- daniel_solano 13y agoI'd like to thank Alexander for all of his hard work. It's entirely my fault that his Neko work hasn't been merged in, but it's something I am going to get done soon.
- Expez 13y agoCan someone in the know comment on the size of the runtime? Why is it so large? Is this problem likely to be solved, or are we waiting for more powerful hardware?
- jamii 13y agoThe core libraries are very large and there is no standard way of stripping them out. Clojurescript (partially) addresses this by passing the generated js through the google closure compiler. Perhaps a similar pass could be made in the jvm compiler.
- stesch 13y agoBTW: Neko = http://en.wikipedia.org/wiki/Neko_%28programming_language%29 http://en.wikipedia.org/wiki/Neko_%28programming_language%29 Please make a Google search before naming your projects. Thanks.
- Illotus 13y agoDoes lein droid support Proguard or does one need to use Ant for that?
- 616c 13y agoI see similar work has been done for Scala. Amongst other things: https://code.google.com/p/scalaforandroid/ https://code.google.com/p/scalaforandroid/ Does anyone with Scala on Android experience know if it is bogged down by the same size and performance issues? I assume they are running against the same problems on parallel tracks. Just curious.
- wiradikusuma 13y agoI'm a Scala guy learning Android. There's Scaloid which offers more concise way of doing things, but now tools (esp. Android Studio) are getting better for XML (and faster feedback thanks to live preview), so now I'd rather take the XML route (although probably as I'm getting more proficient with Android, I would prefer programmatic). The performance is not bad. ProGuard is a must. The problem for me is compile time.
- jbrechtel 13y agoIt's not bogged down by the same performance. There may be times where idiomatic Scala code generates more garbage than similar Java code and thus has more of an impact on Dalvik performance but these are straight forward to work around and well understood. For the vast majority of apps this isn't a problem. Scala does suffer a similar size issue where the Scala standard library is a few megs and you don't really want to ship that around with your app. You can use ProGuard to strip out the parts of the Scala standard library you aren't using. This is baked into build tools (like jberkel's excellent android-plugin for sbt) so it's usually seamless. FWIW, I've got a couple Android apps on the Play store written in Scala.
- DanielRibeiro 13y agoI've been using Scala to develop for Android for a while. There is this sample project to get you started with nothing Java, Ant and the latest Android SDK required: https://github.com/danielribeiro/HelloScalaOnAndroid https://github.com/danielribeiro/HelloScalaOnAndroid
- erichmond 13y agoI think it's interesting how few comments clojure posts attract. Given pg's love of lisp and how amazing clojure is (at least in my opinion) in terms of language design and what features we'll need in the next 10 years, I would have thought the HN community would be jumping all over it. This isn't meant to be anything more then an interesting observation.
- moomin 13y agoWell, speaking for myself, I think the article is extremely interesting, but I don't think I have much to add to the conversation. Maybe Clojure just attracts lurkers. (It should be pointed out that I have plenty of strong opinions I'm more than happy to tell to anyone who will listen, but when it comes to Clojure, I want to hear from Nathan Marz, James Reeves, Stuart Sierra &c, and seriously doubt I have much to add.)
- HillOBeans 13y agoOne lurker here - I, for one, am EXTREMELY interested in CoA, and Clojure in general. I have only worked on a couple of Android apps thus far, but it is already enough for me to want to look into Clojure for Android development. I don't know if my Android chops are good enough for me to get away from the Eclipse/Java environment just yet, though.
- gtani 13y agoIf you look at hot topics like reducers, datomic and clojureScript, there's plenty of discussion. Haven't found a better way to find actively responded to threads than slogging thru hnsearch.com pages and Control-F for "comments |" https://news.ycombinator.com/item?id=5687190 https://news.ycombinator.com/item?id=5687190 http://news.ycombinator.com/item?id=5627799 http://news.ycombinator.com/item?id=5627799
- dizzystar 13y agoThis thread has a ton of comments: https://news.ycombinator.com/item?id=5027560 https://news.ycombinator.com/item?id=5027560 I think that it betrays the issue. If people are struggling to get started with the language, then that means that no one is bothering to use it beyond 4Clojure and basic koans. The fact that there is up-voting and about one Clojure article on the front page every week shows that there is a strong interest in the language, but until the maintainers figure out how to make the language accessible, there won't be much commentary because very few people are knowledgeable enough to say A or B about it.