1. Javascript code in a
native app
Graphically intensive and interactive
Kevin Read
kread@boerse-go.de
@unverbraucht
2. Javascript rocks
● It's great
○ fast
○ cross-platform
○ runs (nearly) everywhere
● So we built a Canvas-based chart analysis
tool in JS with a gazillion features:
○ Quick demo
3. ● On mobile, canvas not there yet for us
○ 2-3 fps performance
○ Differences in touch handling over browsers
● Porting not an option
○ 30k LOC of JS times two platforms
● Idea: Reuse JS version
○ Embed JS VM into app, here v8
○ Custom code for canvas, AJAX, websocket, ...
JS isn't for everything
10. Lessons learned and end
● Embedding a JS VM is a big to epic win
○ Performance gain x20 (!)
○ Oh, and works on x86 too of course :D
● But plan to take some time:
○ v8 is great, but steep learning curve.
○ Debugging JNI/NDK can be very painful.
Thanks for your time.
@unverbraucht
+Kevin Read: http://gplus.to/unverbraucht
EjectaJS for iOS: http://impactjs.com/ejecta
Martins stuff: https://github.com/Tharit
gplus.to/unverbraucht