as a web developer i am bemused at every other comment on here that seems to agree with your sentiment that the world is walling up. yes, app stores will be a control mechanism for ever and consumers may not understand what they are opting into. but equally the open web will never go away and that's what general purpose computation has shifted to, thats basically all we've done this century. am i misunderstanding what you mean by general purpose computer?
back
1 comments
Can a program written for the web access all the great sensors on your Android or iPhone? Can it access new movies and TV shows?
The web is a big success story, but it's not all there is in computing.
I hate the browser as a platform, but the answers to your questions are yes, and yes.
The web can't access all the sensors on your phone -- at least not in their full glory. It might have trivial APIs like "take a picture", but it can't do anything specific to a piece of hardware, by definition. It can't control the camera's imaging pipeline (lighting, focus, preprocessing, etc.).
As a shortcut to understanding this, consider what hardware support something like ARKit [1] needs. Or consider whether you could write a multitrack audio recorder as a web app (no, because the web audio APIs aren't multitrack).
My point is that you need "general purpose computing" that is not the web for many things. The web is indeed open, but we also need our general purpose computers to be open. Android is better than nothing, but it's arguably not as open as a PC running Linux.
https://developer.apple.com/documentation/arkit/about_augmen...
The answer to the second question is also no.
Amusing, how people fear monoculture on one hand, but a longing to have everyting as the web app on the other.
For what is worth it is good web apps cannot access everything.
I think it can , but if your website needs to use these things, then it essentially locks itself in the "app garden" we 're talking about escaping from.