Advertisement
News
EEtimes
News the global electronics community can trust
eetimes.com
power electronics news
The trusted news source for power-conscious design engineers
powerelectronicsnews.com
EPSNews
News for Electronics Purchasing and the Supply Chain
epsnews.com
elektroda
The can't-miss forum engineers and hobbyists
elektroda.pl
eetimes eu
News, technologies, and trends in the electronics industry
eetimes.eu
Products
Electronics Products
Product news that empowers design decisions
electronicproducts.com
Datasheets.com
Design engineer' search engine for electronic components
datasheets.com
eem
The electronic components resource for engineers and purchasers
eem.com
Design
embedded.com
The design site for hardware software, and firmware engineers
embedded.com
Elector Schematics
Where makers and hobbyists share projects
electroschematics.com
edn Network
The design site for electronics engineers and engineering managers
edn.com
electronic tutorials
The learning center for future and novice engineers
electronics-tutorials.ws
TechOnline
The educational resource for the global engineering community
techonline.com
Tools
eeweb.com
Where electronics engineers discover the latest toolsThe design site for hardware software, and firmware engineers
eeweb.com
Part Sim
Circuit simulation made easy
partsim.com
schematics.com
Brings you all the tools to tackle projects big and small - combining real-world components with online collaboration
schematics.com
PCB Web
Hardware design made easy
pcbweb.com
schematics.io
A free online environment where users can create, edit, and share electrical schematics, or convert between popular file formats like Eagle, Altium, and OrCAD.
schematics.io
Product Advisor
Find the IoT board you’ve been searching for using this interactive solution space to help you visualize the product selection process and showcase important trade-off decisions.
transim.com/iot
Transim Engage
Transform your product pages with embeddable schematic, simulation, and 3D content modules while providing interactive user experiences for your customers.
transim.com/Products/Engage
About
AspenCore
A worldwide innovation hub servicing component manufacturers and distributors with unique marketing solutions
aspencore.com
Silicon Expert
SiliconExpert provides engineers with the data and insight they need to remove risk from the supply chain.
siliconexpert.com
Transim
Transim powers many of the tools engineers use every day on manufacturers' websites and can develop solutions for any company.
transim.com

SLOTH: the Programming Language

By   06.06.2014 0

Googleplex, Calif., June 6, 2014 — In a cavernous hangar at Moffett Field, Larry Page addressed a screaming pair of developers today 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.

“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.

Partner Content
View All

“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 introduce an even slower language called C-flat-minor next week.

— Now you know why Jack Ganssle won the Contributor of the Year ACE Award.

0 comments
Post Comment
jimwilliams57   2014-06-06 11:51:08

SLOTH is perfect for countering management's insistance on exhaustive and endless processes.  Finally a language to give the power back to the engineer.

Max The Magnificent   2014-06-06 12:32:44

I wish I'd written this -- it's brilliant!!!

mhrackin   2014-06-06 13:25:28

I presume your reference to envy is (like SLOTH) taken from the ORIGINAL "Bedazzled" movie, one of my all-time favorites!  Peter Cook and Dudley Moore (who probably SHOULD get credit for "Moore's Law) have always been incredible.

mhrackin   2014-06-06 13:26:52

I have to add two words: "Lilian Lust."

Max The Magnificent   2014-06-06 13:29:02

@mhrackin: Peter Cook and Dudley Moore [...] have always been incredible .

They really were great -- and I agree, I loved the original version of Bedazzled.

Max The Magnificent   2014-06-06 13:32:31

@mhrackin: I have to add two words: "Lilian Lust."

I think you mean Lill ian Lust (played by Raquel Welch) -- as seen in this video

mhrackin   2014-06-06 13:39:25

I do lay claim to being one of the world's worst typists.... I was very happy when EET added the ""edit" link! 

Max The Magnificent   2014-06-06 13:45:33

@mhrackin: I do lay claim to being one of the world's worst typists ...

In one of her careers, my mom taught shorthand, typing, and business studies at college. When I was ~16 she begged me to learn to type. This was the early 1970s before the widespread availability of computers -- I thought that as an engineer I would never need to type.

One of my books was 872 pages ... every word typed with the same two fingers...

mhrackin   2014-06-06 14:01:30

As an engagement present, my wife to be got me a new portable S-C typewriter that came with a typing course (on LP records!).  Didn't help.... but I did all my own typing and eventually got to using multiple fingers on each hand (but not in the "orthodox" style for sure).  Did all my college papers and theses that way (with carbon paper copies! which I still have in my files), did about 50wpm peak speed.  Not any more.... PC keyboards (especially laptops) just don't have the right feel to me.

Wnderer   2014-06-06 15:11:58

It's funny, but why bash Google for Apple launching a proprietary programming language? I don't use Apple stuff and I still think of them as megolomaniac control freaks. Swift just adds to that. I'm still a fan of the open architecture of the IBM PC and the huge complicated ecosystem it spawned.

Max The Magnificent   2014-06-06 16:13:20

@Wnderer: ...why bash Google for Apple launching a proprietary programming language ...

The story needs a victum/target -- why not Google? You wouldn't use Microsoft as the target for this story because it woudl be difficult to seperate fact from fiction LOL

Susan Rambo   2014-06-06 16:28:25

Max is a good proofreader in addition to being steampunk.

Susan Rambo   2014-06-06 16:29:51

None of the embedded systems programmers I asked to comment on Apple SWIFT would comment on it. Not enough info out there yet.

junko.yoshida   2014-06-06 19:00:01

Exactly! @jack, this is brilliant!

bpaddock   2014-06-12 13:58:18

...all symbols BETWEEN A and Z,...I mean no characters BETWEEN 0x61 and 0x7a...

So we ARE allowed to use A/I/Z and a/i/z.

Make sure that the requirments documented is updated...

Aren't we all to analytical and literal? ;-)

Seems they just merged the (real computer) languages Mumps and Brain F***...

Guess if your Goggle anything will make news.

 

 

Rishiyur.Nikhil   2014-06-17 16:32:29

Dear Jack (and I'm the first to admit that I don't know Jack),

This is very exciting, and I have a number of technical questions:

  • Will it be possible to pursue Agile Software Engineering with SLOTH?
  • Presumably all its pointers dangle?
  • Does it incorporate lazy evaluation?
  • What is the resolution of its sleep(3) library function?

No need for an immediate reply, manana is good enough.

Susan Rambo   2014-06-17 17:16:19

You are a clever one, but shouldn't you get back to work now?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Articles