Processing Visualization Language Ported To Javascript 171
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."
Re:'polished turd' (Score:5, Interesting)
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 [newgrounds.com]. 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.
Re:'polished turd' (Score:1, Interesting)
Re:'polished turd' (Score:4, Interesting)
If you prefer think of this as Processing on Canvas, rather than Processing on JavaScript, because Canvas is the enabling technology here.
And I don't know where you get off calling it a "polished turd". (Makes me want to poke around your homepage-vertisement, and see if you have a right to make those judgements)
The Java requirement was always a pain to deal with before, and this "polished turd" removes that and makes visualizations much more portable and easier to play around with.
Also the moving visualizations have always been CPU intensive, that's the nature of what they are; they're supposed to be easy to create visualizations of data, it's not a video game. It was like this on Java too.
Note that the static practical visualizations, which take dynamic data, draw the visualization and then end, need much less CPU than dynamic ones like you might see in a flashy demo.
This is a very good thing, and a very welcome surprise; Processing really does offer something that's pretty unique, and I look forward to seeing more of it. Kudos Resig
Re:Heh AvP comes ot mind here (Score:3, Interesting)
Re:My Post (Score:5, Interesting)
Re:My Post (Score:3, Interesting)
Maybe you should actually look up the very history of Javascript -- the programmer wanted an embedded LISP. Some PHB-type wanted it to look like C, so it would be more approachable. So he took his embedded LISP and gave it a C-like syntax.
Or maybe you should've Googled about Lisp and Javascript. Here, go read. [crockford.com]
Re:'polished turd' (Score:3, Interesting)
Oh, and my company compresses the hell out of our Javascript and XML. Seems this little thing called GZip compression [websiteoptimization.com] is supported by every major browser on the market. Who'da'thunk, eh? You don't really know a whole lot about AS3, do you? Like, for example, it's stupidly easy to decompile the code [flashsec.org]. Worrying about someone having access to your source is so 1990's. You had better get over it, because your source is open for the world to see. That goes for Java, Javascript, Actionscript, C#, and just about any other modern language you can think of. Classic case of pot and kettle. Please get your facts straight before being so rude in the future. It really is upsetting and therefore tempting to use rather abusive language in return.