3 ms·
That is a polyglot which is written in two languages. It is written and interpreted using the cat language, which is an interpreted language in which every pos
by kazinator 5y ago
That is a polyglot which is written in two languages.
It is written and interpreted using the cat language, which is an interpreted language in which every possible byte stands for a self-printing action, and those actions are carried out in order for all bytes of the input.
It is also written in the hash-bang language, which is placed into a file to specify to the OS kernel what interpreter to use for the file.
So first this is interpreted as a hash-bang language statement, which then causes the cat interpreter to be applied, causing it to be a cat language statement.
The hash-bang interpretation is what induces the binding between the cat interpreter and the hash-bang statement, evoking the cat language interpretation.
:)