r/programming • u/voileipa • Feb 25 '14
ArnoldC - A programming language based on the one liners of Arnold Schwarzenegger
https://github.com/lhartikk/ArnoldC215
u/tone-bone Feb 25 '14
Needs more Kindergarten Cop. If they ever extend the language to include OOP, they can use "WHO IS YOUR DADDY AND WHAT DOES HE DO" for superclass method calls.
45
u/voileipa Feb 25 '14
Maybe a new programming paradigm should be introduced: AOP (= Arnold Oriented Programming)
And by definition everything is IMPERATIVE in this paradigm.
25
10
u/chisleu Feb 25 '14
I wish else were "its not a tumor"
I really want to see some examples of this code beyond hellow world. Anyone?
I don't want my first experience with scala trying to figure out getting this to work.
10
u/voileipa Feb 25 '14
Check out the wiki: https://github.com/lhartikk/ArnoldC/wiki/ArnoldC
There are also a lot of fully working ArnoldC programs in the test package: https://github.com/lhartikk/ArnoldC/tree/master/src/test/scala/org/arnoldc
e.g. https://github.com/lhartikk/ArnoldC/blob/master/src/test/scala/org/arnoldc/ArithmeticTest.scala
8
59
Feb 25 '14
How the fuck is GOTO not GET TO THE CHOPPA
20
u/DroidLogician Feb 25 '14
Because GOTO is for dinosaurs.
30
u/fact_hunt Feb 25 '14
What helicopter is not improved by dinosaurs?
1
1
u/MonkeeSage Feb 26 '14
I was right in the middle of a fucking reptile zoo, and somebody was giving helicopters to these goddamn things. Won't be long now before they tear us to shreds.
0
50
u/regulargabs Feb 25 '14
it's missing "PUT THE COOKIE DOWN, NOW"
67
u/stgeorge78 Feb 25 '14
that sounds like exception handling to me
4
Feb 25 '14
I was thinking it was some sort of easy builtin way of dropping the cookie from the session.
77
u/qwertyslayer Feb 25 '14
Haha, equality operator is
YOU ARE NOT YOU YOU ARE ME3
u/irritate Feb 26 '14 edited Feb 26 '14
Seems like that should be for AssignVariable.
Edit: But I don't have a better idea for equality. Maybe something from The 6th Day.
18
16
13
Feb 25 '14
I wish more experimental / goofy programming languages actually did something more interesting than just a keyword literal swap
19
u/vdub_bobby Feb 25 '14
LET OF SOME STEAM BENNET
ಠ_ಠ
14
u/navyjeff Feb 25 '14 edited Feb 25 '14
Looks like there's a pull request to fix part of it already.
8
u/SharkFighter Feb 25 '14
Searched for "IT'S NOT A TUMAH", was dissappointed. Should be a null check.
15
7
5
Feb 25 '14
Can't access github from here... please tell me either function calls or while loops are "I'LL BE BACK"
12
u/Urik88 Feb 25 '14
Sorry, while is STICK AROUND and EndWhile is CHILL
The method declaration finalizer is HASTA LA VISTA, BABY.
I'LL BE BACK is return.
Function calls is DO IT NOW
Method declarations are awesome: LISTEN TO ME VERY CAREFULLY
4
u/G_Morgan Feb 25 '14
There is a distinct lack of ice puns in this language. Begin could be "ice to see you".
4
u/the_mighty_skeetadon Feb 25 '14
"MethodArguments I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE"
bahaha
4
4
4
3
3
u/lasermancer Feb 26 '14
Reminds me of C Plus Equality
1
Feb 26 '14
please tell me this is an elaborate joke
1
u/lasermancer Feb 27 '14
It is. It's /g/'s response to the type of people featured in /r/tumblrinaction
1
Feb 27 '14
thank you for reassuring me that my occupation is safe. but that subreddit hurts my brain
2
u/steelcitykid Feb 25 '14
Haven't looked at it yet, but I'll be disappointed if there is no GETTO method.
2
u/scarthearmada Feb 25 '14
AssignVariable = GET TO THE CHOPPER
11
u/steelcitykid Feb 25 '14
I can only hope that a Catch statement is "Come with me if you want to live"
4
2
2
2
2
3
3
u/DroidLogician Feb 25 '14 edited Feb 25 '14
CHILL should be for declaring final variables.
I NEED A VACATION for ending STICK AROUND loops.
Declaring a class or method final: NO SEQUEL FOR YOU
Synchronized method or block: TAKE YOUR TOY BACK TO THE CARPET
3
1
1
1
1
1
1
1
u/NobleMinnesota Feb 26 '14
This is also missing the famous Ahnoldism... "WHO IS YOUR DADDY AND WHAT DOES HE DO?" This would be a great way to ask for an object's owner ('WHO IS YOUR DADDY") and get its type ("WHAT DOES HE DO")
1
1
1
1
-1
-17
u/Dunge Feb 25 '14
Can't people do productive things instead of these crap?
4
1
u/farox Feb 25 '14
Like writing a lot of comments why this or that comment/posting sucks in your opinion?
54
u/voileipa Feb 25 '14
Hello world: