Re: [ScriptYielding] setImmediate clamping returns.

> Please, find a flaw. Please, make a better, more in depth analysis that shows that browsers will keep not clamping.
> Really on this one, I really want to be wrong. I really want someone comes up with elements I haven't thought of.

The flaw I see is that you're practicing pessimism-driven design.

------------------

I made this analogy on the FF thread, and it was largely ignored. I'll re-try here.

requestAnimationFrame() can be abused. You can put a whole bunch of code into a rAF callback that's an abuse, in that it has nothing to do with a window repaint. You can put enough slow code in that causes it to take much longer than 16ms, which means that the browser will be forced to slow down its refresh rate from ~60fps to 30 or 15 or worse.

Moreover, what you abuse inside a rAF callback might not perform the same in all browsers. It might be fine in Chrome, but really painfully worse/slow in FF.

At this point, we're going to be faced with the same questions we are debating theoretically here about setImmediate().

If the same mindset that DID neuter setTimeout(..0) and would apparently inevitably neuter setImmediate(), the pessimism-driven design that if it can be abused, it will be abused, and if it's abused and we're the ones who get hurt, we'll be "forced" to do unspeakable evils to save our public reputation… if THAT mindset also is going to eventually be applied to rAF, then we should take rAF out right now, because it's also doomed.

---
If you'd like me to create a demo that makes FF look really bad, and Chrome look really good, and then get it on the front page of hacker news and cause a big political uproar, and make FF "look bad", I'm sure I can. That'll force the analogy.
---

Or, we can take a level head and say, we can't fear the idiots and let that hold back the platform. We can't ignore the abuses, but we can't live in fear of it either. We have to be balanced. We have to be creative. And most of all, we have to be willing to, sometimes, not choose the politically convenient/expedient answer.




--Kyle

Received on Tuesday, 13 August 2013 01:12:23 UTC