News for hackers. Stuff that matters.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by tgtweak on Sunday August 18, 2019 @01:20AM (#20728396)
I'm sort of at a loss to this.. flash was disliked because of three things, for the most part:

• Capability of ActionScript (which can harbor malware) along with potential vulnerabilities in the interpreter itself.

• Memory and CPU usage

• Proprietary

Does this rust variant even address all of these? Are we hoping to shim flash support into wasm-supported browsers? What good would this bring, specifically in regards to native flash's shortcomings?

Not trashing the project, cause it's actually really cool, just curious why.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @01:42AM (#20728459)
Outside the HN bubble, in the designers and game development community, Flash was loved.

* Powerful graphical tooling, where HTML/CSS are still catching up to

* Guarantee to actually have hardware acceleration, instead of CSS z-index tricks hoping for the best

* It was the first to support game engines on the Web, like Unreal

Unknown to many, Flash apps actually do exist on mobile, because Flash also AOT compiles to native code.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by Causality1 on Sunday August 18, 2019 @01:52AM (#20728496)
Additionally, Flash was an amazing medium for animation in the era before high speed internet. Because much of it is vector based, file sizes are very small and videos from 2003 scale perfectly onto a 4K monitor. Can't say that about any other internet videos from the pre-youtube era.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by MrEldritch on Sunday August 18, 2019 @06:03AM (#20729304)
It was also hugely loved among amateur artists and animators, which led to the creation of most of the vast array of creative works I enjoyed as a kid.

I don't think I've ever quite gotten over my resentment at the tech community for killing Flash in the name of "security".

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by bsaul on Sunday August 18, 2019 @08:22AM (#20729764)
I don’t remember security being the reason flash was killed, but rather mobile being the culprit. Flash on first gen smartphone was just impossible to run, it was slow, not meant for touch, basically a horrible user experience that also drained batteries.

So, most ads skipped to JS or gif animation, and most game developers rushed to develop for the app stores (where money could supposedly be made much more easily than on the web).

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @08:57AM (#20729895)
Plenty of those app store games use AOT native compiled Flash.

https://www.adobe.com/devnet/air/articles/ios-packaging-comp...

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by andai on Sunday August 18, 2019 @07:14AM (#20729542)
Steve Jobs killing it the name of ecosystem lockdown, you mean? He killed the greater part of my childhood along with it.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by checktheorder on Sunday August 18, 2019 @09:04AM (#20729920)
As someone who dealt professionally with security issues from about 2000 onwards, many involving Flash 0-days, I have about as much fond remembrance of Flash as I do for polio or smallpox. I regard it as an infectious scourge that humanity has finally largely eradicated, and we're healthier for it.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by josefx on Sunday August 18, 2019 @10:22AM (#20730276)
As someone who used browsers in 2000 I have the same fond remembrance of JavaScript. Yet for some reason it still spreads like aids instead of following flash on its way out.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by checktheorder on Sunday August 18, 2019 @01:15PM (#20731478)
Apples to oranges. Javascript is an open-standard language, not a closed black box runtime like Flash.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Monday August 19, 2019 @01:04AM (#20735018)
Ah, so now it is ok to have possible exploits or pages that are just a big canvas, 'cause open standards. /s
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @08:58AM (#20729901)
Only for the devs that didn't follow up on it.

https://www.adobe.com/devnet/air/articles/ios-packaging-comp...

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by vr46 on Sunday August 18, 2019 @06:53AM (#20729476)
Long-time AS programmer here. It was on its way out either way. The runtime just wasn't up to scratch and accessibility implementation was often ignored. I made my last piece of Flash work in 2011, knowing this would be the last time I worked on AS. Flex was a bust, the frameworks were all over the place, and ultimately the developers of libraries and frameworks were moving on anyway to other interesting things like iOS development. Key people just lost interest too.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @08:57AM (#20729898)
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by ryacko on Sunday August 18, 2019 @01:56PM (#20731729)
Yes, but those same artists now use open source 3D animation, and probably contribute to various indie game projects. Flash didn’t go away entirely because of security, there was no innovation, and the most anyone could aspire to was making adventure games or flash stick figure games/movies back then.

I personally miss the existence of thousands of Planetarion clones on the internet.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Monday August 19, 2019 @05:34AM (#20736255)
Those artists are still using AOT compiled Air runtime, or have migrated to either Animate CC or Unity, although a minority might have given a shot to OpenFL/PlayCanvas.

There is no miraculous contribution to open source 3D animation going on.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by ryacko on Monday August 19, 2019 @04:01PM (#20741263)
There’s no census of independent art, and what is available to me is on the recommendation sidebar of various video sites, so I disagree, but acknowledge we live in different echo chambers.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by MrEldritch on Wednesday August 21, 2019 @09:38PM (#20763845)
>the most anyone could aspire to was making adventure games or flash stick figure games/movies back then.

As a counterexample, I present: Homestar Runner. Also, Homestuck.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by rad_gruchalski on Sunday August 18, 2019 @11:51AM (#20730927)
Let’s not forget Flex and Air. These two were way ahead of its time. There is still no technology out there that would match the simplicity of these two combined.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by xeeeeeeeeeeenu on Sunday August 18, 2019 @02:55AM (#20728680)
>Memory and CPU usage

I don't understand why people keep repeating this. This is simply not true, Flash wasn't slow at all. It took HTML5+js+canvas years to catch up with Flash performance-wise.

Even after the introduction of GPU acceleration in browsers such as IE9 and Firefox 4, on typical machines of that period HTML5 was still far too slow for browser games, while Flash was usable even on Pentium III-era computers.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @05:49AM (#20729262)
I remember working at a major online publisher in 2006 and having to spend an entire week going through bureaucratic layer after bureaucratic layer because one of our advertisers' SWF files had a simple horizontal scrolling animation that was pegging the CPUs of our gutsy dev boxes at 100%.

Obviously it was possible to code competent stuff with Flash; that kind of competence tended to be limited to few expert publishers.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by danShumway on Sunday August 18, 2019 @11:54AM (#20730942)
There are two sides to this:

Flash was performant in the sense that it allowed you to run decent graphical games at an acceptable framerate.

Flash was unperformant in the sense that it stole all of your computer resources to do it, and didn't play well with other elements on the page that needed those resources.

But GP is right that when canvas started getting pushed as an alternative to Flash, you just couldn't do as much with it. I remember seeing people online talk about how Flash could finally die, and then I'd load up the demo projects that they linked to, and they'd chug at 15 fps on my computer -- a computer that was more than capable of running a 30-60fps bullet hell flash game.

You have to remember that the game developer community's experience with Flash was, "you go to a page, full-screen my thing, and then play it." They weren't worried about how Flash interacted with the rest of the web, they just wanted good framerates and audio controls. The web developer community's experience with Flash was, "you go to my page, and suddenly everything slows down because Greg in marketing wanted to make a funny ball bounce around the side bar." They didn't care about whether canvas was hitting 60fps with hundreds of sprites, they just didn't want their webpages to freeze.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by viraptor on Sunday August 18, 2019 @04:24AM (#20728962)
> I don't understand why people keep repeating this.

IMO, it's because flash was not great with resources, but good enough to try advanced/creative things. Sure, canvas wasn't even a common thing at the time, when flash supported many video/graphics use cases.

But that meant people thought a few effects on the website was worth including a flash animation which pegged your CPU at 100% for a while. Or auto played some FLV which killed performance for the entire website.

The performance was also very platform dependent. "Linux can support 128 cores, but can't play YouTube without stuttering." was a meme, but also the truth for many users for a long time. Then Adobe pretty much abandoned the plugin support on Linux.

So sure, the tech was great, and many people implemented it - maybe too many and too early.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by clouddrover on Sunday August 18, 2019 @02:08AM (#20728545)
> What good would this bring

The project's roadmap (https://github.com/ruffle-rs/ruffle/wiki/Roadmap) says: "The Flash Player has existed since 1996, and there are millions of pieces of Flash content around the web. This content represents an important piece of computing history and culture ... Ruffle's chief goal is to preserve this legacy content and keep it accessible for the future."

I think that's a good goal.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by simcop2387 on Sunday August 18, 2019 @01:30AM (#20728423)
Putting it into WASM at least will deal with a lot of the potential issues that AS could have, simply because WASM doesn't have access to the outside world to attack anything.

As for RAM and CPU usage, there's not much that can likely be done. Better garbage collectors and other things like that might help but Flash itself was the cause of a lot of those problems.

If this was a full implementation it'd be something open source that could run flash files/movies, so it'd be a bit less proprietary. There still wouldn't be open source editors that could handle doing it all so it wouldn't be complete or even close as an ecosystem.

That said, all this could end up creating a good alternative for when all the browsers and adobe drop flash support in the next year (Firefox ESR is the only one I know of that's committed to supporting it until the end of 2020). A sane and safe migration path would be really useful for somewhere like newgrounds or archive.org to preserve internet history.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by snek on Sunday August 18, 2019 @01:38PM (#20731620)
Unlike flash player, this runs in the browser sandbox. It's limited to what WASM and JS can access. It's also OSS, so definitely not proprietary. I can't answer the resource usage part.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @01:41AM (#20728455)
• Largely assumed mouse/keyboard interaction and had no plausible mechanism for responsive design

• Proven track record of terrible security bugs

• Was most frequently used for ads

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @01:44AM (#20728463)
* It remains to be proven how WebAssembly is so much better than everything that came before it (hackers are yet to start having fun with exploits)

* Flash games market was huge

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @04:47AM (#20729042)
I'm not comparing Flash to WASM—I don't care about it, I don't use it, I'm suspicious of why people really want it. But at least WASM has a specification and independent implementations.

Regardless, that's whataboutery. Flash Player was famously riddled with security bugs. The question is [Browser + Flash Player] vs [Browser] and the answer is obvious. Removing an entire surface area—a pure subset—is always a security win.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @06:58AM (#20729496)
All the down-voting is hilarious. Clearly there are still some people feeling quite raw about the loss of this proprietary web extension. If you think I'm wrong, please tell me about it.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by kryptiskt on Sunday August 18, 2019 @07:13AM (#20729537)
There is twenty years of Flash content that shouldn't be erased from history. This isn't any different from people working on emulating old systems.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @09:26AM (#20730007)
I'm 100% on board for projects like Ruffle to exist for reasons of archiving history.

My objection is only to people who in any way lament the death of Flash. Consider that nobody is scrambling to build a clone of the Netscape Navigator 4 parser and renderer. The fact that this project exists is testament to its importance for a brief period—but also to the awfulness of the canonical implementation.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by fenomas on Sunday August 18, 2019 @10:18AM (#20730251)
People talking fondly about flash are thinking of the way that it massively lowered the bar to creating interactive content on the web, ushering in an explosion of indie games, animations, videos, etc., the like of which the internet had never seen and may never see again. The "awfulness of its implementation" (compared to what, one wonders?) is orthogonal to what people liked about it.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @10:50AM (#20730454)
Absolutely, Flash inspired a form of artistic communication. But it wasn’t as egalitarian as you imply—and to the extent that it was egalitarian, I suspect that was on the back of rampant software piracy.

Meanwhile, plenty of treasure has been found in the smoldering ashes of a dumpster fire. Rick Astley inspired an entirely new genre of comedy. That doesn’t speak to the inherent merit of his music.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by buboard on Sunday August 18, 2019 @12:12PM (#20731053)
There are things that were easy to do with flash, and are still a nightmare with html, like group video lectures with chat. Adobe even provided their own media server. Replicating that with html is not at all easy to solve.

And no, making “an app for that” is no replacement

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @09:49AM (#20730112)
Flash might be dead on Web, but it is still doing quite alright on desktop and mobile.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by inferiorhuman on Sunday August 18, 2019 @06:16AM (#20729351)
Flash games market was huge

So what? Flash created all sorts of usability problems. Horribly inefficient video playback, keyboard focus stealing, not responding to mouse/trackpad input the way native widgets do.

Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by pjmlp on Sunday August 18, 2019 @08:48AM (#20729861)
Thankfully we now have WebAssembly + WebGL and everything is way better. /s
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by dplgk on Sunday August 18, 2019 @03:56AM (#20728873)
Flash handled responsive layouts a decade before the term even existed.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @04:39AM (#20729017)
I think you're remembering Flash with rose tinted glasses. It's a scripted environment—you can make it do anything given enough time. Almost nobody ever did.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by bonestamp2 on Sunday August 18, 2019 @10:03AM (#20730178)
Adobe's Flex framework (now open source at Apache) made it possible to build a responsive layout in a few minutes... not much time needed at all (that's where the name "Flex" comes from). Some of the people who built Flex went on to build AngularJS at Google. There's nothing rose tinted about it -- Flash/Flex were definitely an important and positive influence on modern web frameworks.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by manigandham on Sunday August 18, 2019 @05:39AM (#20729232)
Isn’t that the same as responsive design in HTML then? It’s certainly not automatic.
Re:Ruffle – An Adobe Flash Player Written in Rust Compiled t... by sjwright on Sunday August 18, 2019 @06:59AM (#20729500)
I didn't say anything was automatic.