[1.30000000000000004 min read]
The other day people were sharing a link to a WebGL game that Microsoft made with Three.js, Hover. It’s pretty fun, you should try it out. It’s basically Duke Nukem meets Neopets. I think—I didn’t actually play it. Instead I jumped right into the JS source and ran into something I had never seen before:
Just to be clear, the
arm property is an expando on
navigator.cpuClass returns the string “arm”, add an “arm” class to the document element. ok.jpg
The good news is that WebKit and Blink browsers don’t implement either of these wacky interfaces.
Guys, sniffing for CPU architecture on the web is weird.
So let’s not start using them now in 2013, deal? I have no idea what kind of optimizations the developers of Hover are trying to sneak in for Windows RT* tablets (or phones or whatever). But I think they’re probably doing it at the wrong abstraction level.
* Really Touchy
* Radical Tablet
*Nobody actually knows what RT means