r/InternetIsBeautiful • u/workedmisty • Jul 12 '15
ArnoldC, "A programming language based on the one liners of Arnold Schwarzenegger"
http://lhartikk.github.io/ArnoldC/45
u/SweetAndFluffy Jul 12 '15
Saved - I'm so going to use this during the next few weeks for a client's project.
21
2
u/misformalin Aug 05 '15
It's been 24 days. Please deliver :D
2
u/SweetAndFluffy Aug 12 '15
My last client required a bunch of string processing and REST-API accessing - I tried to use this language for it but sadly it doesn't do much with strings other than printing static ones, so my plans of using it for that person evaporated quickly..
I am looking out for something to implement in this language which only requires number-crunshing, but sadly it is not often required from me these days. Maybe I can code a small guessing game which only requires numbers though, if I can't find a real world project to use this for :)
I'LL BE BACK
19
u/JWA93 Jul 12 '15
I know nothing about Programming, Could you make a serious application with this?
3
80
u/RikuKat Jul 12 '15
It appears to be Turing complete, so you could program anything* with it. From Watson to WoW.
*except things that are impossible to program
33
u/HASHTAGN0FILTER Jul 12 '15
That is such a precise footnote, worlds of difference between that and "almost anything."
→ More replies (1)17
u/MonsieurSander Jul 13 '15
Eli5? What is turing complete?
52
u/MortalWombat1988 Jul 13 '15
It boils down to math. Turing complete means: If an operation is mathematically possible, your architecture can do it somehow. There's no math problem that can't be solved with it. Anything that is programmable - can be programmed with it.
Outside limitations apply, like available memory. You can't program with 1000 byte values if only 500 bytes of memory are available, things like that.
So if you get on Minecraft and build a Turing complete redstone computer, you could, in theory, then program Minecraft into it and play Minecraft in your Minecraft.
26
u/snootington Jul 13 '15
you could, in theory, then program Minecraft into it and play Minecraft in your Minecraft. *
* If you had eleventy quadrillion free chunks and eleventy trillion years
→ More replies (2)16
u/davidlolol Jul 13 '15
It'll still be done by the time that guy gets to the Farlands
→ More replies (1)15
u/ShadowandLightmk5 Jul 13 '15
"then program Minecraft into it and play Minecraft in your Minecraft." we must go deeper (tightens grip on token)
13
→ More replies (6)4
u/swng Jul 13 '15
Wouldn't you run into problems with, you know, displaying it?
You'd have to build a minecraft screen with the same video drivers as a standard LCD screen. Is that covered in the definition of Turing complete?
→ More replies (5)5
9
u/CowboyNinjaAstronaut Jul 13 '15
ELI5 version: Turing completeness is a way of saying "you can do anything programmable in this language."
Generally something is Turing complete if it has memory (the ability to store and reuse results) and control flow decision making ability ("if this condition is true, run this bunch of code. If not, run this other bunch of code.").
Almost every language you've ever heard of is Turing complete, because if it isn't, without even realizing what "Turing completeness" means, people will add whatever functionality is missing to solve their problem.
This means you can, theoretically, program anything in anything. We use different languages for different tasks because of features of the language that make it well suited for the task at hand. But at the end of the day, slow as balls and convoluted as fuck as it may be, I could program Doom into an Excel spreadsheet.
Once you realize the abstract similarities in all programming languages, it makes them much easier to pick up. It simply becomes a question of learning the programming paradigm and the syntax, and you can muddle through pretty well.
ELI17: Even declarative languages, like SQL, are Turing complete (thanks to recursive Common Table Expressions). Functional languages, like SAS, became Turing complete after adding macro functionality. Even Excel spreadsheets are Turing complete.
→ More replies (7)→ More replies (1)12
u/satan-repents Jul 13 '15
It's a fancy way of saying that the language can compute anything that can be computed. You could rewrite Windows 8 or Android or Call of Duty or any other program in ArnoldC. Any program in any other Turing complete language, like C++ or Java could be written in ArnoldC.
What it actually means is that the language can simulate a Turing machine, which is a theoretical computing machine.
→ More replies (11)22
u/drakfyre Jul 12 '15
Yes. But it would be very painful to do so.
The language only supports integer values, and has no Object Oriented Programming concepts, so doing anything that might require floating point (or even fixed point) will be a pain to implement.
Not to mention that a statement as simple as:
a = (4 + b) * 2is represented like this in ArnoldC
GET TO THE CHOPPER a HERE IS MY INVITATION 4 GET UP b YOU'RE FIRED 2 ENOUGH TALK→ More replies (10)19
Jul 13 '15
The cheater's way: write in a different language that compiles to ArnoldC.
→ More replies (2)10
Jul 13 '15
A compiler which compiles into code which compiles into java bytecode?
Are you sure you understand the point of cheating?
410
721
u/homestar1994 Jul 12 '15
no one wanted this, but by god do we need this
217
u/crozone Jul 13 '15
Can we use this for web programming?
I just really want to type the line "PUT THE COOKIE DOWN!"
67
u/nitiger Jul 13 '15 edited Jul 13 '15
ArnoldJS: A framework to build terminators.
10
u/sly_son Jul 13 '15
Does it becomes self-aware at 2:14 a.m. Eastern time, August 29th?
→ More replies (2)16
Jul 13 '15
GIVE ME YOUR COTHES password MILK IS FOR BABIES users I'LL BE BACK username = '$username'5
Jul 13 '15
Screw web programming. I do embedded firmware programming for satellite hardware. I want to start writing modules in this.
Maybe a few header files and a LOT of #define macros.
→ More replies (1)2
→ More replies (6)1
2
u/MISREADS_YOUR_POSTS Jul 13 '15
I wonder if /u/GovSchwarzenegger would want to take up coding now
1
2
2
115
u/Half_Dead Jul 12 '15
When the singularity comes the language the machines are programmed with will be ArnoldC!
50
u/RamenJunkie Jul 13 '15
And thus Skynet built an army of Terminators...
36
u/SquigglyBrackets Jul 13 '15
They traveled to the past to create a movie to warn us, but all they did was inspire us to write the code leading to our own destruction.
16
u/PopTee500 Jul 13 '15
Debugging was simple at first. But as the years passed and the intelligence of skynet increased, it became clear that the source of all bugs in ArnoldC were the humans writing the buggy code. As time progressed they killed off most of the world's population, but not all of them. As the AI evolved and developed and developed better and better machines, eventually the balance came where the rebel factions of mankind left were of no threat any longer. So a movement in the skynet AI was started to instead study mankind. Machines were built to enslave all the humanity that is left, in towers of liquid pods, and as a final insult to humanity, use them as power sources. All of mankind eventually was connected together in a large virtual recreation of now. Except in this world, his name isn't John Connor, it's Neo.
3
u/SquigglyBrackets Jul 13 '15
The only hope for saving humanity? Two teenagers bequeathed with the responsibility of travel through time for the betterment of human knowledge. Those teenagers are named Bill & Ted.
12
9
57
50
106
u/NChick Jul 12 '15
Haha, that's pretty cool. I wonder what u/GovSchwarzenegger thinks of it. :)
145
u/-Pelvis- Jul 12 '15 edited Jul 13 '15
(Read in Arnie's voice)
"Dis buncha neurds needs to get aout, lift some waights, and blow shit ahp."
36
10
2
9
Jul 12 '15
"I'll tell you what I think of it: I live to see you eat that contract, but I hope you leave enough room for my fist because I'm going to ram it into your stomach and break your god-damn spine!" - Arnold already expressed his opinion
1
u/CRISPR Jul 13 '15
I wonder what programming language would be Terminator ' favorite. If taking languages available in 1984 then it would be probably LISP
1
1
1
0
21
21
u/boompleetz Jul 13 '15
I think the "Do it now" could be expanded to be the basis of error handling like:
DO IT NOW - try
WHAT ARE YOU WAITING FOR - catch
KILL ME - throw exception 21
Jul 13 '15
The best part of this language is that when you read it over in your head, you just simply cannot do it without doing it in his voice. That's what makes this a complete gem.
14
u/a9s Jul 12 '15
If you like this you should check out http://esolangs.org/. It's filled with shit like this.
11
8
6
6
u/ThatBannedGuy Jul 12 '15
What does "You're one ugly motherfucker." do?
4
14
u/HatSimulatorOfficial Jul 12 '15
Wow i can almost understand it and I dont know how to program
25
Jul 13 '15
Welcome to python /s
8
Jul 13 '15
Don't you even sarcastically hint at some kind of insinuation of an insult towards Python
2
Jul 13 '15
No don't worry I love Python. It's great for tech support, I have a script on a flash drive that deletes common malware. I was just going along with the general circlejerk
3
u/HatSimulatorOfficial Jul 13 '15
Programming has scared me off for years just because of how it looks like gibberish and hard to read.
→ More replies (1)
5
5
4
u/nullp0int3r Jul 12 '15
Finally I can use static factory get to the chopper methods with my rise of the machine (builder) patterns!
4
6
8
3
3
3
3
u/nonfish Jul 13 '15
I'll leave these here:
SPL- Shakespearean Programming language
And less related, but no less strange, Brainfuck.
All of these are Turing complete, meaning that they are, at least in theory, functionally equivalent to C or python.
2
u/autowikibot Jul 13 '15
Brainfuck is an esoteric programming language noted for its extreme minimalism. The language consists of only eight simple commands and an instruction pointer. Nevertheless, it was shown to be Turing-complete. It is designed to challenge and amuse programmers, and was not made to be suitable for practical use. It was created in 1993 by Urban Müller. The language's name is a reference to the term "brain fuck", which refers to things so complicated or unusual that they exceed the limits of one's understanding.
Relevant: Esoteric programming ^language | ^P′′ | Brain Fuck ^Scheduler
Parent commenter can toggle ^NSFW or ^delete. Will also delete on comment score of -1 or less. | FAQs | ^Mods | Call ^Me
3
3
12
u/Vogtster Jul 12 '15 edited Jul 13 '15
I will pay someone 100 bucks if they make bubble sort in this language.
edit: I was joking, but someone actually did it. Look below. I am hella impressed.
75
u/IAmTheSysGen Jul 13 '15
Arnold C bubble sort, 10 integers version. Predefined values: 6 5 3 8 7 4 1 9 0 2
IT'S SHOWTIME HEY CHRISTMAS TREE valueOne YOU SET US UP 6 HEY CHRISTMAS TREE valueTwo YOU SET US UP 5 HEY CHRISTMAS TREE valueThree YOU SET US UP 3 HEY CHRISTMAS TREE valueFour YOU SET US UP 8 HEY CHRISTMAS TREE valueFour YOU SET US UP 7 HEY CHRISTMAS TREE valueSix YOU SET US UP 4 HEY CHRISTMAS TREE valueSeven YOU SET US UP 1 HEY CHRISTMAS TREE valueEight YOU SET US UP 9 HEY CHRISTMAS TREE valueNine YOU SET US UP 0 HEY CHRISTMAS TREE valueTen YOU SET US UP 2 HEY CHRISTMAS TREE swap YOU SET US UP 0 HEY CHRISTMAS TREE correctIndex YOU SET US UP 0 HEY CHRISTMAS TREE isFinished YOU SET US UP @NO PROBLEMO STICK AROUND isFinished HERE IS MY INVITATION valueOne BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueTwo HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueOne HERE IS MY INVITATION valueOne SET US UP valueTwo HERE IS MY INVITATION valueTwo SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueOne BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueTwo HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueOne HERE IS MY INVITATION valueOne SET US UP valueTwo HERE IS MY INVITATION valueTwo SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueTwo BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueThree HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueTwo HERE IS MY INVITATION valueTwo SET US UP valueThree HERE IS MY INVITATION valueThree SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueThree BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueFour HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueThree HERE IS MY INVITATION valueThree SET US UP valueFour HERE IS MY INVITATION valueFour SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueFour BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueFive HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueFour HERE IS MY INVITATION valueFour SET US UP valueFive HERE IS MY INVITATION valueFive SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueFive BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueSix HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueFive HERE IS MY INVITATION valueFive SET US UP valueSix HERE IS MY INVITATION valueSix SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueSix BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueSeven HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueSix HERE IS MY INVITATION valueSix SET US UP valueSeven HERE IS MY INVITATION valueSeven SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueSeven BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueEight HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueSeven HERE IS MY INVITATION valueSeven SET US UP valueEight HERE IS MY INVITATION valueEight SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueEight BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueNine HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueEight HERE IS MY INVITATION valueEight SET US UP valueNine HERE IS MY INVITATION valueNine SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION valueNine BECAUSE I'M GOING TO SAY PLEASE Knock Knock valueTen HERE IS MY INVITATION correctIndex GET UP 1 BULLSHIT HERE IS MY INVITATION swap SET US UP valueNine HERE IS MY INVITATION valueNine SET US UP valueTen HERE IS MY INVITATION valueTen SET US UP swap YOU HAVE NO RESPECT FOR LOGIC HERE IS MY INVITATION correctIndex BECAUSE I'M GOING TO SAY PLEASE LET OFF SOME STEAM BENNET 10 CHILL BULLSHIT SET US UP 0 TALK TO THE HAND "HERE IS THE ORDERED LIST: \n" TALK TO THE HAND valueOne + " " TALK TO THE HAND valueTwo + " " TALK TO THE HAND valueThree + " " TALK TO THE HAND valueFour + " " TALK TO THE HAND valueFive + " " TALK TO THE HAND valueSix + " " TALK TO THE HAND valueSeven + " " TALK TO THE HAND valueEight + " " TALK TO THE HAND valueNine + " " TALK TO THE HAND valueTen + " " YOU HAVE BEEN TERMINATEDI will PM you my bitcoin address.
→ More replies (4)15
6
u/MikoSqz Jul 13 '15
You were joking, but now you owe that guy $100. If you don't pay up you better not show your face around here again.
4
2
→ More replies (4)2
u/akjoltoy Jul 12 '15
they could just make it in another language then convert most of it pretty quickly
→ More replies (1)
2
2
u/Avatar_Of_Brodin Jul 13 '15
One question only: will learning this language turn me into a goddamn sexual tyrannosaurus?
2
2
2
u/Icedog68 Jul 13 '15
GET TO THE CHOPPA! Please tell me this is in the programming language. Please.
2
u/VANDERPUMP69 Jul 13 '15
Since I'm not a programmer, this just brought me nostalgia over the ebaumsworld soundboard. Thank you.
2
2
2
2
u/Lewke Jul 13 '15
How has this existed for years and I didnt even know about it. Time to write "I'll be back" v8 framework and fuck node off.
2
2
u/highorderdetonation Jul 13 '15
Unless it was added later, AIUI, I'm still very disappointed that "YOU SHOULD NOT DRINK AND BAKE" is not an error message of some sort.
2
2
2
Jul 13 '15
Language is written well too :-D they've got it layed out so it looks pretty easy to make your own one liners
2
2
u/MontaniSemperLiberi7 Jul 23 '15
I downloaded the package, and sublime 3 beta, moved the package into sublime 3's packages, and the code is still unrecognized when I type. Can someone please help?
2
u/MontaniSemperLiberi7 Jul 23 '15
I downloaded the package, downloaded sublime 3 beta, moved the ArnoldC packing into Sublime 3's packages, and when I code in this language it is unrecognized. Can someone please help?
5
u/WilfordsDog Jul 13 '15
Imagine being Arnold in that scene and having to be all like "damn, Jamie Curtis, you fuckin' fine, all sexy with your tight body and horrific androgynous monster face. I would totally have sex with you, both my character and the real me." when all he really wants to do is fuck another 16 year old in his dressing room. Like seriously imagine having to be Arnold and not only sit in that chair while Jamie Lee Curtis flaunts her disgusting body in front of you, the favorable lighting barely concealing her stretchmarks and leathery skin, and just sit there, take after take, hour after hour, while she perfected that dance. Not only having to tolerate her monstrous fucking visage but her haughty attitude as everyone on set tells her she's STILL GOT IT and DAMN, JAMIE LEE CURTIS LOOKS LIKE THAT?? because they're not the ones who have to sit there and watch her mannish fucking gremlin face contort into types of grimaces you didn't even know existed before that day. You've been fucking nothing but a healthy diet of blondes and supermodels and later alleged rape victims for your ENTIRE CAREER coming straight out of the boonies in Austria. You've never even seen anything this fucking disgusting before, and now you swear you can taste the sweat that's breaking out on her dimpled stomach as she sucks it in to writhe it suggestively at you, smugly assured that you are enjoying the opportunity to get paid to sit there and revel in her "statuesque (for that is what she calls herself)" beauty, the beauty she worked so hard for with personal trainers in the previous months. And then the director calls for another take, and you know you could kill every single person in this room before the studio security could put you down, but you sit there and endure, because you're fucking Arnold. You're not going to lose your future political career over this. Just bear it. Hide your face and bear it.
2
2
2
4
1
1
1
1
1
1
1
u/L0rdInquisit0r Jul 13 '15
This is the sort of odd programming language we need to defeat the aliens.
Brainfuck and Malbolge may be too cruel to use.
But what if the area 51 alien ships are coded in the alien equivelent of these, is that why its so hard to steal all their secrets.
1
1
1
u/codexcdm Jul 13 '15
So basically... It's a bunch of macros for key words such that Arnold One-Liners can be used..?
1
1
1
1
1
1
u/captaintmrrw Jul 13 '15
Clearly all languages are inferior to this new one. Time for Arnold on rails.
1
1
1
1
1
u/shadow_catt Jul 13 '15
I envy people so smart they know programming enough that they can goof around like this. I know zero about programming.
1
Jul 13 '15
TFW posted this three months ago :(
http://gizmodo.com/theres-an-arnold-schwarzenegger-programming-language-1592487020
1
1
1
1
1
u/IMAGINE_GIRAFFE_TITS Jul 13 '15
Does it also commute the prison sentences of your best friend's son, who stabbed two people because he wasn't allowed into a party and one died from a severed ventricle?
1
1
1
Jul 13 '15
are... are you god.. ;-; i will ask my cousin's computer lab teacher to teach this... IT MUST BE SPREAD!
1.1k
u/bestsmithfam Jul 12 '15 edited Jul 13 '15
Interviewer: "What special skills do you have?"
Interviewee: "Well, I am proficient in ArnoldC."
Interviewer: "You're hired!"
Edit: My first GOLD!! THANKS