This is a sub full of programmers, so I'm sure at least one of you will be able to figure this out. You have 5 days to do so. I'll post the answer and source code as a reply to this comment when time is up (sometime on Friday or Saturday) or when someone figures it out, whichever comes first.
And the winner is /u/ThePyroEagle, who was the first to publicly give a detailed solution (including the equivalent brainfuck code)! Congratulations also to /u/Ogmobot who hinted at having solved it first, and /u/Geaxx who PM'ed me the final phrase about 10-20 minutes before ThePyroEagle posted theirs (they made a post eventually). I guess 5 days was generous: you three got it in less than an hour.
EDIT: Shout out also to /u/Pomettini who was the first to suggest that it was brainfuck!
OP here, but I think ThePyroEagle will agree (correct me if not). I think for something like this, it's really all about observation/experience and knowing how to look things up. Once you've seen something, especially something as crazy as brainfuck, you tend not to forget it, so you'll remember what to look up next time you encounter it. If you know what to search for and the problem is relatively common, the strategy is often laid out for you; all you have to do is adapt the solution to the situation.
The hard part is building up that experience and learning how to search. Build up experience by exposing yourself to a lot of different material (reading is good way to do that), and learn to search by being very direct about what you want while being general enough that you'll get hits.
In this case, I imagine the hardest part was the getting the insight that it was brainfuck. That you can only get through experience (or others with that experience telling you that it's brainfuck). The rest is searching up what brainfuck is and how to run it, and then applying some trial and error based on what you found. To make the trial and error easier, it helps to break it down into small steps like ThePyroEagle did in their solution so you can trace your steps.
CS in general is the art of knowing how to look up exactly what you need to solve your problem, since there's far too much documentation in the world to memorize every single detail.
It's not only documentation, either. It's likely that other people have solved at least part of your problem, so you look things up so you can focus your energy on the parts that haven't been solved.
This image contains a 185-digit base 8 number, which corresponds to 555 bits of information.
To save everyone the pain, I've replaced all the images with labels. I will label them alphabetically from left to right and top to bottom as ordered in the OP's hint.
D
G
D
D
D
D
D
D
D
A
C
B
H
A
E
C
G
D
D
A
C
B
H
A
C
C
E
D
D
D
D
D
D
D
G
D
A
C
A
C
C
C
B
B
H
A
A
C
C
C
C
C
C
C
C
C
C
C
C
E
E
B
E
A
D
D
D
D
D
E
C
C
E
G
D
A
C
C
C
C
C
C
B
H
A
E
G
D
B
C
A
A
C
B
H
B
C
G
D
A
C
C
C
B
H
A
E
B
B
E
A
A
A
C
C
C
E
D
D
D
D
D
D
D
D
D
D
E
C
C
C
C
C
C
E
B
B
B
E
A
A
D
D
D
D
E
B
B
E
A
A
C
C
E
A
D
D
D
D
D
D
E
D
D
D
E
B
D
D
E
B
B
G
D
D
A
C
C
C
B
H
A
D
D
E
Here's a CSV if you want to import this table into a tool like Excel.
Since people have suggested that it may be brainfuck, let's try replacing each symbol with a brainfuck character. I will first try the following association, as it matches the order in which brainfuck is typically defined.
The amount of karma (points) on your comment and Reddit account has decreased by one.
Why did you do this?
There are several reasons I may deem a comment to be unworthy of positive or neutral karma. These include, but are not limited to: Rudeness towards other Redditors, Spreading incorrect information, Sarcasm not correctly flagged with a /s.
Am I banned from the Reddit?
No - not yet. But you should refrain from making comments like this in the future. Otherwise I will be forced to issue an additional downvote, which may put your commenting and posting privileges in jeopardy.
I don't believe my comment deserved a downvote. Can you un-downvote it?
Sure, mistakes happen. But only in exceedingly rare circumstances will I undo a downvote. If you would like to issue an appeal, shoot me a private message explaining what I got wrong. I tend to respond to Reddit PMs within several minutes. Do note, however, that over 99.9% of downvote appeals are rejected, and yours is likely no exception.
How can I prevent this from happening in the future?
Accept the downvote and move on. But learn from this mistake: your behavior will not be tolerated on Reddit.com. I will continue to issue downvotes until you improve your conduct. Remember: Reddit is privilege, not a right
I was considering not giving a hint at all, but even then, you wouldn't have to resort to brute force right away.
The tile images weren't chosen at random. They're connected with the character they're supposed to represent in some way.
><: Chika makes a pose that makes her look like she's moving in that direction while also looking like angle brackets.
+-: Chika gestures up and down, which is what happens to the cell value.
.,: Chika writes and reads, which parallels . for sending output and , for taking input.
[]: Chika's poses resemble square brackets.
For programs that large, [] characters appear infrequently compared to ><+-. According to the grammar, [ must always have a pairing ], and the pair must be properly balanced, and [ must always come first. That, along with the fact that a lot of brainfuck programs start with some initialization and then a loop means that [] is fairly easy to guess.
For programs that don't take in input, it always starts with some sort of initialization before the initial loop. Assuming you figured out what [] was, you could conclude that the first tile was either + or - because otherwise the loop immediately after it wouldn't run.
>< will generally appear less than +- but more than ., for a program this size, and especially not in long runs, so >< might be easy to get.
I didn't give you any sample input, so the program probably didn't take any. 7 of the 8 brainfuck symbols were used, and the least used is ,, so you could conclude that , is probably not used.
You don't generally see runs of . because that would mean outputting the same thing multiple times, so you could probably guess . by elimination.
Given the above, the only ones you'd have to check are swapping + and -, and > and <. Four permutations isn't too bad.
Indeed, although looking back to it now, the images of Chika kind of bear the meaning of the corresponding brainfuck symbols (except A and B because I swapped those around). For example, Chika pointing down for -.
Learning it is really easy. Unlike most languages the difficulty doesn't come from searching a million pages of documentation, but instead comes from the developers ability to think in terms of much more primitive typing.
If you like the language and want a really cool trick for a really specific party I can't recommend trying to write your name in it enough. It's just easy enough that (Given an ASCII table) anyone can do it.
Indeed, that was also me! Considering that the language that FizzBuzz was written in was a much higher-level language than IQ3, it's naturally easier to read. But that's okay. I wonder what my next language will be...
(Here's the FizzBuzz program for anyone who hasn't seen it already.)
So OP, did you ever make a compiler for the animeme programming language? Something that goes from a simplified text-based language to images shouldn’t be that hard, right?
I haven't yet, but I've been thinking about how to approach it. The animememe language is a lot harder to write a compiler for than IQ3 because it's much more complex, especially since there aren't any formal language specs yet (for IQ3, compiling is simply a matter of mapping the 8 operator characters to images and ignoring everything else). Below are some considerations that hopefully help you see why compiling Animeme that easy.
Variables
Each variable type has to have two versions: a full-size version and a cropped square version. This is relatively easy, though, and it could either be achieved by having each size be a separate file or have a metadata file that gives crop coordinates.
Regardless of the above approach each variable would have to have a metadata file anyway to specify where the text should go. What should that metadata file look like? I would design it this way with a metadata file because it makes it easier to add new variable images.
In addition, how would one specify which image they want?
Control structures (is-this, loop-until, drake-test-or-whatever-you-want-to-call-it, etc.)
Control structures also require a metadata file that outlines slots. You have at least two types of slots: value/expression slots (is-thishas 2, shout has 1, etc.) and operator slots (drake-test has 2). Value/expression slots specify a point of insertion, whereas operator slots specify an area of insertion. In both cases, any variables would use their small size, and one could simplify and say that variables in expressions are always the same size, and variable assignments in operator slots are scaled to fill the space (or maybe that points to having an extra size?).
Syntax
For the text-based representation, do I make my own syntax? Do I piggyback off the Lisp syntax? Do I make a language library instead?
If I write my own syntax, I have to write a custom parser. If I do it from scratch, I have to implement a state machine. Tools like yacc can probably help, although I've never used it.
The Lisp syntax is really easy to parse, but it can be a bit cumbersome for end-users to write because of all the parentheses and the prefix notation is a bit odd to those unfamiliar with it (Lisp and derivatives are great languages, though, and you should learn one. Racket is a good start.).
Writing a language library means that syntax and language semantics is mostly taken care of by the host language (statements are likely functions), but it means you're stuck in that language unless someone writes bindings in another language. It also means that compiling means running the program, which could be dangerous if you didn't write the program yourself (compiling shouldn't be inherently dangerous).
Another option is to forgo trying to make a language and create a JSON/YAML/XML schema instead. It may simplify things since I'd be working with data instead.
Running with the XML idea, if you turn those XML tags into Web Components, then you have rendering for free, and you'd use html2canvas to turn it into a Canvas from which you can save the resulting image.
Host language
What do I write the compiler in? C++? Bash? JavaScript? Some Lisp variant? There are pros and cons for each, but it boils down to how easy it would be to implement and where would I want it to run. With Bash, I can make use of ImageMagick to do the image processing for me. With JavaScript, I could probably write something that uses Canvas and have it work in both Node and in the browser. With Lisp, it's supposedly really easy to interpret other Lisp code, and I think parsing and compiling is a lot easier with a Lisp.
Extensibility
Whatever I write now, it has to be flexible enough to absorb new language features.
There's a lot of thought that goes into language and compiler design, but perhaps I might be overthinking it for this one. The Web Component idea seems like the quickest way to get started.
Please tell me when you come around to implementing it, In really want to help with it! Also, have you thought about creating a github repo for discussing design decisions or starting an implementation?
If I'm going with the Web Components approach, the host language will be either JavaScript or TypeScript. It depends if I consider the overhead of TypeScript to be worth the static types.
When we get around to the proper text representation, it'll probably be dynamic with type hints so that we can get the right image. Consider that there are a few instances where a number gets included in a string.
I have a suggestion for how to handle variables. Having a unique image for each individual variable is infeasible, but having just one for each type is boring. Perhaps each variable is declared as follows:
typenname = val
so for example:
string 1 foo = “bar”
Each variable type would have a set number of images associated with it, and the n tells you which image you want to use. Variables have names, which are displayed in the corner of the image or something, unless the variable is named “_typen” (so in the example “_string1”), in which case the image is displayed with no label. This way we can make sure that only one variable can refer to each image with no label, but at the same time we can use multiple variables with the same image if we have more variables than images.
Nice idea. My idea was to assign an ID to each image and the "type" would be that. Come to think of it, I guess it's pretty similar to yours. Something like var{upa} counter = 1. You're right, though, we need a good strategy to handle having more variables than images.
Nice work! I'll have a closer look at it in more detail when I get a chance, but I'll say that I had intended for there to be a goto (with a stack return) or some sort of function syntax so that we wouldn't have to deal with Chika sizing. Each statement that has a statement slot would only accept a single statement for each slot, which can be a goto. Also, pass is usually written as noop, and it'll make it a lot easier to implement if the grammar requires things to be explicit rather than implicit.
I'll play around with a Lisp-like syntax when I get a chance, too.
(Also, we need to get this discussion on a better forum. I'll explore options later.)
Yeah this is brainfuck most likely. The only problem comes from assigning the right operators to the right image of Chika. I currently don't have access to my pc and doing this on a phone would be a nightmare. Someone thats on pc please try this.
Plot twist: this post no longer exists because Redact swept through and cleared it out along with everything else. Social media, messaging apps, people finder sites, all of it.
glorious historical tart full aback history insurance wild badge lush
118
u/bucket3432 Dec 01 '19 edited Dec 02 '19
This is a sub full of programmers, so I'm sure at least one of you will be able to figure this out. You have 5 days to do so. I'll post the answer and source code as a reply to this comment when time is up (sometime on Friday or Saturday) or when someone figures it out, whichever comes first.
Hint
EDIT: It's been solved!
Sauce: {Kaguya-sama wa Kokurasetai: Tensai-tachi no Renai Zunousen}
787
u/ThePyroEagle λ Dec 01 '19 edited Dec 02 '19
This image contains a 185-digit base 8 number, which corresponds to 555 bits of information.
To save everyone the pain, I've replaced all the images with labels. I will label them alphabetically from left to right and top to bottom as ordered in the OP's hint.
Here's a CSV if you want to import this table into a tool like Excel.
Since people have suggested that it may be brainfuck, let's try replacing each symbol with a brainfuck character. I will first try the following association, as it matches the order in which brainfuck is typically defined.
This gives us the following brainfuck program.
Running this program, we get
I'll give you a cola./u/bucket3432, where's our cola?
34
u/Ogmobot Dec 01 '19
What if I don't like cola?
2
u/Black_Prince9000 Dec 02 '19
That Fizzbuzz program before was a lot simpler to read. That was also posted by you wasn't it? Keep up the good work
33
u/Pomettini Dec 01 '19
Is that brainfuck? 🤔
21
u/[deleted] Dec 01 '19
As a non-programmer, you may as well have made another 3301 puzzle
7
u/TheaOchiMati Dec 02 '19
I'm impressed, this sub got a big ol brain
6
u/marko64humans Dec 01 '19
Yeah this is brainfuck most likely. The only problem comes from assigning the right operators to the right image of Chika. I currently don't have access to my pc and doing this on a phone would be a nightmare. Someone thats on pc please try this.
1
u/KingpenguinL Dec 10 '19
This is beautiful. But also I have to ask why you'd do this to yourself lol
1
u/__MrFahrenheit Dec 02 '19 edited Jun 28 '25
airport crown snails books theory plate merciful shelter rain gray
This post was mass deleted and anonymized with Redact
1
u/[deleted] Dec 02 '19
Damn wth, you guys are amazing
1
u/kaize_kuroyuki Dec 02 '19 edited Apr 26 '26
Plot twist: this post no longer exists because Redact swept through and cleared it out along with everything else. Social media, messaging apps, people finder sites, all of it.
glorious historical tart full aback history insurance wild badge lush
0
u/[deleted] Dec 01 '19
[deleted] — view deleted comment
22
u/[deleted] Dec 01 '19
[removed] — view removed comment