shutterstock_77409181.jpg
shutterstock_77409181 There are lots of programming languages out there. But how many of them let you code using Arnold Schwarzenegger’s iconic one-liners? The answer is one: ArnoldC, available on GitHub. If you ever wanted to type “I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE” in place of “MethodArguments” or “YOU HAVE BEEN TERMINATED” instead of “EndMain,” this is the imperative programming language for you. (And yes, those all-caps are a necessity.) The language currently features 33 keywords, each coded to a different quip; parboiled handles parsing, while ASM generates the Java bytecode. The only variable type is a 16-bit signed integer. Click here to see programming jobs. “Although the one-liners of Arnold Schwarzenegger are fairly well known the true semantics of the uttering is yet to be understood,” reads the statement accompanying the setup files. “This project tries to discover new meanings from the Arnold movies with the means of computer science.” It seems unlikely, however, that anyone will use keywords such as “I LIED” (in place of “False”) or “NO PROBLEMO” (instead of “True”) to program something other than a parlor trick. For anyone interested in pursuing ArnoldC a little further, a GitHub Wiki offers some nifty examples of what you can do with it, including: Printing Squares from 1 to 10
IT'S SHOWTIME HEY CHRISTMAS TREE limit YOU SET US UP 10 HEY CHRISTMAS TREE index YOU SET US UP 1 HEY CHRISTMAS TREE squared YOU SET US UP 1 HEY CHRISTMAS TREE loop YOU SET US UP @NO PROBLEMO STICK AROUND loop GET TO THE CHOPPER squared HERE IS MY INVITATION index YOU'RE FIRED index ENOUGH TALK TALK TO THE HAND squared GET TO THE CHOPPER loop HERE IS MY INVITATION limit LET OFF SOME STEAM BENNET index ENOUGH TALK GET TO THE CHOPPER index HERE IS MY INVITATION index GET UP 1 ENOUGH TALK CHILL YOU HAVE BEEN TERMINATED
Hasta la vista, baby.

More Articles

Image: Brad Camembert/Shutterstock.com