Wednesday, October 30, 2013

Humbling post to read: 'Did these guys just reinvent the Web?'

I read this post the other day: http://www.infoworld.com/t/application-development/did-these-guys-just-reinvent-the-web and it talks about http://famo.us/ . Seriously: check out that site. You know what, check it out on your phone!

Super fast JS animations. Done by some guy called Mark Lu, who came up with a prototype within a couple of days.

If you're not going to read the article, at least read this part:

Lu thought for a little while. "I think we may already have a solution to both of those concerns. To fix the rendering problem, the primary part we need to rewrite is the part of the renderer that creates and multiplies the matrices. And luckily for us, JavaScript is about 80 percent of the speed of compiled C for those specific types of operations." 

"That should give us a big advantage. How big?" 

Lu did some quick calculations. "Possibly an order of magnitude." 

Newcomb's jaw dropped. "That's ... really good. But how do we circumvent the browser's renderer without a plug-in?" 

"We use the CSS3 primitive -webkit-transform: matrix3d, which lets us compute the composite matrix and skip the browser's renderer. No plug-in, no download, no hack. By appending this to each DIV, we can render the composite matrix and go straight to the GPU." 

"Um, that sounds like really hard stuff." 

"Not really. I'll have it done by tomorrow."

WHAT?! By tomorrow? You're kidding me! I'm going to need until tomorrow to understand what he said in the first place. Guess I still have a long way to go.

No comments:

Post a Comment