News for hackers. Stuff that matters.
Re:Nitrome to convert its Flash game library to HTML5 by bogwog on Wednesday May 27, 2020 @02:41PM (#23327877)
Is "the right way" in quotes because it's sarcasm? This is a really cool idea, but very impractical. I think most would agree that "the right way" would be to port the game to HTML5, either using straight JS or a technology like Haxe and OpenFL.
Re:Nitrome to convert its Flash game library to HTML5 by apignotti on Wednesday May 27, 2020 @02:58PM (#23328141)
We believe this is "the right way" since it's the only possible way of _accurately_ preserve all Flash content.
Re:Nitrome to convert its Flash game library to HTML5 by bogwog on Wednesday May 27, 2020 @05:38PM (#23330372)
It's certainly not the only way. It's just a more convenient alternative to running Flash player locally and downloading SWFs. The convenience is definitely a major improvement to the process, but it could potentially end up in a legal gray area after Adobe stops distributing their binaries.
Re:Nitrome to convert its Flash game library to HTML5 by dashlite on Thursday May 28, 2020 @09:41AM (#23337085)
Now that's impractical, because of cost. There's a wealth of SWF content that will never ever be ported.

An SWF runtime is feasible, it's actually not a very complicated format. The devil is in the details, but a lot of content does not use that many features.

Re:Nitrome to convert its Flash game library to HTML5 by Sophistifunk on Wednesday May 27, 2020 @11:53PM (#23333213)
This is a pipe dream, as Flash has capabilities you just don't get in HTML+JS without writing an entire VM, such as text metrics and weak references.
Re:Nitrome to convert its Flash game library to HTML5 by bogwog on Thursday May 28, 2020 @12:04PM (#23338869)
Reconciling those differences is part of the porting process. I do agree that it's a "pipe dream" to expect every single SWF out there will be ported, but it is definitely the right way to do it if you're trying to save a SWF.

Relying on old binaries of Adobe Flash Player is probably not a good idea from a legal perspective. I'm not a lawyer, and I haven't read the EULA, but I wouldn't be surprised if it didn't allow that type of redistribution.

Even if JS+HTML5 dies for some reason in the future, it's not a closed-source proprietary platform like Flash was, so preserving stuff will be much easier.

Re:Nitrome to convert its Flash game library to HTML5 by pjmlp on Thursday May 28, 2020 @02:15AM (#23334012)
Hence WebAssembly + WebGL/WebGPU.
Re:Nitrome to convert its Flash game library to HTML5 by coopsmgoops on Thursday May 28, 2020 @01:51PM (#23340242)
There is functionality that is just not available while in the browser sandbox, so some flash apps will never work. But I'm happy to see this happening.
Re:Nitrome to convert its Flash game library to HTML5 by zwetan on Thursday May 28, 2020 @06:34AM (#23335706)
WebAssembly not gonna give you access to syscall that are simply not there in the Web API
Re:Nitrome to convert its Flash game library to HTML5 by pjmlp on Thursday May 28, 2020 @07:11AM (#23335940)
Text metrics, the graphics engine implemented on top of WebGL/WebGPU does it itself.

Weak references are coming, https://github.com/tc39/proposal-weakrefs

Re:Nitrome to convert its Flash game library to HTML5 by zwetan on Thursday May 28, 2020 @01:49PM (#23340210)
no, I'm talking about this

[0] does support for socket(udp and tcp)? [1] encountered with problem when Porting UDP socket communication c code using emscripten

one example among other, and so you can use WebAssembly all you want you will never be able to implement flash.net.DatagramSocket

[0]: https://github.com/WebAssembly/design/issues/1251 [1]: https://github.com/emscripten-core/emscripten/issues/5196

Re:Nitrome to convert its Flash game library to HTML5 by pjmlp on Friday May 29, 2020 @01:49AM (#23346648)
Yes you can, polyfill using WebSockets.

It would require a server component as gateway, so what.

Re:Nitrome to convert its Flash game library to HTML5 by Sophistifunk on Thursday May 28, 2020 @09:56PM (#23345509)
Preaching to the choir my friend, this is the correct path.