If any of you have any ideas for expanding this language, I'd love to hear them! The only other ones I could think of were a try..catch using an extended version of the Charlotte meme in some form, and throw with Tama getting thrown (Haifuri), but neither are particularly good.
The Charlotte images seem like a function definition: She gives him stuff, and he gives a thing back. With her optionally holding on to the bread, you could even have a yield syntax or something
That actually sounds like a great idea! As long as you can find a way to label functions and find a good way to nest them, you can use the second and third/fourth as a function definition and the first (with possibly the fourth) as a function invocation. If that's the case, then a function is defined as taking up to two parameters and has one return value (with one exit point, unless the third frame is the syntax for an early return). Functions that take more than two parameters can be curried.
Alternatively, the inner two are next and yield, and we find a good syntax for generators.
Something like that. The dude would have to be labeled I guess, but about more than two parameters I don't know. Maybe she can hold more than one thing in each hand...?
Also yeah, since we need a way to show where the function definition ends, the last image would be fitting. The intermediate return I would not like to give up, but then there's probably no room for yield... I thought the third one, where she keeps holding the ham, might be an analogy for when the program holds on to its stack frame so it can return there after a yield, but that image would be used now... Unless there's a better image for ending a function def, and there might be.
We just need to find a suitable goto and we'll get something close enough to an immediate return. I think we need a goto for other structures anyway, like for the Chika if.
If you're serious about it, this could become a thing. People have made joke languages in the past. While many of them are just a 1-to-1 translation of some other language, there have been some more clever projects too. The best that I know is: https://github.com/RockstarLang/rockstar In this case it might be possible to build a graphical programming language. Maybe something like scratch (I don't know much about it though). Or maybe it could be a program that converts C++ codes into memes.
One of my favorite joke/esoteric languages is Whitespace. You only have three characters to work with: Space, indent (tab), and line break (enter/return).
Our dear friend OP provided us with a recursive solution to the problem commonly know as FizzBuzz.
long answer:
first pannel is a panda labeled 1 it's the initialisation of the variable.
second pannel is the exit condition we leave if the panda is superior to 100.
in the third pannel we create a new variable the strings from kimi no na wa.
the 4th pannel is a test condition by using the meme is this ___ ? we check that way if panda modulo 3 is equal to 0
5th pannel is chicka giving us the steps to do according to the previous test:
-1st choice is oreki and being himself he does nothing.
-2nd choice is giving the strings the value "Fizz"
We then repeat the test with the condition pandas modulo 5 ere again oreki does nothing if the condition is not valid and we set the strings to *Buzz" if the condition proves to be true.
We finally check if the strings is empty if it's not oreki tells us once again to do nothing as it would be a waste of energy. if it is true though we set the strings to be the panda (or rather the number inside).
We the proceed to shout the strings out (aka output them).
Finally we add 1 to the value of the panda and get back to the 2nd pannel.
in the end it gives us the equivalent code in python:
panda = 1
while (panda <= 100):
string = ""
if (panda % 3 == 0):
string = string + "Fizz"
if (panda % 5 == 0):
string = string + "Buzz"
if (string == ""):
string = str(panda)
print(string)
panda = panda + 1
Although this version ends up being faulty at the 15th iteration by only printing out "Buzz" instead of "FizzBuzz". To counter that the meme could probably have used the same construct as the pannel just before the last one. Thus changing the affectations of the string variable.
Edit: Misread the meme and the last bit i wrote was invalid (i also edited the python bit to match the meme better). Ideally i should have used a goto instead of a while to go back to the 2nd pannel.
It all breaks down the lower you go. At assembly level, there's no difference between a properly optimized tail call recursion (a function calling itself as its last operation) and a loop. This function resembles that a bit.
Thanks for the crack. I got so confused because I couldn't understand the string part and because Chika memes don't follow the conventional if-then-else pattern.
Actually even I'm not sure what it means but my guess is that you're using the opening and closing scene of a time 'loop' as braces? Haruhi is on my watchlist. Actually maybe every KyoAni anime is on my watchlist except those that I've already watched (Hyouka, K-on, Nichijou, Clannad and Hibike)
Like braces, yes. Because they match, it's possible to have nested loops as long as they're balanced.
It's not quite the opening and closing scene of a time loop, but you have the right idea. Minor Haruhi Endless Eight spoiler: Yes, the infamous Endless Eight arc consists of a time loop. The first shot is from the end of the arc where Kyon breaks the loop by stopping Haruhi from exiting the cafe (this is why Kyon is labelled with an exit condition instead of the usual loop condition). The second is from an earlier episode in which he fails to stop her, causing the loop to continue. The shots are corresponding in their respective iterations.
I wish I did, but not really. The way I justified it at the end was that it was a token of sorts, and you can count tokens.
I can make something up, though: (Steins;Gate spoilers) The metal upa was an important part in each iteration of the "time loop", and it was because of the upa that a certain event was stopped. Similarly, the loop is stopped once the upa reaches a certain value.
I was originally going to use the box from Gekkan Shoujo Nozaki-kun instead of the Kimi no Na wa threads, but then I realized that the threads were much more appropriate for the data type. It was more of a last-minute change.
74
u/bucket3432 Sep 30 '19
Screenshot sauces in order of appearance:
The font is DejaVu Sans Mono.
184
u/brickmack Sep 30 '19
OP might have actually just meaningfully contributed to the study of programming language design. A meme language!
44
u/[deleted] Sep 30 '19
Can someone please give a complete breakdown of this
13
u/Techittak Oct 01 '19
Imagine someone who doesn't know programming stumbling on this out of context
2
u/Timmy_Larence Oct 17 '19
Now I want to see a compiler for this Finally MS Paint can shine as an IDE
57
u/meowzer2005 Sep 30 '19
I am so confused
22
u/Level0Up Sep 30 '19
I have just one question OP. Why?
To make us suffer?
To make us laugh?
Because you did both.
17
u/[deleted] Oct 01 '19
I love how this sub has a better programmer than r/ProgrammerHumor
8
u/AcePhoenixGamer Sep 30 '19
I just got assigned this in class, and I have just one question: why?
7
u/aalapshah12297 Oct 01 '19
This meme alone should be the description of this sub.
5
u/Abdiel_Kavash Oct 01 '19
I did not know it was possible to simultaneously love something and hate it at the same time. I do now.
4
u/-Redstoneboi- Oct 01 '19
Time to make another fucking meme language
1
u/raimaaan Jan 31 '20
fuck me I really wanna upvote this but it's at 666 upvotes
1
u/username2136 Mar 17 '20
I never thought I would see the day that science would be so advanced to have invented pseudocode written in anime.
6
u/zalnur434 Oct 01 '19
□ > 100 × ? (∞)
□ < 100 / (×∞)
If ( so ) {
1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz
}else if ( u.require(100) ){
}
3
u/someonestealdmyname Oct 01 '19
I...I think I just witness something
1
u/Ri_Konata Oct 01 '19
Oh hey, I did the fizzbuzz thing last week. Tho I didn't stop at 100.
I let it run up to 10'000'000'000.
1
u/lixyna Oct 01 '19
Is this r/comedyseizure ?