Slashdot Mirror


Processing Visualization Language Ported To Javascript

Manfre writes "On his birthday, John Resig (creator of jQuery) has given a present to developers by releasing Processing.js. This is a Javascript port of the Processing Visualization Language and a first step towards Javascript being a rival to Flash for online graphics content. His blog post contains an excellent writeup with many demos."

10 of 171 comments (clear)

  1. Second Step by AKAImBatman · · Score: 5, Informative

    This is a Javascript port of the Processing Visualization Language and a first step towards Javascript being a rival to Flash for online graphics content.

    Second step, actually. Apple and the WHATWG took the first step by introducing the Canvas API to the HTML 5 spec. That gave web developers the ability to do Flash-like content. This language is the second step, in that it gives programmers a standard framework from which to create impressive animations.

    Kudos to Mr. Resig on a job well done! I can't wait to play around with this project more. :-)
  2. Re:My Post by LighterShadeOfBlack · · Score: 5, Funny

    First of all... you got second post. Second of all, TFA is about Javascript, not Java.

    Other than that your post was completely relevant.

    --
    Spelling mistakes, grammatical errors, and stupid comments are intentional.
  3. Re:'polished turd' by AKAImBatman · · Score: 5, Insightful

    Flash doesn't exist anymore to do animation or dynamic graphics, it exists to run fast.

    Wait, are we talking about the same Flash? Because I've done a lot of Flash and Actionscripting, and "Fast" is not even in the vocabulary. Software rendered graphics pipeline? Check. Slow VM interpreter that makes Java 1.0 look fast? Check. Lack of direct rendering APIs? Check. Focus on animation at the expense of dynamic scene creation? Check.

    Granted, Flash 9 is a major improvement, but it is arriving rather late in the game.
  4. Re:'polished turd' by AKAImBatman · · Score: 5, Interesting

    Check out http://varriastudios.com/ for a site that illustrates what I'm talking about.

    A user interface? I think you have a very odd definition of "Fast". All you've proven is that Flash is designed to do pretty animations. Well, that's kind of the point. Not to run "Fast". "Fast" was never a part of the design. Just look up the "Actions" portion of the Flash 8 spec sometime and you'll be utterly horrified.

    That being said, Flash does do animations well. That's what it was designed for. As a result, it has even been used to create games. It never did games all that well, but Moore's law eventually made it possible to come up with some fairly decent stuff.

    Of course, if you're referring to "my Flash animations move faster than my DHTML animation", that's just plain user-error. The Flash animations work better because Flash Studio works out all the timings of the motions for you. If you Actionscripted your motions, they'd come out about the same as they would in Javascript. (And being nearly the same language, it's possible to try the same motion code in both.)

    This issue is what the Javascript PVL is intended to solve. i.e. A standard framework for providing animation/motion with minimal input from the developer.
  5. Eric by erickhill · · Score: 5, Insightful

    Regardless if this is usable today for client work, this is insane stuff. The first iteration of Flash eons ago had plenty of nay-sayers. He made this over the course of seven months? Bow down, I say. Very impressive.

  6. Re:'polished turd' by AKAImBatman · · Score: 5, Insightful

    I mentioned this above, but I'll reiterate it here. In that benchmark, LOWER IS BETTER. The brand-new Flash 9 VM engine did excellent (as I expected it would), but the Flash 7 and 8 engines were generally creamed by the Javascript engines. Which I don't think is what you're trying to prove at all.

    The secret to the performance of Flash 9 is this little beauty: http://www.mozilla.org/projects/tamarin/

    A fully modern, high-performance, Just In Time compiler that gives the JVM a run for its money. It's an amazing piece of Javascript technology that Adobe has donated to the Mozilla project for inclusion in the next major revision of FireFox. Wonderful, wonderful engine that absolutely no one is using yet.

    See, if you compiled to Flash 7 or 8, you're still triggering the Flash 8 engine. The Flash 9 engine is a complete rewrite that only works with Flash 9 content. So the next chapter of performance wars has yet to be written.

    Q.E.D.

  7. Re:Creator of WHAT?! by grahamd0 · · Score: 5, Insightful

    Can someone please explain to me why anyone would regard jquery as a black mark on John Resig's work?

    I've found it very useful for anything but the most mundane js tasks. Certainly better than the piles of other libraries that all seem to be based around the fallacy that javascript needs classical inheritance. (Hint: It doesn't. It has prototypal inheritance.)

  8. Re:My Post by truthsearch · · Score: 5, Funny

    Jules: Whoa, whoa, whoa, whoa... stop right there. Javascript and Java ain't even the same fsckin' thing.
    Vincent: It's not. It's the same ballpark.
    Jules: Ain't no fsckin' ballpark neither. Now look, maybe your method of programming differs from mine, but, you know, writing a web page, and coding for the JVM, ain't the same fsckin' ballpark, it ain't the same league, it ain't even the same fsckin' sport. Look, Javascript don't mean shit.

  9. Re:Heh AvP comes ot mind here by edalytical · · Score: 5, Funny

    Score one for the "UTF-8 text forever" crowd. Thanks for the support!

    --
    Win a signed Stephen Carpenter ESP Guitar from the Deftones: http://def-tag.com/?r=0008781
  10. Re:My Post by fuzzy12345 · · Score: 5, Insightful

    javascript is crappy scripting language for use with HTML. [...] Java is a full blown object oriented programming language I think you meant to say "Javascript is a full blown power-users' language, basically Lisp but with syntax problems, whereas Java is a crappy low-level language; the COBOL of the millenium."
    --

    Everybody's a libertarian 'till their neighbour's becomes a crack house.