3 ms·
>- "better performance, better battery use" - this is not true at all. What makes you think so? How is that even remotely controversial? With native you run di
by coldtea 8y ago
>- "better performance, better battery use" - this is not true at all. What makes you think so?
How is that even remotely controversial? With native you run direct native code, in C/C++/Obj-C/Swift/etc and optimized native UI libraries. With a PWA you run a browser engine, a DOM rendering pipeline, and on top of it you run Javascript, and on top you run one today's frameworks. Guess what uses less battery? Ever did a comparison of native vs Electron apps on the desktop, where it's easy to compare?
(To preempt a facile counter-argument: yes, a native app can be coded very silly, do busy wait or whatever, and eat all the cpu/battery/memory. We're interested about baselines and what happens "everything else being equal").
>- "better integration, better look and feel" - it depends a lot on available web standards, which are constantly improving.
Doesn't matter how much they improve, they will always not be 1:1 with the access to the smartphone OS's SDK libs a native app has.
Nor would be the exact same look/feel as the platform (which native gives you), ever compare to someone's ad-hoc UI or re-implementation of the native L&F.
>You forgot about disadvantages: Developers need to develop several versions of their app
That's a disadvantage of the developer, not the user. Why would I as a user care? So that I can get more worse apps more easily?
Besides, WPA still need testing -- especially if they use the "available web standards, which are constantly improving".
>Authors have to pay fees for having their product in various "stores"
Still good in my book. Puts a somewhat higher barrier for crap.
- untog 8y agoOn the UI front, I'd be interested to see what's possible. For instance, <input type="date"/> creates a native date input. Why not the same for navigation components etc? After all, the vast majority of native apps don't need the processing power of native, they just need the UI.
- pjmlp 8y agoAs answered on another thread, PWAs are native apps on some OSes, like ChromeOS and Windows.
- coldtea 8y agoThe OS, like ChromeOS, having "first class support" for web technologies doesn't make those apps native. ChromeOS still runs a Linux underneath, and could run apps without a web layer, DOM, etc, if allowed. When most of us call for "native apps" we don't mean "first class OS support" we mean "as little BS layered crap as possible on top of the CPU" -- so AOT or even a low level VM fits that, a web rendering engine, the DOM, and JS, does not.
- pjmlp 8y agoChromeOS native apps are web apps, like it or not,that is what we get, even Android and the alternative Linux environment run inside VMs. As for the second part, that is exactly what Chakra within UWP does on Windows.
- coldtea 8y ago>ChromeOS native apps are web apps, like it or not,that is what we get Again, I explained what I mean by native apps (which is what everybody means). What "we get" and whether we "like it or not" has no bearing as to whether they're native. When iOS at first had no public Obj-C SDK and only allowed web apps, those web apps weren't magically "native" just because that was what Apple encouraged/allowed. "The only type of apps that are encouraged/supported by the vendor" is not the same as them being native apps.
- pjmlp 8y agoSo Chackra isn't a "even a low level VM"? At which point do you draw the line between bitcode on watchOS, ART on Android, and Chackra on UWP?
- IvanK_net 8y agoWhat has a C/C++/Obj-C/Swift or any other programming language to do with performance? All programs have to be converted to CPU instructions somehow, and if you think that C++ code converts into "better CPU instructions", than a Javascript version of the same program, you are quite wrong. In your "native iOS app", you call the OS interface to add UI elements and accept events. What makes you think, that it requires less performance / battery / RAM, than doing the same through a browser? Let's say that the browser environment adds extra 30 MB to every program. But the rest of the memory is fully in your control. When you see GMail using 300 MB of RAM, its the fault in GMail, not in the browser.
- mrighele 8y ago> (To preempt a facile counter-argument: yes, a native app can be coded very silly, do busy wait or whatever, and eat all the cpu/battery/memory. We're interested about baselines and what happens "everything else being equal"). But everything else is not equal. If I don't have to develop a native app for iOS and Android, I can dedicate double the amount of resource to the PWA version (or triple, if I was planning to do it anyway), which means I can decide to make it performant (or add more functionality, if I don't care much about my customer's battery).