News for hackers. Stuff that matters.
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by msbarnett on Thursday November 04, 2010 @06:25PM (#1871072)
To a certain extent, I agree; sloppily written Flash software is a huge part of the problem.

But Adobe isn't doing itself any favours either. Once every day or two the fans on my laptop ramp up for apparently no reason -- and a quick trip into the process monitor invariably reveals that the Flash plugin process has gone rampant and is eating 100% of my CPU, long after I've left the site that was using it. It's excruciating to wait for Adobe to fix these long-standing issues, as they seem to feel no real urgency to improve the performance and stability of the plugin.

"HTML5" as a group of technologies to replace Flash will no doubt see its share of terribly written uses, but at least the Firefox, Chrome, Safari et al teams can compete to write the most-efficient, least buggy runtimes for those crappy sites to run on.

Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by abstractbill on Thursday November 04, 2010 @06:45PM (#1871129)
You're vastly underestimating the ability of a poor programmer to bring your computer to its knees ;) A tight infinite loop running on any virtual machine will have the same effect.
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by msbarnett on Thursday November 04, 2010 @06:56PM (#1871174)
That's why Javascript interpreters have, blessedly, implemented "Unresponsive Script" warnings that let you kill off those scripts.

Sadly, Adobe hasn't seen fit to offer comparable functionality for dealing with a Flash application that goes berserk. But again, I think that comes down to browsers being in strong competition creating a lot of incentive for them to work hard on efficiency and UX, where Adobe is content to let usability stagnate and bugs fester.

Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by seanalltogether on Thursday November 04, 2010 @07:06PM (#1871219)
Unresponsive script is different then slow script, flash offers the same unresponsive script warning when a thread gets caught in an infinite loop, and neither environment knows how to deal with a slow script.
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by rimantas on Friday November 05, 2010 @04:33AM (#1872442)

  Unresponsive script is different then slow script
Well… Browsers use the same thread for UI updates and JS execution, so every time[1] Javascript is executing your UI is blocked—which means that if your script runs for longer than ~0.2s UI becomes noticeably unresponsive. So IE will decide that your script is unresponsive after 5mil statements, Firefox—after 10 seconds, and Safari after 5. Opera seems not to care

[1] Unless your are using webworkers. Those are executed in separate threads.

Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by sans-serif on Thursday November 04, 2010 @09:47PM (#1871653)
Yeah, can somebody tell me how can this be so hard to do?
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by rosser on Thursday November 04, 2010 @10:02PM (#1871690)
Because it's more or less an instance of the halting problem?
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by justsee on Thursday November 04, 2010 @07:04PM (#1871214)
Flash has had 'Unresponsive Script' warnings as long as I can remember, maybe since 2000?
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by msbarnett on Friday November 05, 2010 @02:41AM (#1872271)
Interesting, thanks. Like earl, I've never seen one on OS X.
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by earl on Friday November 05, 2010 @02:05AM (#1872202)
I've never seen one, and I use a mac.
Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by tomlin on Thursday November 04, 2010 @11:03PM (#1871841)
Really? Seems like I get one for Flash that looks a lot like this: http://bp0.blogger.com/_3xgfV_ITspY/Rsm9saAQ-rI/AAAAAAAAAD4/...

Edit: It was incredibly easy to locate this on Google, so I am sure a little research could have worked well for your comment and perhaps saved yourself the possible FUD attribution.

Re:Dropping Adobe Flash boosts Apple's MacBook Air battery l... by SteveC on Friday November 05, 2010 @08:39AM (#1872896)
Flash does have an unresponsive script warning. If a script is taking to long to run a box will pop up asking if you want to stop it or let it continue.