LWN: Comments on "The Shumway open SWF runtime project" https://lwn.net/Articles/524734/ This is a special feed containing comments posted to the individual LWN article titled "The Shumway open SWF runtime project". en-us Fri, 29 Aug 2025 09:10:34 +0000 Fri, 29 Aug 2025 09:10:34 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net The Shumway open SWF runtime project https://lwn.net/Articles/525804/ https://lwn.net/Articles/525804/ kripkenstein <div class="FormattedComment"> Pyjamas is very useful, but it doesn't have 100% compatible semantics with Python - it uses the underlying JS semantics. It also doesn't support the Python standard library. Compiling and optimizing PyPy would get around both of those issues.<br> <p> </div> Tue, 20 Nov 2012 11:55:32 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/525787/ https://lwn.net/Articles/525787/ philh <div class="FormattedComment"> <font class="QuotedText">&gt; If Java or Python would JIT into JS, thereby reusing the JS JIT, then they could be very fast in the browser too.</font><br> <p> I think you may be looking for "pyjamas": <a href="http://pyjs.org/">http://pyjs.org/</a><br> (although, not sure about the JIT bit of that, but it does include a python to JavaScript compiler, so would perhaps be a start)<br> <p> </div> Tue, 20 Nov 2012 01:01:05 +0000 codec support https://lwn.net/Articles/525408/ https://lwn.net/Articles/525408/ coriordan <div class="FormattedComment"> Streaming video is only one use of Flash.<br> <p> If Shumway can get 2D games and websites that have SWF buttons and menus working, then it's a big help and no FLV or MP3 is required.<br> <p> (I don't have an easy solution for the video formats, but I'm reluctant to start by saying "Let's give up".)<br> </div> Fri, 16 Nov 2012 12:02:10 +0000 codec support https://lwn.net/Articles/525274/ https://lwn.net/Articles/525274/ bjartur <p>Nobody is writing a movie decoder in JavaScript. At least not for Mozilla. <pre><code> initialize: function initialize() { this._element = document.createElement('video'); this._element.controls = true; this._element.setAttribute("style", "position: absolute; top: 0px; left: 0px"); this._added = false; },</code></pre> It simply maps to HTML features where available. It will draw vectors to a canvas, but raster images will be handled by the browser. <p><a rel="nofollow" href="https://github.com/mozilla/shumway/blob/master/src/flash/media/Video.js">https://github.com/mozilla/shumway/blob/master/src/flash/media/Video.js</a> Thu, 15 Nov 2012 18:30:40 +0000 codec support https://lwn.net/Articles/525266/ https://lwn.net/Articles/525266/ DonDiego <div class="FormattedComment"> So here's the (IMO) most obvious question: Will this be the next project that limits its usefulness by not supporting H.264 and MP3, but only support fringe codecs, at least out-of-the-box?<br> </div> Thu, 15 Nov 2012 17:51:38 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/525193/ https://lwn.net/Articles/525193/ coriordan <div class="FormattedComment"> Ok. Well, I wish Shumway great success!<br> </div> Thu, 15 Nov 2012 14:09:13 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/525163/ https://lwn.net/Articles/525163/ gerv <div class="FormattedComment"> I recommended internally to the Shumway people that they get in touch with Rob Savoye. Perhaps reasonably, HR won't tell me how that conversation went, but he's not currently working for us. <br> <p> Gerv<br> </div> Thu, 15 Nov 2012 11:57:42 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/525151/ https://lwn.net/Articles/525151/ coriordan <div class="FormattedComment"> Thanks for the link. That's what I was referring to alright.<br> <p> Since Moz Foundation has now decided to put resources into an SWF player, one way to find good people to work on the project would be to contact the projects that previously spent years doing exactly that.<br> <p> Just an idea.<br> </div> Thu, 15 Nov 2012 10:51:08 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/525149/ https://lwn.net/Articles/525149/ coriordan <div class="FormattedComment"> <font class="QuotedText">&gt; It's now clear that Flash is dying.</font><br> <p> It's declining, but change is slow (and time makes a return possible).<br> <p> For some things, such as children's 2D games and TV channel websites, Flash seems still as dominant as ever. I simply ignore those sites, but my friends don't.<br> <p> Flash is less necessary now than it was in 2005 (when Gnash began), but it would still be very good to have a free software Flash player.<br> </div> Thu, 15 Nov 2012 10:41:08 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/525089/ https://lwn.net/Articles/525089/ roc <div class="FormattedComment"> I think the situation has changed in the last two years. It's now clear that Flash is dying. We don't have to worry about Flash being a competitor to the open Web anymore; the problem now is how to minimize the damage to the open Web, to users and to Mozilla during Flash's demise. Shumway, by mapping SWFs to the open Web platform, does not help Flash compete with the open Web; it helps platforms that support the open Web but not Flash compete for users, and protects users from some of the problems Flash causes.<br> </div> Thu, 15 Nov 2012 00:49:43 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/525008/ https://lwn.net/Articles/525008/ smurf <div class="FormattedComment"> <font class="QuotedText">&gt; Perhaps smurf meant Swfdec?</font><br> <p> Of course. My bad.<br> </div> Wed, 14 Nov 2012 17:42:42 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/524978/ https://lwn.net/Articles/524978/ gerv <div class="FormattedComment"> I've done a bit of internal searching, and found a quote from Chris Blizzard which is used here:<br> <a href="http://www.networkworld.com/community/why-mozilla-does-not-back-flash">http://www.networkworld.com/community/why-mozilla-does-no...</a><br> <p> That quote focusses more on the lack of an open process than the lack of an open format, but let's not split hairs. Your original post was mostly right. I'd not read the above before.<br> <p> I never saw a formal funding proposal from Gnash, though.<br> <p> I do remember some discussions in the last couple of years about us bundling Flash like Chrome does. That has the obvious "it's not open source" issues. Gnash got mentioned in that context; I think people were concerned that the Gnash implementation wasn't complete enough and it would just end up being a massive bug and time sink if we made it the default in Firefox for the whole world. I guess "fund it" would have been a follow-on possibility from that line of argument but I didn't see it raised.<br> <p> We've taken a lot of pain from Flash in one way or another (hangs, crashes, security issues). The Flash problem has no good, simple solutions. :-|<br> <p> Gerv<br> </div> Wed, 14 Nov 2012 16:40:43 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/524963/ https://lwn.net/Articles/524963/ coriordan <div class="FormattedComment"> My memory is fairly clear on that, but I don't have a link and sticking the keywords into search engines yields mountains of tech discussions about gnash working in Mozilla firefox.<br> <p> If I'm wrong (which is possible), then what did stop Moz Foundation from helping the struggling SWF projects? Did they want to help, but got no requests and didn't see the funding pleas? Or did the idea of SWF support simply never come up?<br> <p> (I'm not demonising the Moz Foundation, but if no one can provide a link to evidence, then we have to look at who's version fits the context.)<br> </div> Wed, 14 Nov 2012 15:18:12 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/524951/ https://lwn.net/Articles/524951/ gerv <p><i>"They always refused to give financial help to Gnash and other free SWF players on the grounds that they don't want to support closed formats."</i></p> <p>I don't remember that ever being our position; do you have evidentiary support?</p> <p>Either way, now we've started our own Flash reimplementation project, it would be rather an odd time to start funding someone else's...</p> <p>Gerv</p> Wed, 14 Nov 2012 14:13:16 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524931/ https://lwn.net/Articles/524931/ hthoma <div class="FormattedComment"> I guess the best we can hope for is that it will be obsolete when it is mature ...<br> </div> Wed, 14 Nov 2012 12:41:38 +0000 Since when does Moz Foundation support SWF? https://lwn.net/Articles/524911/ https://lwn.net/Articles/524911/ coriordan <div class="FormattedComment"> They always refused to give financial help to Gnash and other free SWF players on the grounds that they don't want to support closed formats.<br> <p> That's what they're doing now, right? What changed?<br> <p> Might they now consider giving Gnash a little help?<br> </div> Wed, 14 Nov 2012 11:40:27 +0000 killer app: games https://lwn.net/Articles/524913/ https://lwn.net/Articles/524913/ hummassa <div class="FormattedComment"> <font class="QuotedText">&gt; Must check how well Shumway and other free alternatives deal with these nowadays. I did try some Gnash version on the one of the simpler ones years ago, and the result was garbage.</font><br> <p> Seconded. My 6yo daughter would benefit too -- tho flashplugin-installer + chrome has not been the pain in the back that they once were. But I agree wholeheartedly that those games are very good testing ground for new swf runtimes...<br> </div> Wed, 14 Nov 2012 11:29:27 +0000 killer app: games https://lwn.net/Articles/524908/ https://lwn.net/Articles/524908/ eru <i>Are there really any other good uses for it? ;)</i> <p> Casual games on the Web. Very popular. My kid divides his game time pretty evenly between those, and Wii. Every TV series for youngsters seems to have Flash games on their web site. Interestingly, some involve a "game builder" where the user can construct game fields from components, then test play and share them. So not they are not always totally mindlessly passivating. <p> Must check how well Shumway and other free alternatives deal with these nowadays. I did try some Gnash version on the one of the simpler ones years ago, and the result was garbage. Wed, 14 Nov 2012 10:58:29 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524854/ https://lwn.net/Articles/524854/ mgedmin <div class="FormattedComment"> Perhaps smurf meant Swfdec?<br> </div> Wed, 14 Nov 2012 06:50:04 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524782/ https://lwn.net/Articles/524782/ ssmith32 <div class="FormattedComment"> And Flash only needs to be fast enough to start the video playing on hulu :)<br> Are there really any other good uses for it? ;)<br> </div> Tue, 13 Nov 2012 23:41:57 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524765/ https://lwn.net/Articles/524765/ corbet There's lightspark too. Gnash seems pretty moribund at the moment. Lightspark shows occasional signs of life, but doesn't seem to be advancing all that quickly. Perhaps Shumway will actually reach a point of widespread utility and adoption, I don't know. Will keep an eye on it... Tue, 13 Nov 2012 22:43:43 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524764/ https://lwn.net/Articles/524764/ khim <blockquote><font class="QuotedText">If Java or Python would JIT into JS, thereby reusing the JS JIT, then they could be very fast in the browser too.</font></blockquote> <p>May be Python, but most definitely not Java. Java <b>programs</b> are often slower but that because Java libraries have so many useless levels of indirection, but Java <b>JITs</b> are much faster then JS ones. Translation to JS JIT can not fix broken libraries design.</p> Tue, 13 Nov 2012 22:41:05 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524761/ https://lwn.net/Articles/524761/ kripkenstein <div class="FormattedComment"> <font class="QuotedText">&gt; Because JITs built in Javascript are known to be incredibly fast, which is why Java and Python run faster in browsers than natively...</font><br> <p> JS JITS *are* in fact among the fastest in dynamic languages, matched only by LuaJIT.<br> <p> If Java or Python would JIT into JS, thereby reusing the JS JIT, then they could be very fast in the browser too. I've been wanting to do that exact project with PyPy (compile PyPy C code using Emscripten, add a JS JIT backend), am still hoping to interest the PyPy devs in it some day.<br> <p> For Flash specifically though, the language is very close to JS. JITing into JS there is simpler than the alternatives, and should give good results. Would be interesting to compare to the AS engines in the other FOSS Flash implementations.<br> <p> </div> Tue, 13 Nov 2012 22:25:54 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524758/ https://lwn.net/Articles/524758/ Company <div class="FormattedComment"> Because JITs built in Javascript are known to be incredibly fast, which is why Java and Python run faster in browsers than natively...<br> </div> Tue, 13 Nov 2012 22:21:08 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524755/ https://lwn.net/Articles/524755/ proski <blockquote type="cite"> Shumway is an HTML5 technology experiment that explores building a faithful and efficient renderer for the SWF file format without native code assistance. </blockquote> Gnash is written in native code (C++). Not sure about "SWFplayer", I think it's long obsolete and irrelevant. Tue, 13 Nov 2012 22:20:06 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524757/ https://lwn.net/Articles/524757/ kripkenstein <div class="FormattedComment"> Very different architectures. Shumway builds upon the existing JS JIT and browser hardware acceleration, and benefits from the browser's portability, whereas the others are written in native code, which means it is simpler for them to get fast code in general, but harder to get portability, a fast JIT specifically, graphics acceleration, and sandboxing.<br> <p> </div> Tue, 13 Nov 2012 22:19:05 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524756/ https://lwn.net/Articles/524756/ JoeBuck Find out in the next episode of "the grumpy editor's guide to free Flash implementations" (hint, hint) Tue, 13 Nov 2012 22:17:21 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524754/ https://lwn.net/Articles/524754/ smurf <div class="FormattedComment"> So now we have Shumway in addition to gnash and SWFplay.<br> <p> What's the difference?<br> </div> Tue, 13 Nov 2012 22:02:01 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524751/ https://lwn.net/Articles/524751/ kripkenstein <div class="FormattedComment"> I believe there were blogposts before too, and as you say, the code was always open. I guess at this point they thought it was more mature and wanted to give an update or a more "formal" announcement.<br> </div> Tue, 13 Nov 2012 21:45:50 +0000 The Shumway open SWF runtime project https://lwn.net/Articles/524740/ https://lwn.net/Articles/524740/ juliank <div class="FormattedComment"> But why do they blog about it now, and did not blog about it back in February, when code was already available. It's somewhat old news to me, and to those reading the comments here in February (starting at <a href="https://lwn.net/Articles/483102/">https://lwn.net/Articles/483102/</a>)<br> </div> Tue, 13 Nov 2012 20:05:38 +0000