[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1756497300505.png (115 KB, 570x814)
115 KB
115 KB PNG
Is C the best language for intelectual mastrubation and jeet "tricks"?
>>
we already know indians are retarded, why did you think this was worthy of a thread?
>>
>>106425356
Brahmin beast 99% aryan uberman
>>
>>106425356
the condition being true or false doesn't even matter here
>>
>>106425356
>
return 0;
>>
File: 364636436636.png (68 KB, 498x593)
68 KB
68 KB PNG
>>106425356
#include <stdint.h>
#include <stdio.h>
int main()
{
//the following code should be self-explanatory
int format = 684837;
uint64_t freqs[16] = {4054998059412627488, 7303807615843717704, 6799974004618176629, 4657449412518044769, 7955156174022466392, 3513286678004007804, 478559098708};
uint64_t phases[16] = {3316907778697993493, 1442841045428938803, 1156952529336864027, 4473781984858234378, 5490526870435153165, 1527017391200686200, 26681431365};
uint64_t composite[32] = {0};
int i = 0;
unsigned char frequency = i[(char*)(freqs)];
unsigned char phase = i[(char*)(phases)];
while (frequency > 0){
for (int j=phase;j<2048;j+=frequency){
(j/64)[composite] |= ((uint64_t)1 << j%64);
}
frequency = (i%64)[(char*)(freqs+i/64)];
phase = (i%64)[(char*)(phases+i/64)];
i++;
}
printf((char*)&format, composite);
return 0;
}
>>
Coroutine in C.
int function(void) {
static int i, state = 0;
switch (state) {
case 0: /* start of function */
for (i = 0; i < 10; i++) {
state = 1; /* so we will come back to "case 1" */
return i;
case 1:; /* resume control straight after the return */
}
}
}
>>
>>106425873
> Now this is looking promising. All we have to do now is construct a few well chosen macros, and we can hide the gory details in something plausible-looking:
#define crBegin static int state=0; switch(state) { case 0:
#define crReturn(i,x) do { state=i; return x; case i:; } while (0)
#define crFinish }
int function(void) {
static int i;
crBegin;
for (i = 0; i < 10; i++)
crReturn(1, i);
crFinish;
}


https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
>>
>>106425356
I have ignored hundreds, thousands of brownoids on LinkedIn.
>>
>>106425356
>Is C the best language for intelectual mastrubation
Perl isn't entirely dead yet.
>>
>>106425356
>for intelectual mastrubation
no, thats lisp

ive been asking around why people use lisp
and theres only one answer to that
>i find it neat
>>
>>106425356
I have massive secondhand embarrassment right now
>>
>>106425356
usecase?
>>
File: 1749890423730552.png (44 KB, 462x537)
44 KB
44 KB PNG
>>106425356
real cniles know printf has a return value
also the return 0 is unnecessary
>>
>>106425356
top kek
>>
>>106425356
Mfw no using puts() instead of printf()
>>
#include <stdio.h>
#define omg(...) printf(__VA_ARGS__);
int main() {
omg("%" "s", "NO" " " "SEMICOLONS" "!" "\n")
omg("am a genius\n")
return 0;
}

i thank god everyday that i never had to deal with jeets. neither when i was writing c, nor when i'm mostly writing rust now. and it aint just about the code.
>>
>>106425356
> not using interrupt 10h
>>
>>106425356
Haskell, Scheme/Lisp, Tcl (yes, really) are all good languages for tricks.
>>
>>106429038
>Proprietary DOS shitware
we syscall or int 0x80 up in this bish.
>>
>>106428632
this uses a semicolon in the predecessor directives
>>
>>106429570
Heh
>>
>>106425356
That text looks suspiciously much like something ChatGPT would write, especially when you consider that jeets can't ever write correct sentences or follow basic grammatical rules.
>>
>>106432218
It's worse than that. There's like a bazillion jeet tutorials on TurboC (yes, pre-ANSI) and none of them appears to acknowledge the existence of indentation.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.