原创 Introducing SLOTH

2014-6-10 19:09 1428 20 20 分类: 消费电子

In a cavernous hangar at Moffett Field, Larry Page recently addressed a screaming pair of developers at Google's World-Wide Developers' Conference. "We have many new products I want to announce today," he started off, "but first I want to talk about those idiots in Cupertino. It's iPod this, iPhone that. What, didn't them geeks learn any English? So today we're introducing the MyPod and MyPhone. That Gulfstream 5 over there in the corner is MyPlane, and don't you forget it."

 

Both developers swooned while texting each other and updating their MyGoogle+ pages, their MyGlasses forming a markedly effective barrier to procreation.

 

Larry Page at the recent WWDC introducing SLOTH.
Larry Page at the recent WWDC introducing SLOTH.
 

"As you know, our motto is 'Do No Evil,' which we've demonstrated by pursuing world domination, passing the details of your really weird and disgusting search queries to any cop with a flash drive, and relocating our headquarters to the tiny island of Aunu'u to evade taxes while lobbying for millions of H1-B visas to protect our bloated bottom line.

 

"Today..." The tiny but eager crowd, anticipating a world-changing announcement, stopped breathing. "Today, I'm introducing SLOTH, the world's slowest computer language."

 

Two puzzled murmurs echoed in the hangar.

 

"We've discovered that our minions, uh, users, aren't really doing much. MyChrome spends 99.999999% of the time executing a little event handler in cache just waiting for our vassals to hit a button on the keyboard. It's the same if they're using MyDocs, MyMail, or pretty much any other MyApplication. The CPU is just tapping its toes, executing 3 billion or 4 billion instructions per second to deal with some barely sentient serf hunting and pecking like he had never seen a keyboard before. Besides, pretty much all of our subjects are mostly updating their Facebook page while pretending to work. How much computer power is needed for that?

 

"SLOTH, which stands for Seriously Low Optimization ThresHolds, has been under development for a really, really long time. I mean, like, forever, man. But now we can proudly announce a CoreMark of under 0.000001/MHz on an Intel i7."

 

This reporter later learned that SLOTH programs sequence through every processor instruction and checksum all of memory between each statement to ensure even heating of the ICs. Compilation units are individual statements -- one statement per file. By default, the compiler #includes the entire source of MyAndroid with each compilation unit, though random jumps are inserted between lines to confound the processor's branch prediction. All integer calculations are promoted to quadruple-precision floating point, which is interpreted rather than translated to machine code. Complete copies of Moby Dick in UTF-128 are inserted between statements to eliminate short branches and thrash the cache.

 

Mr. Page went on: "But now there is a very great Evil, yea, a veritable Mordor that will unleash trials and tribulations unto the seventh generation, that is, assuming you two ever find girlfriends. For Sauron, in his current Tim Cook incarnation, has cursed the world with a new language that is so easy to use, that is so completely and sinfully graphical, that anyone will be able to write a killer app. Next thing you know, those lousy theater majors will be able to find work in our formerly exclusive software world. We techies, who elevated ourselves to the high priests of the modern era, will have to learn the social graces to find work. I was just informed that we'll be expected to chew with our mouths closed."

 

Pandemonium ensued. One attendee shouted, "No, no!" The other started sobbing. "My mother warned me I'd have to take showers someday."

 

A handler leaped to the stage. "Our Sacred Leader feels your pain. Let him continue."

 

Mr. Page said: "SLOTH is specifically designed to be unintelligible to pretty much everyone. Not only is it slow, but the syntax is more cryptic than APL's, uses more parenthesis than LISP, and completely avoids all symbols between A and Z, except for I. All variable names are combinations of Is."

 

The handler looked shocked and whispered in Mr. Page's ear. Looking mortified, he added, "Of course, by that, I also mean no characters between 0x61 and 0x7a, with the exception of 0x69."

 

 

 

 

"The curse wrought by Java has been eliminated in SLOTH. All operations are pointers, and there are a minimum of three levels of indirection required for any statement to compile."

 

The attendees snickered. "That'll show them poly-sci majors!" the shorter one yelled.

 

"Another upside is that so much computer power will be needed to run a SLOTH program that our chattels, who have been completely taken in by the IoT marketing claptrap, will be unable to move from in front of the MyGoogle screen due to the weight of their wearables."

 

The crowd, delirious at this point, wept with joy as Mr. Page was hustled to his G-5, which taxied on to the 101 for takeoff. Police officers, clutching their flash drives, directed traffic on to La Avenida Street, conveniently shutting down Microsoft's Mountain View campus.

 

In other news, rumors persist that Microsoft will soon introduce an even slower language called C-flat-minor.

文章评论0条评论)

登录后参与讨论
我要评论
0
20
关闭 站长推荐上一条 /2 下一条