5 ms·
What is the point of UIWebView, if it's meant to help developers write Javascript "native" apps, and yet it's 3x slower than a web app would be inside Mobile Sa
by mtgx 14y ago
What is the point of UIWebView, if it's meant to help developers write Javascript "native" apps, and yet it's 3x slower than a web app would be inside Mobile Safari? Doesn't that kind of defeat the purpose of UIWebView existing?
I'm pretty sure Apple is leaving this as it is on purpose so Javascript apps don't start to compete on performance with ObjectiveC apps, and the security excuse they give is just the lazy one to get them off the hook, just like Microsoft is saying "WebGL poses security issues, so we won't even try to add it".
Well guess what. A lot of stuff poses security issues. But you have to balance that out with the features and usability you want to give to the user, and if there are some good and "logical" features you could add like setting other browsers as default, or letting UIWebView apps be as fast as web apps in Safari, then you just have to add them and make sure the security is as tight as possible. Add a sandbox if necessary and so on. Don't take the easy way out.
- kombine 14y agoThat is the reason of total control over their platform, and that's where industry is going - Microsoft is also imposing the same restrictions in Windows RT. That is quite sad, because it doesn't leave much freedom to the programmers, demoting them to just the "apps" coders, there is no place for hackers in its true meaning.
- superasn 14y ago> Well guess what. A lot of stuff poses security issues. But you have to balance that out with the features and usability you want to give to the user Just imagine if Microsoft had done the same starting with Windows 3.1. How much innovation would it have killed? I recently tried using Adobe AIR to make something, but unlike C# the AIR API is severely sandboxed and limited that even simple things like GetDC or CreateShortcut are just near impossible to implement. End result is I never really completed my app.. something which would have taken me an hour at most to do in C#. This new trend of technology where everything is being sandboxed and scrutinized for approval in the name of security is really very sad for hacker culture.
- taligent 14y agoAll we are talking about here is a loss of performance in Javascript benchmarks. In every day usage you simply don't notice a difference between Chrome and Safari. So I think you have the volume turned to 11 on the idea of it killing innovation.
- superasn 14y agoWell my reply was to the above poster wrt to Apple's inane policies in the name of security that kills innovations and and hacker culture. For example: The most important app for me is iBlacklist for iPhone. It prevents nearly 20 spam text messages for me daily, which directly translates into less annoyance and added productivity daily. Yet, Apple will never approve this app for general public. Same for Microsoft's on{x}, which is a genius innovation imo but because of the recent inane app store policies trend, even Microsoft had to release it for Android only.
- danilocampos 14y ago> What is the point of UIWebView, if it's meant to help developers write Javascript "native" apps I'm not sure I buy the premise here. UIWebView is a class to help developers show web content in an app. That's all it was ever about. > I'm pretty sure Apple is leaving this as it is on purpose so Javascript apps don't start to compete on performance with ObjectiveC apps Why? Apple doesn't need to worry about this. Their platform-specific features mean that native apps will always win on user experience, regardless of performance. They don't need to hobble performance. Conspiracies sound cute to write about, and are fun to cook up, but it's much likelier that Apple just has better stuff to worry about. They have a successful, widely-adopted solution for developers to create great apps for their platform. They have a solution for users to have a great, fast browsing experience. That's about all they need at the moment, in a world with finite time and resources. It's not Apple's goal to make every single nerdy desire or business model possible. It's their goal to sell a shitload of hardware by making users happy. My mom isn't asking for super fast performance on a third party browser. She just wants her internet to work. Apple's already giving her that. QED.
- mgurlitz 14y ago> I'm not sure I buy the premise here. UIWebView is a class to help developers show web content in an app. That's all it was ever about. I'm pretty sure it's still the case that when you add a HTML5 app to your home screen (so your users see the icon instead of a bookmark in Safari) all of a sudden it doesn't get run on the Nitro JS engine anymore.
- danilocampos 14y ago> I'm pretty sure it's still the case that when you add a HTML5 app to your home screen (so your users see the icon instead of a bookmark in Safari) all of a sudden it doesn't get run on the Nitro JS engine anymore. It is not the case. http://arstechnica.com/apple/2011/06/ios-5-brings-nitro-speed-to-home-screen-web-apps/ http://arstechnica.com/apple/2011/06/ios-5-brings-nitro-spee...