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 biggest friction 
> point was that I would have to change which libraries I use and revisit all 
> the java interop to make it work nicely as clojurescript.
>
>>
>>    - 
>> * V8 (JNI) - *I briefly considered compiling a V8 runtime to host 
>>    ClojureScript. Startup speed would probably outperform the WebView. This 
>>    would be a lot of work to develop a nice bridging mechanism. Object 
>>    lifecycle management is better than WebView, but still not ideal. With no 
>>    C++ or JNI background, I could tell very quickly that this would not be a 
>>    "weekend project".
>>
>> You might want to check out duktape:

http://duktape.org/

It claims ES5 and some preliminary features from ES6. It is an interpreter 
so it will be slower than V8 but it would only take a day or two to get it 
going. Duktape is part of the IOT effort by the AllSeen Aliance (Linux 
Foundation) and has lots of support so I'm guessing it will be a viable 
tool for some time to come:

https://allseenalliance.org/
https://wiki.allseenalliance.org/_media/training/programming_alljoyn.js.pdf

The startup performance might be sufficient for your needs - TBD. If it 
doesn't work you are only out a weekend :-) 

I could help you with the C++ part (my day job is embedded systems C++) and 
I have been wanting to give duktape a try with ClojureScript anyway.

Take care.

Alan

-- 
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