Re: Clojurescript to target JVM?

2015-01-28 Thread Colin Fleming
Hi Adam, This is really interesting, thanks - at some point soon I'm going to be doing some performance work on Cursive, a large part of which is going to be trying to stop namespaces being loaded before they're required. This will be very useful - I'll steal your patch to log namespace loading, f

Re: Clojurescript to target JVM?

2015-01-28 Thread Adam Clements
I'm currently using the fastload branch against alpha5, and it's pretty good. You have to be careful though with namespace declarations as you may end up loading more than you need to. I'm currently in the process of breaking my app down into "runlevels", where it loads the minimum needed to get st

Re: Clojurescript to target JVM?

2015-01-28 Thread Ashton Kemerling
A lot of the slowness in Clojure comes down to how slow it is to load the main namespaces that are needed, especially clojure.core (see this post ). You should also look into the Clojure fastload branch, which apparently

Re: Clojurescript to target JVM?

2015-01-24 Thread Alan Moore
inline... On Thursday, January 15, 2015 at 8:47:34 AM UTC-8, Adam Clements wrote: > > I've been looking at getting my startup time down on my Clojure on android > app (it needs to be at least an order of magnitude smaller before I can > ship), and revisited this as a potential candidate. The big

Re: Clojurescript to target JVM?

2015-01-24 Thread Gerrit Begher
Hi Sam; I'm currently trying to get some functions written in clojure(-script) running on Android, wrapping them in a java class generated by rhino. Currently, I'm stuck at overcoming the 64k limit. Could you explain the splitting process in some greater detail? All the best, Gerrit PS ~ Any

Re: Clojurescript to target JVM?

2015-01-15 Thread Adam Clements
I've been looking at getting my startup time down on my Clojure on android app (it needs to be at least an order of magnitude smaller before I can ship), and revisited this as a potential candidate. The biggest friction point was that I would have to change which libraries I use and revisit all the

Re: Clojurescript to target JVM?

2014-11-21 Thread Sam Beran
The code is still half-baked, but in leu of a blog post or code, I can summarize my reasoning and approach: *ClojureScript is Designed With UI Responsiveness In Mind* At present, JVM Clojure is not currently suitable for Android development. Since Android applications are structured around ep

Re: Clojurescript to target JVM?

2014-11-21 Thread Alan Moore
On Friday, November 21, 2014 9:50:58 AM UTC-8, Uday Verma wrote: > > Hello Everyone, > > Basically the approach is this: cljs -> js -> rhino [3] -> bytecode. > Provides java interop through rhino. By the time things get to rhino, > google closure has already thrown away most of the runtime awa

Re: Clojurescript to target JVM?

2014-11-21 Thread Uday Verma
Awesome! Thanks for setting up that little playground with your cljs-cl project, Mike, I am going to use that to explore some stuff as well! On Friday, November 21, 2014 12:13:01 PM UTC-6, Frozenlock wrote: > > Really interested by this. > > The startup time has always been a big no-no every ti

Re: Clojurescript to target JVM?

2014-11-21 Thread Frozenlock
Really interested by this. The startup time has always been a big no-no every time I was tempted to use Clojure on Android. On Friday, November 21, 2014 12:50:58 PM UTC-5, Uday Verma wrote: > > Hello Everyone, > > I was at this pretty interesting meet-up yesterday where Sam Beran [1] > showed h

Re: Clojurescript to target JVM?

2014-11-21 Thread Mike Fikes
I too was intrigued by this and cobbled together a quick test to see if this made it possible to create command-line apps that start up more quickly [1]. It appears that this is indeed the case, but, of course you still need to pay JVM startup time. I was also interested in what Sam Beran accom

Clojurescript to target JVM?

2014-11-21 Thread Uday Verma
Hello Everyone, I was at this pretty interesting meet-up yesterday where Sam Beran [1] showed how he achieved 30ms startup times on Android using Clojurescript. He was not hosting his app inside a web view, it was a native java app. We all know and understand why clojure runtime bootstrap is "h