News for hackers. Stuff that matters.
Re:Dart for Android apps with 120fps by joosters on Saturday May 02, 2015 @03:23AM (#9476217)
The Ars Technica article on this - http://arstechnica.com/gadgets/2015/05/01/googles-dart-langu... - has a worrying comment:

...the majority of the app is served over HTTP, allowing for continuous deployment where everyone always runs the newest version. URLs are a base layer of DART, so everything is internet aware. The downside to this is that the demo app doesn't work when you're offline, and starting the app takes a second or two because it needs to download data.

So this is effectively a permanent 'wget |sh' kind of system? Sign me up!

Re:Dart for Android apps with 120fps by tosh on Saturday May 02, 2015 @03:36AM (#9476244)
You forgot to quote the next sentence:

"Both of these could be solved with caching, though."

Sounds like it is up to you if the app you deploy to the app store will have this ability or not or on which side of the spectrum you want to be.

When you look at the Facebook app (or other popular apps) they've found ways to 'update' parts of the application (or behave differently eg for a/b testing of new functionality) without the user having to download a new version.

Re:Dart for Android apps with 120fps by joosters on Saturday May 02, 2015 @03:41AM (#9476252)
Yup. It's up to 'you' - you being the app writer. The poor shmuck who downloads the app has no choice or control over it.
Re:Dart for Android apps with 120fps by evv on Saturday May 02, 2015 @04:05AM (#9476303)
What web browser do you use? It probably updates itself on a regular basis.

Do you use any web apps? Those are updated and re-downloaded regularly, depending on how the app is built.

If you use an Android or iOS-based device, the software on it often becomes out-of-date and requires an upgrade in order to restore and improve functionality.

The app writers should have such control. The 'poor shmucks' have as much power as always in this ecosystem, because they can choose what apps they want to trust and use.

Re:Dart for Android apps with 120fps by joosters on Saturday May 02, 2015 @04:53AM (#9476377)
I'm looking at this from Android, as that's the initial target and discussion here. If I download an app from Google's app store, I have some confidence that the app is well behaved and has been checked for obvious malware... But if the app depends on remote code that can change when it likes, how can I ever be confident in using that app and granting it permissions?
Re:Dart for Android apps with 120fps by choudanu4 on Saturday May 02, 2015 @08:09PM (#9479113)
In the Dart Conference talk, they mention that sky apps (DART apps on Android) are given access to ever permission the system gives them. These system given permissions will almost definitely work in the Play-store way (as opposed to asking whenever it is required, a la website style).
Re:Dart for Android apps with 120fps by russell_h on Saturday May 02, 2015 @03:31AM (#9476231)
Like a web browser?
Re:Dart for Android apps with 120fps by joosters on Saturday May 02, 2015 @03:40AM (#9476250)
My web browser doesn't have many permissions to access my data (texts, contacts, location etc) - apps, on the other hand, may have a wide range of permissions and so are open to abuse.
Re:Dart for Android apps with 120fps by evv on Saturday May 02, 2015 @04:12AM (#9476320)
Your web browser runs the apps that contain all of your data, like gmail, google maps, facebook, etc. If your browser doesn't correctly sandbox each site, then vast swaths of your data would be compromised.

Web browsers have the ability to use your location information, microphone, camera, and local storage. Plus the web browser is almost always running.

You may not realize it, but you already trust your web browser to protect you and safely dole out permissions. Why would a next-gen application environment be any different?

Re:Dart for Android apps with 120fps by joosters on Saturday May 02, 2015 @04:56AM (#9476381)
Because the web browser is heavily tested and vetted, and I trust it. Whereas some apps I only trust because they have been given some (albeit maybe minimal) checking and validation prior to being allowed onto an app store. If the app I use changes under my feet with no way for me to control that, then I can't see any way of trusting the app.
Re:Dart for Android apps with 120fps by tdkl on Saturday May 02, 2015 @06:40AM (#9476589)
> Web browsers have the ability to use your location information, microphone, camera, and local storage. Plus the web browser is almost always running.

You don't permit browser access to all that when you visit a internet page. You do on Android if you want to install an app.

Re:Dart for Android apps with 120fps by myko on Saturday May 02, 2015 @01:00PM (#9477698)
I assume the final apk to be released would actually package the Dart code/server within itself? Kind of like React Native.