21 points · by kloc · 16y ago · 37 comments
Note that I really want to use Canvas - but at the moment when it comes to interactive graphical applications I don't think the two are currently directly comparable.
They’ll never be directly comparable. Canvas is a bitmap drawing field, Flash is a vector drawing field with enhancements. If you want to do vector stuff you’re probably better off using SVG.
Honestly, I think canvas will catch up to Flash in capabilities pretty quickly. And I'm holding out hope for OpenCL hooks for Javascript for this reason precisely. What's really needed now is a good editor like Flash's studio.
People are still largely doing everything by hand-coding things. Put Flash on that same level, and see how easy things are to do.
I've tried using canvas to replicate some things that we've made in Flash, and quickly ran into some problems:
1) There is no way of interacting with elements drawn to canvas, as it's just a flat image (as someone else mentioned in the comments here, canvas is just a way of drawing bitmaps). You could obviously write your code to deal with mouse and keyboard interaction, but it's even more overhead on something that is already quite slow, and even if you could interact with individual elements it brings me to the other thing...
2) Flash has everything in layers that can be updated independently, when it comes to canvas if you want to change something you have to redraw that section of the image entirely, something that isn't always practical which means you end up redrawing the whole canvas. Essentially Flash does the same thing, but as the compositing is handled by the plugin it is far faster than anything you can do in Javascript at the moment.
Also related to the above, the drawImage method that draws bitmap data to the canvas is painfully slow at the moment, so compositing using that is out of the question. If that can be optimised significantly it will certainly help.
Basically canvas is too low level to duplicate the kind of functionality Flash offers at the moment. Until manipulating the canvas and Javascript is optimised further it's not possible to layer in the interaction or flexibility of rendering that Flash has. I'm sure a framework offering this will happen one day, but it won't be any time soon.
Install base is a big factor to security.
First, it starts off talking about the iPad and how Flash may not be the CPU hog its made out to be. It then goes on to say that HTML5 is more efficient than Flash in Safari. The iPad runs Safari, in effect contradicting their previous argument about the iPad.
Next, they say that Apple could allow Adobe to make Flash faster, all they have to do is open up access to the hardware APIs. Who exactly wants a browser plugin to have low level access to the hardware APIs?
Seems kind of ridiculous to say that something else is at work here. Does Apple want to kill Flash? Probably, but even if they didn't want to, they've got plenty of reasons not to allow flash on the iPhone/iPad/etc.
Interactive graphics that work on the iPhone and iPad.
Flash VS HTML5 is a no brainer for any sane person.
I almost forgot, FU Adobe i use FreeBSD.
Good riddance.
Seriously, this argument is getting old. Chose the right technology for your purpose and use it wisely to prevent CPU spikes, security issues, etc. HTML makes strides forward and so does Flash. HTML is great for 90% of all needs, and Flash fills in the other 10% where you need some more flexibility, play audio, have multiple file-uploads, run it as an Air app on the desktop, etc.
What, HTML isn't installed on almost every computer in the world?