News for hackers. Stuff that matters.
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?