News for hackers. Stuff that matters.
Re:Flashpoint: a webgame preservation project by Animats on Friday January 31, 2020 @02:04AM (#22199724)
Next, Flash emulation running under WebAsm?
Re:Flashpoint: a webgame preservation project by j-james on Friday January 31, 2020 @03:23AM (#22200011)
This exists as Ruffle [1] and is coming along quite well.

The lead developer is a Newgrounds employee (Mike Welsh) and is the author of Swivel [2], a Flash to video converter already in use on Newgrounds. They're targeting both browsers and the desktop with Rust and WebAssembly, and it can already run most basic Flash animations I've tested.

I personally am very excited, having grown up in the Flash era of the Internet, where everything from online coding languages (Scratch) to authors' websites (J.K. Rowling, others) to games and webcomics (take your pick) were made in Flash. Flash was such a universal medium that there's still significant amounts of our Internet history that nobody's converted - or been able to convert - to HTML + JS. And even then, many conversions are buggy and lacking in functionality. Having something like Ruffle available as an extension or a wrapper for legacy websites would be incredible.

If anyone's interested in Ruffle's roadmap, it's available here [3].

[1] https://github.com/ruffle-rs/ruffle

[2] https://github.com/Herschel/Swivel

[3] https://github.com/ruffle-rs/ruffle/wiki/Roadmap

Re:Flashpoint: a webgame preservation project by wesleyhill on Friday January 31, 2020 @03:02AM (#22199938)
That is already under way, check out Ruffle [0] [1] a Flash player emulator written in Rust with WebAssembly.

Newgrounds (sponsoring development of Ruffle) are already using Ruffle on some of their flash content.

[0] https://ruffle.rs

[1] https://github.com/ruffle-rs/ruffle

Re:Flashpoint: a webgame preservation project by apignotti on Friday January 31, 2020 @04:56AM (#22200396)
Re:Flashpoint: a webgame preservation project by OmarShehata on Friday January 31, 2020 @06:37AM (#22200850)
This sounds like a fascinating approach. How old is your company? Do you already have clients who you've ported stuff to the web for this way that you can share?
Re:Flashpoint: a webgame preservation project by apignotti on Friday January 31, 2020 @07:04AM (#22200981)
The company (Leaning Technologies) exists from 2012. This specific technology is new and we have multiple commercial early adopters already signed up. We also provide porting tools from C++/Java to Javascript/WebAssembly which are mature and used by many customers.
Re:Flashpoint: a webgame preservation project by the_duke on Friday January 31, 2020 @02:14AM (#22199763)
I don't think Adobe ever open-sourced the Flash codebase, right?

The attempts at building something compatible like shumway have all been rather unsuccessful.

Even if the code was available, porting it to WASM would probably be a pretty big task.

It would be great to retain access to the huge amount of flash content out there though.

Re:Flashpoint: a webgame preservation project by Ace17 on Friday January 31, 2020 @02:33AM (#22199834)
Not having the source code sucks, but it's not a showstopper ; some videogame preservation websites have managed to workaround this issue.

It's possible to play "Prince of Persia" in the browser (through DOSBOX recompiled to Javascript).

It's even possible to play the original Windows 95 (!) Pinball in the browser. Seeing the Windows 95 cloudy boot sequence in a Javascript canvas is disturbing. The game isn't as smooth as native, but it's definitely playable. ( https://classicreload.com/win9x-3d-pinball-space-cadet.html )

Re:Flashpoint: a webgame preservation project by cornedor on Friday January 31, 2020 @02:28AM (#22199815)
The opcode’s were documented, and tools like Haxe do compile to swf. There is a lot of information available about the scripting part, but indeed it would be a great task. However I can’t wait to compile some C++ code using FlasCC [1] and run that in a wasm player.

[1] https://labs.adobe.com/technologies/alchemy/

Re:Flashpoint: a webgame preservation project by miedpo on Friday January 31, 2020 @02:42AM (#22199872)
Yeah, if I remember right they couldn't open source parts of it because some parts had other licenses in it. I'm recalling (but I could be wrong) that they wanted to in 2011 or so... but couldn't because of that. Don't remember the source though.
Re:Flashpoint: a webgame preservation project by SXX on Friday January 31, 2020 @06:11AM (#22200746)
> The attempts at building something compatible like shumway have all been rather unsuccessful.

Alternative proprietary implementation was rather successful for game development. Sadly Scaleform GFx is now discontinued too and obviously we'll never see Autodesk publish anything under open source license.

Re:Flashpoint: a webgame preservation project by Cthulhu_ on Friday January 31, 2020 @03:26AM (#22200028)
I wish Adobe would start making publications though, they know Flash has been end-of-life for ages yet there's a lot of earlier internet media still in that format.
Re:Flashpoint: a webgame preservation project by pjmlp on Friday January 31, 2020 @04:13AM (#22200216)
Flash is now Animate.
Re:Flashpoint: a webgame preservation project by amelius on Friday January 31, 2020 @10:41AM (#22202533)
> I don't think Adobe ever open-sourced the Flash codebase, right?

This shows we should only allow technologies on the web if they have a clear path to preservation.

I think a similar thing should hold for DRM'ed video. Such videos may be supported on the web, but we should demand they lose their DRM when their copyright expires.

Re:Flashpoint: a webgame preservation project by gioele on Friday January 31, 2020 @08:34AM (#22201502)
Or just Flash running under a FLOSS implementation of Flash in the browser?

Between GNU Gnash [1] and Lightspark [2] one should be able to run quite a few of those (non v10) Flash programs.

[1] https://www.gnu.org/software/gnash/ [2] https://lightspark.github.io/

Re:Flashpoint: a webgame preservation project by pjmlp on Friday January 31, 2020 @04:13AM (#22200212)
Yes, Flash's revenge, WebAssembly + WebGL/WebGPU.