Slashdot Mirror


Open-Source JavaScript Flash Player (HTML5/SVG)

gbutler69 writes "Someone has gone and done it. Tobias Schneider has created a Flash player written in JavaScript targeting SVG/HTML5-capable browsers. It's not a complete implementation yet, but it shows real promise. A few demos have been posted online. How long before HTML5/SVG next-generation browsers like Chrome, Firefox, Opera, Safari, Epiphany, and other Web-Kit based browsers completely supplant Flash and Silverlight/Moonlight?"

14 of 300 comments (clear)

  1. Re:This is great! by sopssa · · Score: 4, Informative

    Welcome back to 2008. There was major improvement in javascript engines during 2009 in all other browsers than IE and Firefox. Chrome and Opera have incredibly fast javascript renderers and they're pushing it even more in next Opera version.

  2. Re:This is great! by TheRaven64 · · Score: 5, Informative

    Why? Most of what a Flash applet does is run ActionScript, which is a dialect of JavaScript. The drawing in this will be done by the browser, rather than by a plugin, and the code will be run by the browser's JavaScript engine instead of the plugin's one. If anything, you'll see less memory usage because you'll only need one JavaScript VM instead of two.

    --
    I am TheRaven on Soylent News
  3. Checked out the demos on my iphone by Anonymusing · · Score: 4, Informative

    I checked out the posted demos on my iPhone. Although they were a tad sluggish (particularly the star fade-in on the first demo), frankly, it wasn't bad. Some of the sluggishness could have just been because the demos are getting Slashdotted.

    Personally, I'm a little more interested in PhoneGap, which lets you use JavaScript to create iPhone apps (outside the browser).

    --
    Liberal? Conservative? Compare perspectives at Left-Right
    1. Re:Checked out the demos on my iphone by Sir_Lewk · · Score: 2, Informative

      Javascript runs on your hardware, not on whatever server it was hosted on. A site getting slashdotted will make a page more sluggish to load, but not run.

      --
      "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  4. Re:This is great! by Anonymous Coward · · Score: 1, Informative

    What makes it slow isn't the language it's the engine. JavaScript and Actionscript are both based off of ECMAScript. The difference is that Adobe/Macromedia has put a crap load of effort into optimizing their scripting engine.

    The latest competitive point among today's browsers happens to be on the JavaScript side. Opera, Chrome, Safari, Firefox are all working hard to optimize their JS engines for top performance to do things exactly like this. Not sure where IE is in all this. Maybe with IE9 they'll work a little harder.

  5. less than 100% is good by f3r · · Score: 2, Informative

    anything using less than 100% cpu in linux is better than Flash. Therefore there can in principle be nothing worse than Flash. Unbeatable, indeed a hard goal to achieve.

  6. Re:This is great! by the+roAm · · Score: 4, Informative

    It's not odd, it's SVG. Rendering SVGs, especially ones with lots of lines and not a lot of solid shapes is quite CPU intensive.

    --
    ~The roAm
  7. Before you get all excited... by Qubit · · Score: 5, Informative

    ...according to the article his code only supports the SWF 1.0 format, and he's currently working on adding support for the SWF 2.0 file format.

    Adobe Flash 1 and Flash 2 (which I'm going to guess might roughly line up with SWF 1.0 and 2.0), were released in 1996 and 1997, respectively. As in, over a decade ago.

    Much larger, more long-term projects like Gnash have been working on completing a compliant Flash client for several years and still don't have support through Flash 8, 9, and 10. It's apparently a lot of work to support all of the different pieces of Flash, especially as it turns out that the SWF spec has been completely overhauled several times over the past decade, resulting in wide differences between things like ActionScript 1, 2, and 3.

    So while I wish this effort all the best, it would require a lot of time/energy/talent to make this client have the coverage necessary for, say, internet video sites to work.

    --

    coding is life /* the rest is */
  8. Doesn't support AS3 by Steve+S · · Score: 3, Informative

    According to the list of supported swf tags (http://wiki.github.com/tobeytailor/gordon/swf-tag-support-table ), it does not support DoABC, which means that it does not support Actionscript3. So basically, it only supports the parts of flash that really annoy people: Animations. This won't let you play many neat flash games, or replace Flex, or play a movie designed for Flash9 (introduced in 2006) or later.

    As an Actionscript hobbyist, I love the idea of an open source implementation of the player. But so far, none of the open source alternatives support the features I actually like: Actionscript3. It's a strongly typed language with real classes, and it's compiled to bytecode rather than interpreted (mostly). Javascript has come a long way, but it still sucks if you like strongly typed variables.

    Keep trying, Tobias. And if you get that byte-level access, let the world know.

    --
    ------- Driver carries less than 64K of cache.
  9. Re:This is great! by Transfinite · · Score: 2, Informative

    Not true at all. Javascript engines are getting faster, a lot of effort, time and money is being put into making that so. Googles V8 engine for example. Also paired with the fact that HTML5 introduces a notion of concurrency into Javascript this is then even less of an issue. ~Unfortunately most people still think circa 1998 when talking about Javascript. Wrong. Javascript is key to the future of the web and not heavy inefficient server side solutions. Have a look at say node.js and see if you still think about Javascript circa 1998

  10. Re:Not SVG by amicusNYCL · · Score: 2, Informative

    Why shouldn't you use XHTML?

    1) There's no practical advantage to using XHTML over HTML.

    2) There's no XHTML2. The future is HTML5.

    --
    "Our two-party system is like a bowl of shit looking at itself in a mirror." - Lewis Black
  11. Re:Now if they could by clang_jangle · · Score: 5, Informative

    flash based cookies, which are not that easy to block and/or delete for the user, are used by all advertisers and other bastards, spying on you

    Trivial to defeat, at least in *.nix. Just remove all write permissions to the ~/.adobe and ~/.macromedia directories, after deleting all the cookies within. Buh-bye, flash cookies. Also makes flash work noticeably faster.

    --
    Caveat Utilitor
  12. Re:Sort of a good idea by bersl2 · · Score: 3, Informative

    I'm not sure what to think. I love the idea of not needing to install Flash, but I also like being able to block annoying animations by not installing Flash.

    And this is why we have things such as AdBlock (and variants) and NoScript. Presumably, if and when SVG and the HTML5 media tags start being used much more, there will be browser controls for whether the media should be run or ignored.

  13. Re:This is great! by Shining+Celebi · · Score: 3, Informative

    Welcome back to 2008. There was major improvement in javascript engines during 2009 in all other browsers than IE and Firefox. Chrome and Opera have incredibly fast javascript renderers and they're pushing it even more in next Opera version.

    Firefox 3.5 was released in June, with new Javascript improvements via Tracemonkey (a JIT compilation engine) that make it comparable with Chrome. I just tried out the demos and Firefox does not noticeable lag and it did not use more than 10% CPU, which is about the same as a normal Flash video for me.