DO IT NOW

http://commons.wikimedia.org/wiki/File:Karikatur_von_Arnold_Schwarzenegger.jpg
Image: Wikimedia Commons

ArnoldC, a language devised by Finnish computer programmer Lauri Hartikka, assigns programming functions to catch phrases from Arnold Schwarzenegger movies. Some keywords:

False: I LIED

True: NO PROBLEMO

If: BECAUSE I’M GOING TO SAY PLEASE

Else: BULLSHIT

EndIf: YOU HAVE NO RESPECT FOR LOGIC

While: STICK AROUND

EndWhile: CHILL

MultiplicationOperator: YOU’RE FIRED

DivisionOperator: HE HAD TO SPLIT

EqualTo: YOU ARE NOT YOU YOU ARE ME

GreaterThan: LET OFF SOME STEAM BENNET

Or: CONSIDER THAT A DIVORCE

And: KNOCK KNOCK

DeclareMethod: LISTEN TO ME VERY CAREFULLY

MethodArguments: I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE

Return: I’LL BE BACK

EndMethodDeclaration: HASTA LA VISTA, BABY

AssignVariableFromMethodCall: GET YOUR ASS TO MARS

ReadInteger: I WANT TO ASK YOU A BUNCH OF QUESTIONS AND I WANT TO HAVE THEM ANSWERED IMMEDIATELY

AssignVariable: GET TO THE CHOPPER

SetValue: HERE IS MY INVITATION

EndAssignVariable: ENOUGH TALK

ParseError: WHAT THE FUCK DID I DO WRONG

This program prints the string “hello world”:

IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED

More on GitHub.

A Human Cantilever

http://commons.wikimedia.org/wiki/File:Cantilever_bridge_human_model.jpg

To illustrate the design principle behind Scotland’s Forth Bridge, engineer Sir Benjamin Baker offered a personal demonstration. Sir John Fowler (left) and Baker (right) each hold two wooden poles with outstretched arms, forming two diamond shapes. When construction foreman Kaichi Watanabe sits in the center, the diamonds are prevented from tipping inward because their outer ends are anchored.

It worked. The bridge, opened in 1890, held the record as the world’s longest single cantilever bridge span for 17 years.

Chebyshev’s Paradoxical Mechanism

Russian mathematician Pafnuty Chebyshev devised this puzzling mechanisms in 1888. Turning the crank handle once will send the flywheel through two revolutions in the same direction, or four revolutions in the opposite direction. (A better video is here.)

“What is so unusual in this mechanism is the ability of the linkages to flip from one configuration to the other,” write John Bryant and Chris Sangwin in How Round Is Your Circle? (2011). “In most linkage mechanisms such ambiguity is implicitly, or explicitly, designed out so that only one choice for the mathematical solution can give a physical configuration. … This mechanism is really worth constructing, if only to confound your friends and colleagues.”

(Thanks, Dre.)

A Jump Ahead

http://commons.wikimedia.org/wiki/File:Marion_Tinsley.jpg

Mathematician Marion Tinsley lost only seven games of checkers in a career that spanned 45 years. Between 1950 and 1995, he took first place in every tournament in which he played. “Dr. Tinsley has taken the game beyond what anybody else ever conceived,” International Checkers Hall of Fame founder Charles Walker told Sports Illustrated in 1992. “No one presumed to think they could beat him.”

His last and best opponent was a machine, Chinook, designed by University of Alberta computer scientist Jonathan Schaeffer. When the American Checkers Federation refused to let a machine play for the championship in 1990, the sporting Tinsley resigned his crown and immediately accepted the match.

He won 4-2, with 33 draws. In one game, after the program had played its 10th move, Tinsley said, “You’re going to regret that.” Chinook resigned 26 moves later, and in the ensuing analysis Schaeffer found that Tinsley had looked 64 moves ahead to find the only winning strategy. (When asked for the source of his advantage, Tinsley, a lay preacher, said, “I’ve got a better programmer — God.”)

But the machine kept improving, and Tinsley’s health began to fail. He had to withdraw after six draws in their 1994 rematch, and he died of pancreatic cancer shortly afterward at age 68.

Chinook has since solved the game — after 18 years of thinking, it produced a map that would show it a non-losing move in any situation. In principle, at least, the computer is now invincible — the best a human can hope for is a draw.

This might have disappointed Tinsley, who played not for supremacy but for a love of the game. “Checkers can get quite a hold on you,” he said. “Its beauty is just overwhelming — the mathematics, the elegance, the precision. It’s capable of wrapping you all up.”

Room Service

fischer patent

Parking was already a problem in 1906, so Swiss inventor Martin Fischer offered a car that you can drive right up to your apartment:

The width of the frame is smaller than the distance of the wheels. That distance amounts to at most seventy-five centimeters. Consequently the motor-car can pass through doors of ordinary width and up staircases with such ease that even persons residing on the upper floors of ordinary dwelling-houses will be able to keep such motor-cars without the necessity of providing special storage space on the ground floor.

It’s built low to reduce the risk of tipping over when traveling around sharp curves. But what happens if you meet someone else on the stairs?

Liquid Assets

New Zealand engineer Bill Phillips found a unique way to model a national economy in 1949: He used water. Working in his garage, he assembled a conglomeration of tanks, pipes, sluices, and valves into MONIAC, a 7-foot hydraulic computer that modeled the economy of the United Kingdom. Colored water, representing money, is pumped from a bottom reservoir to the top, where it’s distributed among taxes, consumer expenditure, and investment, then finds its way downward through the economy. The user can set “functions” that regulate the effect of national income on tax revenue, government spending on consumption, domestic spending on imports or exports, the interest rate on investment, and the exchange rate on exports and imports.

“To approximate a national economy, a ‘Federal Reserve System’ is added (from a tank through the top U-shaped pump) and bank credit is drawn to expand surplus balances when needed,” noted Fortune in a March 1952 feature. “And, if a Keynesian touch is wanted, the government can engage in ‘deficit financing’ by tapping the surplus balances to increase its own expenditures without additional taxation.”

Phillips unveiled the computer at the London School of Economics in 1949 and impressed his audience so much that he was asked to build copies for Harvard, Cambridge, Oxford, the Ford Motor Company and the Central Bank of Guatemala. Unfortunately his invention was soon outmoded by electronic computers, and today only two working “Phillips machines” remain: one at Cambridge and the other (above) at the Reserve Bank of New Zealand.

UPDATE: Yale economist Irving Fisher proposed a similar system in his Ph.D. dissertation in 1891, described by Paul Samuelson as “the best of all doctoral dissertations in economics.” Fisher used a working model of his machine as a teaching tool for 25 years. (Thanks, Sroyon.)

Maillardet’s Automaton

https://commons.wikimedia.org/wiki/File:Henri_Maillardet_automaton,_London,_England,_c._1810_-_Franklin_Institute_-_DSC06656.jpg

Martin Scorsese’s film Hugo was inspired by a real event. In 1928 Philadelphia’s Franklin Institute received the remains of an 18th-century brass automaton that had been damaged in a fire. It had been donated by the descendants of wealthy manufacturer John Penn Brock; they knew it had been acquired in France and supposed it to be the work of the German inventor Johann Nepomuk Maelzel, famed for his metronome.

The institute’s machinist set about restoring the machine and discovered that its mechanism used an ingenious system of cams to store almost 300 kilobits of information. When he had finished his work, he placed a pen in its hand and watched it draw four strikingly elaborate illustrations and write three poems (click to enlarge):

The final poem contained a surprise — in its border the machine wrote Ecrit par L’Automate de Maillardet, “written by the automaton of Maillardet.” The automaton’s creator was not Johann Maelzel but the Swiss mechanician Henri Maillardet — and this fact had been remembered only because he had taught the machine to write his name.

Subsequent research showed that Maillardet had created the automaton in the 1700s and exhibited it throughout Europe and Russia. How it came to America is not known. It’s on display today at the Franklin Institute, which demonstrates its talents publicly several times a year.

You Are Here

https://commons.wikimedia.org/wiki/File:Polynesian_navigation_device_showing_directions_of_winds,_waves_and_islands.jpg

What is this? It’s a map. In order to navigate by canoe among the Marshall Islands, residents made charts by lashing together sticks, threads, and shells to represent landmasses and the patterns of ocean swells and breakers between them.

The atolls lie so low that even the tops of the palms are lost to sight 20 kilometers off shore, so a Marshallese navigator may spend several days out of sight of land. Having studied swell patterns with the aid of such charts, he can find his way by observing the motion of his canoe.

For example, an island breaks up the easterly trade wind swell, producing a wave pattern that signals the presence of land. “These navigation signs … extend seaward from any atoll or island in specific quadrants and can be detected up to 40 km away,” writes oceanographer Joseph Genz. “The relative strength of these radiating wave patterns indicates the distance toward land, while the specific wave signatures indicate the direction of land.”

(Joseph Genz et al., “Wave Navigation in the Marshall Islands,” Oceanography, June 2009.)