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

25

u/[deleted] Jan 07 '20

There's been a long history of different people at different times asking Macromedia and then Adobe to opensource the player.

My conclusion is that there actually is no reason. What Adobe claimed the last time they commented on this issue was that the player uses some proprietary tech (most notably, MP3 codec) that they are not at liberty to open (since it's not theirs, they have bought the license only). But, really, if they wanted to, there would've been a way around it, same way as Firefox can load proprietary video / audio codecs, if the user have them already installed.

Adobe managers were just shitheads: either too greedy, or too lazy / indecisive to do anything about it. They were too afraid to give anything away, even if it was obviously in their own interest. Here's my story of trying to get them to opensource, or just to even allow me to "clean-room" reproduce one of their "products" when they ditched Flex.

So, in order to compile any SWF with Flex compiler you need a special SWC (that's similar to object file in Linux or DLL in MS Windows). This SWC is "special" because it contains the definitions of Flash Player built-in functions, variables etc. Think about it as C headers / Java interfaces. SWC is simply a ZIP file with an XML containing names of functions in a library with their signatures / namespaces. So, understanding it is really easy. The format of SWC was never officially "opened", but, honestly, it's just a ZIP'd XML... On top of it, Adobe made the API public. So, one could, quite realistically, never open the SWC, and yet build the copy that would work just the same.

Knowing all this, I asked Adobe / Apache Flex maintainers if they wanted / would allow this SWC to be open-sourced / replicated. Adobe never honored this request, and required anyone who wanted to use Apache Flex to download the SWC from their site. Apache Flex maintainers, scared by the recent Oracle vs Google case would not rewrite the SWC...


Bottom line: greed and stupidity are the reason why Flash Player failed / was not open-sourced.

8

u/kshep92 Jan 07 '20

Flex

Ah yes, I have so many fond memories working with this platform and FlexBuilder was a dream. I never did get into Flash animation itself, but Flex had so much potential. If it had been managed better I think it might have saved us from the JavaScript hell we now face for web dev.

5

u/spacechimp Jan 07 '20

Flex really was a decade ahead of its time.

Angular now scratches that itch for me. TypeScript is practically the same language as ActionScript due to ECMA standard -- so creating components with HTML and TS feels very much like MXML and AS. There's still a lot of BS involved in JavaScript dev, but the Angular tooling hides a lot of it pretty well.

2

u/kshep92 Jan 07 '20

Not meaning to stray too far off-topic but Angular broke my heart with the release of V2. I absolutely loved working with 1.x (even with that damn $scope) but 2.x just seemed so complicated and bloated and the template syntax for bindings is weird too.

I will agree, though, that TS hides plenty of the JS BS but the trouble starts (for me) when you try to use legacy libraries or new browser APIs that don't have type support.

1

u/spacechimp Jan 07 '20

If you are able, I recommend looking at it again for what it is (a new framework) rather than comparing it to what came before. It's often just different, and not really more complicated -- and when it is, it's only to offer much more useful functionality.

The DefinitelyTyped repo is huge. It's not often that I can't typings for a library. When that does happen, the lib is still useable (it's still just JavaScript, after all), but that's a hint that the library is unsupported and there are likely better options elsewhere (like AngularJS itself).

Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM. There is also a polyfills.ts file where you can turn on/off a couple of dozen suggested polyfills for old/new stuff, or add your own.

1

u/kshep92 Jan 08 '20

All good advice, but I've found a new home with Vue for the moment and it's working out OK. Although, I'd still give Angular another look at a later point; I think I just need a new perspective on it and try to understand it a little more.

Not sure what new browser APIs you mean. Angular internally emulates some stuff that isn't even fully baked by the W3C yet, like shadow DOM

I was actually talking about TypeScript itself in this instance. I found myself having to create interfaces far too often just so the compiler would shut up.

1

u/strothjs Jan 09 '20

Unfortunately, Vue isn't as TypeScript friendly as either React or Angular. The next version of Vue is in development and one of their goals is improving the ergonomics.

1

u/kshep92 Jan 09 '20

Sadly that's the truth, but I'm hopeful for 3.x

20

u/SlinkyAvenger Jan 07 '20

Greed and stupidity? More like who - out of anyone in the development chain - would want to allocate resources to refactoring decades old code on life support to decouple licensed dependencies?

How would you feel if you were a developer assigned to that? You'd probably freshen up your resume with a quickness.

1

u/[deleted] Jan 07 '20

Did you read what I wrote?

I actually volunteered to do the open-sourcing part on my free time, without pay. What the fuck are you talking about?

25

u/SlinkyAvenger Jan 07 '20

Yeah I read what you wrote but you can't tell your licensee "hey I gave your code to some rando volunteer so they can remove it but it's totally cool." so I ignored that bullshit to focus on how companies actually work.

-11

u/[deleted] Jan 07 '20 edited Jan 07 '20

Well, what you write is indeed bullshit... and you are very focused on it, that's true.

The code was always there. Anyone who wanted to have LAME's codecs had just to, idk, stretch their hand, and they would get it. Showing their code to someone wasn't ever a real problem.

Flash Player was decompiled multiple times by multiple people / organizations. Many had the original sources, or some version of them (Google and Microsoft, beside other smaller companies, had the sources). If Adobe realized earlier that the player is going to tank because they wouldn't get up their asses and put some effort into open-sourcing it, I bet the story would've been different. Penny-crunching combined with ultimate stupidity is what failed this project. The typical corporate "not my job", combined with managers of the player project all seeing it as a stepping stone for their next promotion is what did it in.

The Player itself wasn't a big project. I don't believe there were ever more than 10 people working on it, but, essential stuff was more like 3-4 people. AS compiler, for example, was written by one person, rendering and sound playback was, again, just one person. In terms of human resource cost, it was negligible. Having one less manager for a month would have saved enough money to do the work necessary to open-source it.

4

u/BCMM Jan 07 '20 edited Jan 07 '20

The code was always there. Anyone who wanted to have LAME's codecs had just to, idk, stretch their hand, and they would get it. Showing their code to someone wasn't ever a real problem.

LAME is open-source. The mp3 implementation they used for Flash almost certainly is not. I think the concern is the copyright on the mp3 decoder they licenced from somebody else, not the (expired) patent on the mp3 format. It doesn't matter if the whole world now knows how to make an mp3 decoder - a specific mp3 decoder is still protected by copyright. Even if this protection isn't really useful to anybody, it's still the way the law works.

Modifying the (ancient and no doubt extraordinarily messy) Flash codebase to use LAME would require non-trivial effort. It is very likely that this work would have to be done within Adobe, because their licence agreement with some third party does not permit them to show you the codebase in its current form.

3

u/[deleted] Jan 07 '20

LAME become open-source very recently. They weren't open-source when this question was meaningful.

4

u/BCMM Jan 07 '20

LAME has been LGPL for over 20 years, and before that it was GPL. However, isn't that's beside the point anyway? I'm really not sure what you're trying to say any more.

1

u/[deleted] Jan 07 '20

My bad. I, for some reason, thought that LAME were the patent holders. Apparently that's Fraunhofer Society of Germany.

Anyways, that doesn't change the main point: that wasn't a huge effort. The player code itself was small and well-known to a lot of people.

The code related to sound codecs was actively worked on right until the latest versions of the player, with new features being added, new codecs being added (AVC was added with MP4 support, Speex was added in one of the latest versions of the player). The relation between SWF format and the codec is really minimal (I wrote a simple MP3 player in AS3 that extracted MP3 audio from SWF and played it). The interface between AS3 and the player regarding audio was also minimal (maybe five or so functions).

Again, a monthly salary of one greedy and stupid manager managing this project would probably cover most costs associated with open-sourcing it. Not to mention the financial benefits Adobe would have from doing so. They simply did something stupid: they couldn't believe that the most widely installed program in the world will disappear over few years. They made a financially abysmal decision. There's no "reasonable" explanation. They screwed up big time.

2

u/BCMM Jan 07 '20 edited Jan 07 '20

My bad. I, for some reason, thought that LAME were the patent holders. Apparently that's Fraunhofer Society of Germany.

It looks like you might still be failing to appreciate the distinction between patents and copyright.

Again, a monthly salary of one greedy and stupid manager managing this project would probably cover most costs associated with open-sourcing it. Not to mention the financial benefits Adobe would have from doing so. They simply did something stupid: they couldn't believe that the most widely installed program in the world will disappear over few years. They made a financially abysmal decision. There's no "reasonable" explanation.

The "reasonable" explanation is that it would cost them money, and they're a for-profit company. I think you're drastically underestimating the cost of being able to confidently say that third-party IP has been removed from a codebase. For a start, there would have to be lawyers involved as well as developers.

→ More replies (0)

3

u/jl2352 Jan 07 '20

really, if they wanted to, there would've been a way around it,

From Adobe's point of view, it's not if they can or cannot. It's why bother? They are the ones footing the bill and taking on the liability if it's wrong (i.e. law suits).

  • Why pay for the lawyers to audit and work out what work needs to be done to avoid legal headaches?

  • Why pay developers to rip out propriety code for new code that does the same?

  • Why do this to open source a player for a technology no one really uses anymore?

If there aren't good answers for those questions then it's a bit silly to say 'they are greedy shitheads'. Why are they paying for this instead of building new stuff?

1

u/[deleted] Jan 08 '20

Why pay?

Because ROI. Adobe was struggling to monetize Flash Player. Their strategy for monetization was outright retarded. They targeted large enterprise development shops for things like intranet consoles (think VMWare portal, for example). And what they wanted to sell to them is the license for Flash Builder (the Eclipse plugin they were developing). They completely missed the indie games developers, for example. Turned out that large enterprise shops are very crappy contributers: they never helped Adobe with developing its open-source products, essentially they send their reps to demand more and more new features with ever decreasing marginal utility. And so Adobe was adding half-baked features, often in contradiction to each other, instead of focusing on the quality of the product.

What they could have done differently is, for example, organize a platform for indie game developers similar to Google Play / App Store. Or, concentrate on developing few products that used Flash Player (they had crappy video conferencing software that did that, but they never invested enough effort into it). Or, they could've concentrated on FMS (Flash Media Server) that did video streaming that required Flash Player to play it. That was a huge thing at one point, and then Adobe mismanaged it into oblivion...

1

u/jl2352 Jan 08 '20

Your post is rewriting what they could or should have done. Not what will happen. I don't think any of your ideas will come to fruition today.

Why should they pay for the development to open source it today? I don't think they would get any return on investment.

Btw I'm actually in favour of it being open sourced. It's just from Adobe's perspective they are the ones footing the bill. It is rude to expect them to do for no real reason at all.

1

u/[deleted] Jan 08 '20

Today is too late to do anything with Flash. The ship has already sailed.

We are talking about the events from 2011 more or less, that's when it made sense to open-source Flash Player or related technologies.

-1

u/shevy-ruby Jan 07 '20

uses some proprietary tech (most notably, MP3 codec) that they are not at liberty to open (since it's not theirs, they have bought the license only).

That is a cop-out.

This part could easily be replaced with free, permissible open source code.

Adobe does not open source it because THEY DO NOT WANT TO.

A wonderful example why even the BSD/MIT style model would fail.