Live data from Hacker News

Apple allows hot code push for JS downloaded and run by WebKit

meteor.com

61–70 of 74 posts

Re: Apple allows hot code push for JS downloaded and run by WebKit

#61
post #4
post #3

Earlier quoted context omitted.

Of course, this advantage is more than outweighed by having to use JavaScript in the first place.

Considering all of the languages that can transpile to JS, I wouldn't say that's an issue. Now the bugs and shortcomings of CSS, that's certainly a knock against hybrid apps :)

Wasting CPU time on a mobile device by 'transpiling' is pie in the sky webdev nonsense.

Re: Apple allows hot code push for JS downloaded and run by WebKit

#63
post #60
post #38

I once worked for Pyxis Mobile (now Verivo Inc.) which touted a platform which would provide you with native iOS, Android, and BlackBerry (years ago..) apps, which would build themselves at run time based on a database/app meta data. This allowed apps to completely change themselves without a resubmission, while being in-line with Apple's guidelines, and technically be purely native. Between lazy loading and the fact…

Have you ever done A/B testing? That's the real value if you want to actually measure things and improve them. Maybe doing so can even minimize spectacular bugs when you push. And how would you accomplish this A/B iteration with weekly pushes to everyone?

You could code both views and show one or the other based on a server-side flag.

Re: Apple allows hot code push for JS downloaded and run by WebKit

#64
post #63
post #60

Earlier quoted context omitted.

Have you ever done A/B testing? That's the real value if you want to actually measure things and improve them. Maybe doing so can even minimize spectacular bugs when you push. And how would you accomplish this A/B iteration with weekly pushes to everyone?

You could code both views and show one or the other based on a server-side flag.

And that is rudimentary "code push" isn't it?

Re: Apple allows hot code push for JS downloaded and run by WebKit

#65
post #4

Earlier quoted context omitted.

Considering all of the languages that can transpile to JS, I wouldn't say that's an issue. Now the bugs and shortcomings of CSS, that's certainly a knock against hybrid apps :)

Wasting CPU time on a mobile device by 'transpiling' is pie in the sky webdev nonsense.

Why would one transpile on the device rather than on one's dev/deployment/whatever server?

Re: Apple allows hot code push for JS downloaded and run by WebKit

#67
Unless I'm mistaken, two primary restrictions are:

1. script must be downloaded only within UIWebView. 2. script must be excuted only within UIWebView.

Not sure why #1 is important to Apple but #2 makes perfect sense. I'm assuming Meteor is downloading scripts then passing them as 'data' to native-side to be cached somewhere until it needs to be injected back into UIWebView for execution.

Re: Apple allows hot code push for JS downloaded and run by WebKit

#68
post #67

Unless I'm mistaken, two primary restrictions are: 1. script must be downloaded only within UIWebView. 2. script must be excuted only within UIWebView. Not sure why #1 is important to Apple but #2 makes perfect sense. I'm assuming Meteor is downloading scripts then passing them as 'data' to native-side to be cached somewhere until it needs to be injected back into UIWebView for execution.

This distinction is very important to me, but I'm not sure whether it holds true. Can anyone comment whether e.g. JavascriptCore executed code cannot be hot pushed? Does JavascriptCore count as 'Webkit' in Apple's sense? IMO from a technology standpoint it should, but I'm not sure. What about Javascript that's pushed within databases, i.e. CouchDB? So far I was pretty sure that this isn't allowed, but reading this article I'm not entirely sure either anymore.

Re: Apple allows hot code push for JS downloaded and run by WebKit

#69
post #64
post #63

Earlier quoted context omitted.

You could code both views and show one or the other based on a server-side flag.

And that is rudimentary "code push" isn't it?

I don't think that it is. You include both views in the submitted app and decide to show only one. There's no code push being done.

Re: Apple allows hot code push for JS downloaded and run by WebKit

#70
post #67

Unless I'm mistaken, two primary restrictions are: 1. script must be downloaded only within UIWebView. 2. script must be excuted only within UIWebView. Not sure why #1 is important to Apple but #2 makes perfect sense. I'm assuming Meteor is downloading scripts then passing them as 'data' to native-side to be cached somewhere until it needs to be injected back into UIWebView for execution.

Hmm, 1 at least isn't entirely enforced. (Chrome has its own network layer, and quite obviously supports scripting.)
Post reply on HN