in native apps
play

in native apps allen pike steamclock software build delightful - PowerPoint PPT Presentation

in native apps allen pike steamclock software build delightful apps. embed a javascript runtime. embrace our platforms. enable tinkering. render native opengl. mix javascript and native. share javascript in native apps. build


  1. in native apps allen pike steamclock software

  2. build delightful apps.

  3. embed a javascript runtime.

  4. embrace our platforms.

  5. enable tinkering.

  6. render native opengl.

  7. mix javascript and native.

  8. share javascript in native apps.

  9. build delightful apps.

  10. Blow people’s minds.

  11. embed a javascript runtime.

  12. git clone git://github.com/v8/v8.git

  13. Note : The handle stack is not part of the C++ call stack, but the handle scopes are embedded in the C++ stack. Handle scopes can only be stack- allocated, not allocated with new .

  14. JavaScriptCore.framework

  15. let be

  16. In JavaScript var multiply = function(arg1, arg2) { return arg1 * arg2; } In Objective-C

  17. In JavaScript var multiply = function(arg1, arg2) { return arg1 * arg2; } In Objective-C [jsContext evaluateScript:jsFile]; JSValue* jsMultiply = jsContext[@"multiply"]; JSValue* jsResult = [jsMultiply callWithArguments:@[@5, @17]];

  18. In Objective-C int (^multiply)(int, int) = ^(int arg1, int arg2) { return arg1 * arg2; }; jsContext[@"multiply"] = multiply; In JavaScript

  19. In Objective-C int (^multiply)(int, int) = ^(int arg1, int arg2) { return arg1 * arg2; }; jsContext[@"multiply"] = multiply; In JavaScript var result = multiply(1, 2);

  20. JSContext Load a JavaScript VM

  21. JSExport Objective-C to JavaScript

  22. JSValue JavaScript to Objective-C

  23. JavaScriptCore - WebView + Nice bridging Reference cycles + More flexibility + = Delightful possibilities

  24. embrace our platforms.

  25. white backgrounds type-heavy layouts focus on images flat rectangles blue text you can click

  26. physics-based gestures beautiful 3d gorgeous scrolling real-time blur highly responsive touch

  27. 211 MB “A 500 lb. monolith of Eclipse and licensing ”

  28. rewritium

  29. enable tinkering.

  30. show them the demo now allen.

  31. wow, a calculator. github.com/SteamClock/JSCalc

  32. render native opengl.

  33. mix javascript and native.

  34. UIKit Android UI Objective-C Java node

  35. UIKit Android UI logic logic node

  36. HTML HTML Objective-C Java node

  37. UIKit HTML Droid HTML Obj-C Java node

  38. UIKit OpenGL HTML Droid Text HTML Obj-C logic Java Brainfuck WebObjects node

  39. share javascript in native apps.

  40. a wild rhino appears!

  41. embed a javascript runtime.

  42. go build delightful apps. apike steamclock.com

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend