β3480708[Quote]
>>3480697 (OP)I don't understand what this means
β3480719[Quote]
>>3480708sometimes instead of switch statements I use static const struct {key; void (*funptr)(); } arr[] = {/*something*/}; and then make a lookup function so I have a separate access to the logic and the key and don't have bloated nested switch statements
β3480740[Quote]
>>3480719i also add an empty element at the end and check for it during the lookup so I don't have to know the size of the array.
β3480760[Quote]
it's based and c-the-programming-language-pilled
β3480809[Quote]
anyone wants to talk about c programming language?
β3480817[Quote]
>>3480809What's the easiest way to learn coding.
β3480818[Quote]
Uh yeah sure
β3480826[Quote]
>>3480817code simple toy programs in the language you want to use
β3480828[Quote]
>>3480817like counting fibonnaci sequence by index
β3480838[Quote]
here's a better idea: implement a binary tree. It's just a linked list with a pointer to two children and a parent
β3480920[Quote]
Wtf is a switch statement?
β3480929[Quote]
>>3480826I have done some minor coding in vidya, mainly making mods n shieet
>>3480828That sounds boring tbh
β3480932[Quote]
>>3480920multiple logic cases thing
like if or
o algo.
β3480941[Quote]
>>3480932Bros talking about graming?
β3480974[Quote]
>>3480927nigga…
>>3480920a switch statement is a more optimized conditional statement than if-statement. Basically in assembly it looks like a series of cmp register, value and jnz to the next comparison
i.e.
switch(x){
case 0: x - 3; break;
case 1: /*falltrough*/
case 2: x + 1; break;
default: x + 2;
}
looks something like this
(value of x in eax)
cmp eax, 0
jnz +2(eip) or something like that
sub eax, 3
cmp eax, 1
jmp +3(eip)
cmp eax, 2
jnz +2(eip)
add eax, 1
jmp +2(eip)
add eax, 2 default
β3480979[Quote]
>>3480929what language do you want to learn
β3480980[Quote]
<idk the lingo, but I gram
If you make dem as an array, wit pointers, you can call em up whenever and thats awesome, and flexible n shit. But it can get messy if the grams big and data heavy or som. It can also be the reason your gram runs fast AND the reason it runs slow. For functions of my gram I KNOW ill be able to leverage hpc, AND I know ill eventually come back and do updates n shit, array is best. Everything else, nope. Once im done with it, I dont Wana see that shit again.
β3480982[Quote]
>>3480974>Basically in assemblyI
KNEEL β3480993[Quote]
>>3480979idk, probably python or something so I can code raspberry pis.
β3480994[Quote]
>>3480974What are you making in assembly? TempleOS-2.0?
β3481089[Quote]
what are you making in assembly?
β3481099[Quote]
print("Shut up nigger nobaldi cares about coding AI will probably make it obsolete in 5 years")
β3481100[Quote]
Shut up nigger nobaldi cares about coding AI will probably make it obsolete in 5 years
β3481101[Quote]
>>3481099already is
aryan hobby
β3481105[Quote]
>>3481099Assembly is insane doe. It'll be the last language Ai masters imo
β3481110[Quote]
>>3481105meds its just tedious
β3481121[Quote]
>>3481110>tediousIs vulkan programming easier or harder than assembly?
β3481133[Quote]
>>3481121they are different concepts doe
for assembly you just need to wrap your head around registers and stack
shader code is snca vertex drawing o algo.
probably about the same
β3481175[Quote]
>>3481133>optimizing multilayered virtual environments + security + dealing with everyone elses shit + insanely abstract for 30 years of silicon maff Vs
>making every single 3d environment work with everything graphics processorThe downplaying you are doing is comical.
β3481183[Quote]
>>3481099error: print undeclared (first use in the function)
Note: maybe you meant "printf(const char *, …)"
β3481186[Quote]
>>3480697 (OP)billions mvst vse tables
β3481190[Quote]
>>3481186lua >>> javascript.
β3481197[Quote]
>>3481175meds. shader code is not that hard
also nophono who is writing assembly cares fan about that stuff
t. knower
>>3481190jeetscript has so many shorthand features doe.
β3481211[Quote]
>>3481197whatever. I still think that a language like ruby or lua should be the web standart
β3481217[Quote]
>>3481211>rubysnca
>luakeyed
β3481218[Quote]
>>3481197>vulkan is just shaders broIts not
t. Actual knower
β3481255[Quote]
>>3481249meds ive never heard of it outcompeteing rocm
β3481260[Quote]
>>3481100>>3481099AI can't do shit, sprunkiesuckie
β3481273[Quote]
>>3481260It do type a Lotta shit, and can create a solid draft for annoying hyperspecifc sloppa
β3481274[Quote]
>>3481255i think i read something about it performing better than rocm
β3481279[Quote]
>>3481255Notice how I DIDNT say radeon either. Because vulkan is a math engine. Not just a shader engine.
β3481296[Quote]
>>3481274Its mostly because amd is assholes and force their old data center gpus off their drivers. And the VULKANGODS bless us with optimized everything, and vve hate rocm.
β3481338[Quote]
>>3481268I'm sorry. Please forgive me.
>>3481274based on what?
>>3481279ummmmm shaders are literally math so yeah.
β3481354[Quote]
>>3481338You, should, know what I mean. People think shader engines just means 3d rendering. But it means a specific math optimized core.
β3481400[Quote]
>>3481366Mmmmhhhhhmmmmmmm
β3481409[Quote]
>>3481400Bro. what the fuck. quit trolling me
i know its you
β3481418[Quote]
>>3481409>I know its youWhat
β3481421[Quote]
>>3481418You cant fool me.
β3481429[Quote]
>>3481421What are you even talking about tho?
β3481468[Quote]
>>3480697 (OP)blah blah bbc cp /dev/null cat programming 0xC0FF3 or algo
β3481483[Quote]
>>3481474didn't read the cp(1) man page award
β3481486[Quote]
>>3481483sorry was too busy using rsync coz im not a pedo.
β3481497[Quote]
>>3481486rsync is too complicated too lazy to learn using it
β3481514[Quote]
every program that has an argument that can be abbreviated to -p is pedophilic because its literally 'p