r/programming • • Jan 07 '20

Adobe will finally kill Flash in 2020.

https://www.ghacks.net/2017/07/25/adobe-retires-flash-in-december-2020/
819 Upvotes

197 comments sorted by

View all comments

Show parent comments

19

u/derpderp3200 Jan 07 '20

As insecure as Flash is, HTML5 honestly makes for far worse user experiences in my experience. It uses vastly more resources, there's audio or framerate glitches more often, it cannot just be blocked as easily, you cannot try to constrain its resource usage anyhow else either.

35

u/dnkndnts Jan 07 '20

Content creation was vastly superior in Flash too. Non-coders could easily create interactive interfaces in a more-or-less WYSIWYG editor.

10

u/MjrK Jan 07 '20

There still are plenty of animation/game webdev tools that are WYSIWYG... Play Canvas, Unity, and Adobe Animate are good examples.

20

u/st33d Jan 07 '20

I work with these tools. They’re shit compared to Flash.

I know because I made Flash games for 5 years and mobile games in Unity for 5 years.

10

u/FINDarkside Jan 07 '20

Isn't Adobe Animate pretty much the same program you used to create flash programns, but just rebranded? So I don't see how content creation on flash was superior if you can still use the same program but simply select html5 as target.

15

u/st33d Jan 07 '20

Flash didn’t execute all of its code in actionscript. Some of the methods used features of the player running a C++ speeds and only slowed down by passing the data up to the player.

Searching an array and bitmap manipulation are two examples. These ran so fast that most devs would copypixels straight from memory to screen because it was blindingly fast. This is a huge issue with the current swathe of Javascript based Flash alternatives, because the canvas tag cannot compete with the speed that Flash altered bitmaps.

Thus most Flash content is impossible to translate to HTML5. It uses incompatible code, and approaches problems in a completely different way.

13

u/BandwagonHopOn Jan 07 '20

I invite you to try to make, in HTML5, any content with heavy audio and animation synchronization while also retaining interactivity. Games are one example, but a more important one is eLearning.

Developers have to constrain themselves in a way that was never an issue in Flash and still won't get the same performance and polish of a Flash presentation. And that's with programmers doing tricks to try to wrestle to keep the different parts of the browser in line. Synching audio to canvas animation is by itself frustrating.

Using JS to render content to canvas is simply not as efficient as a VM built expressly to deliver interactive, multimedia content. I've had to watch everyone - writers, animators, designers, programmers - deal with the headache of the switch over the past decade. It's been very disheartening.

4

u/FierceDeity_ Jan 08 '20

This, completely. I scrolled down to find some sanity in this assembly. Everyone wishes death upon Flash but we still havent gotten an alternative that's actually good. Somehow all people remember flash for is video...

Don't get me wrong, I would say my goodbyes to Flash if there was an equivalent thing now, but there isn't, so far.

2

u/[deleted] Jan 07 '20

So you're saying the solution is... Java?

1

u/robotnikman Jan 07 '20

Arn't there already webapps which do this?

7

u/mobiliakas1 Jan 07 '20 edited Jan 07 '20

This might be true on Windows, but on Linux flash was always a problem: between old versions, audio issues with oss/alsa/pulseaudio transition or software audio mixing and video tearing. Right now with HTML5 things are still not perfect (most browsers don't support hardware acceleration for video decode) but much better than it was before with flash player. Plus you are not limited to x86.

2

u/FierceDeity_ Jan 08 '20

Flash isn't only for playing video files, somehow that's all people remember it for??

1

u/mobiliakas1 Jan 08 '20

I can't speak of others, but video was my only use case for flash.

1

u/FierceDeity_ Jan 08 '20

Well many people player games in browsers and flash was the king on that for a long time, and it would still be especially for amateur made games

24

u/SanityInAnarchy Jan 07 '20

Almost everything you said is the exact opposite of my experience.

Flash was easier to block, because usually you wouldn't lose anything by blocking it, and if you did, there was usually an obvious rectangle to show you what broke. With HTML5, it's still easy to just turn off JavaScript, and it breaks less than you'd think, but it still breaks stuff. And there were other advantages -- Flash games were the indie scene before it moved to Steam, and I don't think it has ever been as easy to get into game development and get your game in front of a ton of people as it was with Flash portals.

But if HTML5 uses more resources, that's probably a function of sites that are actually maintained also getting more bloated over time. Back when Flash was huge and disabling it saved a ton of resources, even something as simple as video playback was a thousand times faster using anything but Flash -- not just HTML5, but plain old <object> tags embedding Windows Media Player or whatever.

Flash also wasn't terribly accessible, was good at zooming everything proportionately and terrible at reflowing to the display size you actually had, and just chugged doing pretty much anything at higher resolutions. It technically had cross-platform support, but that was pretty poor, too -- towards the end, out of all the weird browsers people like to use on Linux, only Chrome supported Flash.

And since it was proprietary, only Adobe could fix any of that, and they were incredibly slow. Flash alone probably held browsers back from going 64-bit for years...

For once, I'm glad Steve Jobs was an asshole and shut them out of iOS long enough to cripple them on mobile. That was probably the beginning of the end -- not the sluggish performance, not the instability, certainly not the security nightmare, we'd probably still be stuck with it if it got a foothold on our phones.

8

u/patssle Jan 07 '20

For once, I'm glad Steve Jobs was an asshole and shut them out of iOS long enough to cripple them on mobile.

Except there was no replacement ready - HTML5 wasn't universally natively supported. 3rd party solutions like JWPlayer were needed to serve both Flash and HTML5.

2

u/SanityInAnarchy Jan 08 '20

That's just it -- thanks to Apple, HTML5 was on even footing with Flash, which also was no longer universally supported. So you had to do both, you couldn't just be like "HTML5 would be nice, but we have to support Flash anyway, and then why bother also doing HTML5?"

Which was annoying as a dev, but great as a user -- every now and then, a site got their detection backwards, and did Flash-with-a-fallback-to-HTML5 instead of the other way around. But there was a long, glorious period where simply turning Flash off in about:plugins made everything faster, and forced a bunch of sites to fall back (forward?) to HTML5.


Also, why did people even bother with JWPlayer? That's really only relevant for video, at which point... why not just give people the video:

<video controls width="720" height="480">
  <source src="/your/video.mp4" type="video/mp4">
  <source src="/your/video.ogv" type="video/ogg">
  <object width="720" height="480" data="/your/video/player.swf" ...>
    <!-- Heck, why not add Windows Media Player if they're old enough? -->
    <embed src="/your/video.avi" ...>
  </object>
</video>

No JavaScript needed, all browers at the time supported (even Firefox and their refusal to use MP4), and the browser's default HTML5 controls are IMO way better than the JWPlayer ones. I guess JWPlayer made a decent Flash player that I could drop into the above?

2

u/[deleted] Jan 07 '20

Sad but true.