News for hackers. Stuff that matters.
Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by asolove on Thursday August 19, 2010 @06:36PM (#1618884)
We're talking about Google, a company who wrote their own cleanroom Java implementation and reverse-engineered ActiveX to create a ChromeFrame implementation still compatible with anything that ever worked in IE. I think they could speed things up a bit.

ActionScript is just JS plus some extra sugar. JS implementations have gotten hundreds of times faster in the last three years, while Flash has gotten slower. Slap a modern JIT on there and we should get some improvement.

Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by sshumaker on Thursday August 19, 2010 @07:11PM (#1618991)
A lot of what goes on in SWF files is the art data (vector graphics, the 'movieclip' object, etc). Flash comes with a pretty extensive API for manipulating graphics and these objects, all which needs to be rewritten for mobile. There's a lot there, believe me.

Unfortunately, much of that content is what causes the problem. Using the artist tools (Flash CS3), you can generate content that simply fumes memory, without writing a single line of code. I'm not sure you can even fix those issues without re-authoring the art content.

What makes this worse is that anyone can embed one of these crappy SWFs in a webpage, causing the browser to fume memory too.

Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by albertzeyer on Thursday August 19, 2010 @09:58PM (#1619265)
Or to put it different: Everyone can build a crappy webpage. Flash helps in making that easier.
Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by justsee on Thursday August 19, 2010 @08:21PM (#1619111)
The Flash player has been getting faster over the years - dramatically so, afaik.

Could you provide links to back up your statement that it has gotten slower? I've never heard that before.

Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by est on Thursday August 19, 2010 @10:53PM (#1619379)
> reverse-engineered ActiveX to create a ChromeFrame

Can you elaborate?

> while Flash has gotten slower. Slap a modern JIT on there and we should get some improvement.

Adobe actually contributed to Tracemonkey's JIT as one of their effort towards ECMAScript engine unification, they even planned to write a engine for WSH Active Script, but failed. IMHO Flash is laggy because of the drawing part, but in this case HTML5 is also laggy as hell. Try set font to 100 in this demo:

http://www.ponticstar.com/projects/burning-words/

Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by tomlin on Friday August 20, 2010 @12:40PM (#1620852)
> JS implementations have gotten hundreds of times faster in the last three years, while Flash has gotten slower.

I don't know about that. Flash may be proprietary, poor coding community, etc, but to suggest it is creeping down to JS performance is pretty outlandish.

Flash has two communities. One: Designers trying to do timeline animation with a mix of code snippets they've found. Two: Decent coders who implement the safest, best methods.

When Flash performance is subject, it tends to be Flash's poor design that gets the bad rap even though it tends to be the poor developer community at fault. In the same way, JS-based interactive content can also be coded poorly and perform poorly as a result.

Honestly, I've seen some pretty intense, balls-to-the-wall sites that I know would absolutely work at a crawl or snail's pace in JS, but work elegantly in Flash.

A full open-source file format would be a great move for Adobe.

Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by jcl on Friday August 20, 2010 @10:10AM (#1620410)
ActionScript is not JS plus sugar. ActionScript 3.0 adds statically-typed variables and class-based inheritance. A good compiler can use these additional constraints to produce better code -- performing more like Java than JavaScript. It's possible that the VM is not the bottleneck here.
Re:Mobile Flash Fail: Weak Android Player Proves Jobs Right by glhaynes on Friday August 20, 2010 @11:14AM (#1620598)
I don't think Flash's problem is speed. It could be sped up by 10x and I don't think it would significantly matter to its market position or future prospects.