â„–3995304[Quote]
TOO CONFUSING just use ai
â„–3995305[Quote]
use ai bro 😂
â„–3995308[Quote]
>>3995305>>3995304this is why your country is dying. Maybe jeets can do AI too to rape your wives more efficiently?
â„–3995310[Quote]
Use ai
â„–3995311[Quote]
use ai
â„–3995314[Quote]
>>3995310I wrote this whole code generator, lexer, parser, a library that provides runtime ALL BY MYSELF. I built it all from an empty room.
â„–3995317[Quote]
>>3995308Sorry you're right I'm just too retarded to read code with more lines than bubble sort
â„–3995318[Quote]
>>3995314Ai could do it in 2 seconds 💀
â„–3995319[Quote]
>>3995314>didnt write his own compilerngmi
â„–3995321[Quote]
>>3995314well it's not actually a parser it doesn't utilize parsing algorithms because I lay off all the work to C compiler so it's really just a macroprocessor but still.
â„–3995325[Quote]
>>3995319well I will never reach the level of optimizations of GCC on my own. The things GCC does are important for the runtime.
â„–3995335[Quote]
bump. don't bring up ai.
â„–3995342[Quote]
From what resources did you learn this stuff? Next year I'll try reading a lot more books and I'd like to learn coding on ma own
â„–3995345[Quote]
>>3995335What Coding Language should I really learn if I can do some really basic stuff in Python, like basic OOP and such?
â„–3995354[Quote]
>>3995342My only attempt at coding is attempting to code a Minecraft add-on which I failed horrendously at before giving up
â„–3995369[Quote]
here an improved script by chatgpt
"static void wfc_pair(token *lexed, unsigned char stage)
{
char name[2] = { 0 };
for (unsigned int pair_index = 0; pair_index < pairs_size; ++pair_index) {
if (pairs[pair_index].stage != stage)
continue;
if (pairs[pair_index].token[0] != lexed[1])
continue;
unsigned int lex_index = 1;
for (unsigned int token_index = 1; token_index < 3; ++token_index) {
if (pairs[pair_index].token[token_index] >= 128)
break;
if (!((lexed[++lex_index] >= 'a' && lexed[lex_index] <= 'z') ||
(lexed[lex_index] >= 'A' && lexed[lex_index] <= 'Z') ||
(lexed[lex_index] >= '0' && lexed[lex_index] <= '9'))) {
printf(ERROR_EXPECTED_LABEL);
while (1);
}
name[token_index - 1] = lexed[lex_index];
}
printf(pairs[pair_index].pasta,
name[0],
name[1] ? name[1] : name[0]);
if (pairs[pair_index].function)
pairs[pair_index].function();
return;
}
}"
â„–3995370[Quote]
>>3995298 (OP)No I don't that's why I'm a sad little faggot
â„–3995379[Quote]
>>3995298 (OP)Also you're in C not C#
First is change switch case into LINQ
Second is move two last printf into a new internal function with default second params name[0]
Again I'm a sad C# faggot
â„–3995422[Quote]
>>3995369it's literally the same. Like, there isn't an improvement. I thought it would come up with something different, but no, it just used ternary operators and longer variable names.
â„–3995442[Quote]
linux won, windows lost btw
â„–3995450[Quote]
i accidentally wrote printf instead of fprintf and AI didn't think about fixing it, eventhough it should have, because printing results to console instead of a file is kind of pointless in my case.
â„–3995491[Quote]
lil bro use ai why u wasting your time with ts, ai can make better code than programmers now there is no point for programming lil bro 🤣🤣🤣
â„–3995498[Quote]
the joy of creation