← Home ← Back to /g/

Thread 105618175

14 posts 8 images /g/
Anonymous No.105618175 [Report] >>105618424 >>105618602 >>105618808 >>105619500
There is nothing wrong with enjoying yourself
The majority of /g/ are miserable fags and trannies that just write fizz buzz over and over.
Anonymous No.105618424 [Report] >>105618602
>>105618175 (OP)
>unusable lingo to anyone above fridge IQ
>major traumatic nocoder cope
Anonymous No.105618602 [Report] >>105618737 >>105618789
>>105618175 (OP)
>>105618424
fizz
Anonymous No.105618737 [Report] >>105618789
>>105618602
>buzz
Anonymous No.105618789 [Report] >>105618811 >>105618907
>>105618737
retardo

>>105618602
4
Anonymous No.105618808 [Report] >>105619108
>>105618175 (OP)
I bet you can't write branchless fizzbuzz
Anonymous No.105618811 [Report] >>105618907
>>105618789
>another nocoder zoomer joins the ranks of street shitters
Anonymous No.105618907 [Report]
>>105618811
>another projectionist projecting
>>105618789
buzz
Anonymous No.105619108 [Report] >>105619419
>>105618808
Sit down kid,
Anonymous No.105619419 [Report] >>105619448
>>105619108
You can't do it with Python. The loop will use a branching jump and also the code that prints numbers will use branching jumps. You need to use C:
int putchar(int);
static void prn(const char* s) {
void* labels[] = {&&loop, &&end};
loop:
putchar(*s);
goto *labels[*s++ == 0];
end:;
}
int main() {
const char* const digits = "\0""0123456789";
const char* const fizz = "\0""fizz";
const char* const buzz = "\0""buzz";
void* labels[] = {&&loop, &&end};
int i = 1;
loop:
const int d3 = i % 3 == 0;
const int d5 = i % 5 == 0;
putchar(digits[(1 + i / 10) * !(d3 | d5 | (i < 10))]);
putchar(digits[(1 + i % 10) * !(d3 | d5)]);
prn(fizz + d3);
prn(buzz + d5);
putchar('\n');
goto *labels[++i > 100];
end:;
}
Anonymous No.105619448 [Report] >>105620928
>>105619419
Honestly this is OPs point exactly.
Anonymous No.105619500 [Report]
>>105618175 (OP)
Saar, are you prostitute?
Anonymous No.105620928 [Report] >>105621669
>>105619448
Fizzbuzz is where all advances in computing are made though.

That, and hello world.

7F 45 4C 46 B2 0C B9 40 00 04 00 B3 01 EB 05 90 02 00 03 00 B0 04 EB 08 04 00 04 00 2C 00 00 00 CD 80 B3 4C B0 01 CD 80 34 00 20 00 01 00 00 00 00 00 00 00 00 00 04 00 45 45 45 45 4C 00 00 00 48 65 6C 6C 6F 20 57 6F 72 6C 64 0A
Anonymous No.105621669 [Report]
>>105620928
Yes.
https://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz/236630#236630