Writing iOS apps in Javascript is not a new idea, anymore, at least since companies like Appcelerator (Titanium) built entire business models around corresponding frameworks.
And yet, Apple manages to open up two exciting new possibilities during the WWDC 2013: The release of the JavaScriptCore Framework as a public API on iOS and OS X, as well as the announcement of an Objective-C to Javascript Bridge.
I'd like to talk to you about my experiences with these new bridge-technologies, the new ways in which you can use them and finally present to you my own project; Node.app — a Node.js implementation for iOS.
8. BAD REPUTATION
Fill an array with 1.000.000 strings (sec.)
Call a function/method 1.000.000 times (sec.)
9. BAD REPUTATION
Fill an array with 1.000.000 strings (sec.)
Foundation
JavaScript
0
0.095
0.19
0.285
0.38
Call a function/method 1.000.000 times (sec.)
10. BAD REPUTATION
Fill an array with 1.000.000 strings (sec.)
Foundation
JavaScript
0
0.095
0.19
0.285
0.38
Call a function/method 1.000.000 times (sec.)
Foundation
JavaScript
0
0.15
0.3
0.45
0.6
11. BAD REPUTATION
NSMutableArray *a = [NSMutableArray new];
for (int i = 0; i < 1000000; i++) {
a[i] = @“Hello World”;
}
(function () {
var a = [];
for (var i = 0; i < 1000000; i++) {
a[i] = ‘Hello World’;
}
})();
for (int i = 0; i < 1000000; i++) {
[self exampleMethod];
}
(function () {
var fn = function () {
return;
};
for (var i = 0; i < 1000000; i++) {
fn();
}
})();
- (void)exampleMethod {
return;
}
82. PARTICIPATE
•
Download the App from the AppStore
•
Test the modules that should work “reliably”
•
Subscribe to the Mailing List
83. PARTICIPATE
•
Download the App from the AppStore
•
Test the modules that should work “reliably”
•
Subscribe to the Mailing List
•
File GitHub Issues
84. PARTICIPATE
•
Download the App from the AppStore
•
Test the modules that should work “reliably”
•
Subscribe to the Mailing List
•
File GitHub Issues
•
Spread the word
85. PARTICIPATE
•
Download the App from the AppStore
•
Test the modules that should work “reliably”
•
Subscribe to the Mailing List
•
File GitHub Issues
•
Spread the word
•
Talk to me if you want to participate