On my team, we tried using RoboVM to compile Clojure to iOS. It worked fine 
once it booted, but startup time was a concern. We didn't spend a lot of 
time optimizing it though. We also found the compile/boot cycle to be quite 
long (over 50s to see a change). My understanding (perhaps mistaken) is 
RoboVM must compile all code before boot, so live-loading code via a REPL 
won't work.

We switched to using Clojurescript/React Native and it's been a net 
positive for us so far, even though we had to rewrite some internal 
libraries for CLJS. We had a REPL briefly (Ambly, although we've recently 
had to drop support for it due to breaking changes from React Native 
upgrades) and our compile/boot cycle is about 20s.

My coworker Chris Vermilion created these slides about our 
experience 
https://docs.google.com/viewer?a=v&pid=forums&srcid=MTUyOTIzOTE0MjU1MDA0MDI3NjQBMTExMTI3MjYwMjc1OTc4MDg3MzQBXzVfV0tNdUZDQUFKATAuMQEBdjI

Hope that helps,
Ben

On Tuesday, September 22, 2015 at 3:51:04 PM UTC-7, Roger Keays wrote:
>
> Hi all,
>
> Thanks for giving the world Clojure. It's already made my life better just 
> by applying the idioms to my Java code (e.g. 
> http://www.ninthavenue.com.au/java-with-no-design-patterns).
>
> I'm starting on a new project soon and would like to use Clojure, however 
> in my experiments so far performance seems to be a bit of a problem. Since 
> the project will target mobile devices performance is pretty important 
> (especially startup time).
>
> To be honest, even for the server I'm a little deterred by the stats I've 
> seen online of Clojure vs Java performance. I can always just write Java in 
> a functional style and embed beanshell for a REPL.
>
> So I guess it would be good to hear from the community how things have 
> worked out for them performance-wise, and especially on Android/iOS.
>
> Also, are there any known showstoppers compiling Clojure bytecode to iOS 
> using RoboVM?
>
> Thanks in advance,
>
> Roger
>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to