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

103

u/suhcoR Jan 07 '20

Why don't they open-source it?

95

u/calumbria Jan 07 '20

Already exists, things like OpenFL is common for gamedev. Dicey Dungeons on steam is built on HAXE with desktop flash.

0

u/[deleted] Jan 07 '20

[deleted]

50

u/mx-chronos Jan 07 '20

It's not open source but the player has been available as a standalone EXE forever - just grab the Projector download for your OS and it can open any SWF file you've got onhand. Not a perfect solution for larger games that might be looking to load external libraries or depend on browser features, but it goes a long way for archival purposes.

40

u/Crestwave Jan 07 '20

Not a perfect solution for larger games that might be looking to load external libraries or depend on browser features, but it goes a long way for archival purposes.

The Flashpoint project aims to solve this, automatially handling things in the background of its launcher.

0

u/[deleted] Jan 07 '20

[deleted]

1

u/Crestwave Jan 08 '20

Logs could help. I think I usually have to wait until the downloads are done then relaunch it unless my internet is fast. I exclusively use the Infinity version, and pretty much all games I've tried worked, and I'm on Linux, which is unsupported.

4

u/DownvoteALot Jan 07 '20

That's not open source though. Licensing may be a problem. And this means no porting to future platforms.

10

u/tigger0jk Jan 07 '20

ruffle is an open source emulator currently in development that newgrounds is planning on using

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.

→ More replies (0)

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.

→ More replies (7)

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.

→ More replies (1)

0

u/[deleted] Jan 07 '20

[deleted]

4

u/Dwedit Jan 07 '20

That package is literally Adobe's player (32-bit ActiveX Version), plus a small player app which embeds that ActiveX control.

Perhaps you'll still be able to use Microsoft Internet Explorer to run Flash with that installed.

→ More replies (1)