There are several forces at play here that work against clojure on android being a huge force. The size of "hello world" in clojure is currently 4.21MB. This is roughly 4 for clojure and .21 for the app. This is compared to the same app in java at .2MB. Bring in c.c and you have a whole lot more. With the separated c.c builds it gets better, but that's still a lot.

Moving on to more important matters is the performance issues. The dalvik vm is not very efficient when it comes to GC or reflection. The functional programming nature generates much more garbage than your standard java app which causes some performance issues. This hits the hardest at boot time in an android application. AOT compilation helps here but not in all cases. The idea of having a REPL on the phone is nice and can be done, but it is quite slow. I'm sure there are ways to make it a bit faster (2.2 has JIT support for example) but it will most likely be severely limited for some time. I have been playing with several different ways to improve Clojure's performance on android and have made some improvements, but am a ways off from releasing anything.

This is in no way meant to steer you away from trying out Clojure on android, but I would suggest learning the platforms ins and outs, and then move in to trying out Clojure on it. If you have specific questions please feel free to ask and I will do my best to answer them for you.

Cheers,

Aaron

hi clojure-commmunity,

when learning 2 new things at a time, one is always
temped to combine them and have some unrealistic
fantasies.

i am just reading through the meap of ???
so it's not a surprise, that i think about a
combination of clojure and android.

according to other discussions in the mailinglist,
clojure on android is possible and someone has also
managed to run the combination. i also noticed, that
android-support is mentioned in the clojure 'roadmap'
at jira.

in particular i though of, how clojure could help android
to overcome its java-dependency on the long run ...
->  clojure in clojure ->  clojure on base of the android
system-level-abstractions.

also leveraging the power of FP for embedded systems
programming seams like something that could pay back.

what do you think ? could clojure be androids joker card ?
and vice versa ? ;-)

have a successful day

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to