🇨🇳
🌞

while(1) 与什么是哲学?

Philosophy is not an infinite loop inside, philosophy is a finite code outside.

workflow

1
2
3
$ vim philosophy.c
$ # input the code
$ gcc philosophy.c -o philosophy && ./philosophy | head -n 10

en

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>

int main () {
    char question[] = "What is ";
    char idea[]     = "philosophy";
    char prefix[]   = "philosophy of ";
    char symbol[]   = "?";

    char iteration[42]; // assume 42 is infinite ∞

    while(1) {
        printf("%s%s%s%s\n", question, iteration, idea, symbol);
        strcat(iteration, prefix);
    }
}

What is philosophy?
What is philosophy of philosophy?
What is philosophy of philosophy of philosophy?
What is philosophy of philosophy of philosophy of philosophy?
...

zh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>

int main () {
    char question[] = "什么是";
    char idea[]     = "哲学";
    char suffix[]   = "的哲学";
    char symbol[]   = "";

    char iteration[42]; // assume 42 is infinite ∞

    while(1) {
        printf("%s%s%s%s\n", question, idea, iteration, symbol);
        strcat(iteration, suffix);
    }
}

什么是哲学?
什么是哲学的哲学?
什么是哲学的哲学的哲学?
什么是哲学的哲学的哲学的哲学?
……

idea

Philosophy is not an infinite loop inside, philosophy is a finite code outside.

哲学不是里面的无限循环,哲学是外面的有限代码。

点击刷新