[ home / overboard ] [ spam ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]

A banner for soyjak.party

/pol/ - International /Pol/itics & /Bant/er

Politics & countrywars
Catalog
Name
Email
Subject
Comment
Flag
File
Password (For file deletion.)

File: pepe_fatcunt.webp πŸ“₯︎ (3.83 KB, 245x255) ImgOps

 β„–3480697[Quote]

does anybody else abstract away switch statements as an array of structs with function pointers or it's just me? It's an easy way to structure dada.

 β„–3480701[Quote]

File: jeet.mp4 πŸ“₯︎ (7.88 MB, 512x512) ImgOps

>does anybody else abstract away switch statements as an array of structs with function pointers or it's just me? It's an easy way to structure dada.

 β„–3480708[Quote]

>>3480697 (OP)
I don't understand what this means

 β„–3480719[Quote]

>>3480708
sometimes 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

 β„–3480727[Quote]

>>3480701
i am not a jeet

 β„–3480740[Quote]

>>3480719
i 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.

 β„–3480755[Quote]

>>3480719
sometimes

 β„–3480760[Quote]

it's based and c-the-programming-language-pilled

 β„–3480809[Quote]

anyone wants to talk about c programming language?

 β„–3480817[Quote]

>>3480809
What's the easiest way to learn coding.

 β„–3480818[Quote]

Uh yeah sure

 β„–3480826[Quote]

>>3480817
code simple toy programs in the language you want to use

 β„–3480828[Quote]

>>3480817
like 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

 β„–3480895[Quote]


 β„–3480920[Quote]

Wtf is a switch statement?

 β„–3480927[Quote]

File: IMG_4217.png πŸ“₯︎ (30.38 KB, 961x867) ImgOps

>Abstract

 β„–3480929[Quote]

>>3480826
I have done some minor coding in vidya, mainly making mods n shieet
>>3480828
That sounds boring tbh

 β„–3480932[Quote]

>>3480920
multiple logic cases thing
like if or
o algo.

 β„–3480941[Quote]

>>3480932
Bros talking about graming?

 β„–3480974[Quote]

>>3480927
nigga…
>>3480920
a 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]

>>3480929
what 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 assembly
I KNEEL

 β„–3480993[Quote]

>>3480979
idk, probably python or something so I can code raspberry pis.

 β„–3480994[Quote]

>>3480974
What 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]

>>3481099
already is
aryan hobby

 β„–3481105[Quote]

>>3481099
Assembly is insane doe. It'll be the last language Ai masters imo

 β„–3481110[Quote]

>>3481105
meds its just tedious

 β„–3481121[Quote]

>>3481110
>tedious
Is vulkan programming easier or harder than assembly?

 β„–3481133[Quote]

>>3481121
they 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 processor

The downplaying you are doing is comical.

 β„–3481183[Quote]

>>3481099
error: print undeclared (first use in the function)
Note: maybe you meant "printf(const char *, …)"

 β„–3481186[Quote]

>>3480697 (OP)
billions mvst vse tables

 β„–3481190[Quote]

>>3481186
lua >>> javascript.

 β„–3481197[Quote]

>>3481175
meds. shader code is not that hard
also nophono who is writing assembly cares fan about that stuff
t. knower
>>3481190
jeetscript has so many shorthand features doe.

 β„–3481211[Quote]

>>3481197
whatever. I still think that a language like ruby or lua should be the web standart

 β„–3481217[Quote]

>>3481211
>ruby
snca
>lua
keyed

 β„–3481218[Quote]

>>3481197
>vulkan is just shaders bro
Its not
t. Actual knower

 β„–3481222[Quote]

>>3481218
Proof it.

 β„–3481249[Quote]

>>3481222
<llama.cpp compiled for vulkan (out competes rocm to often, rip amd)
<whole game engines compiled to leverage optimized vulkan maff

 β„–3481255[Quote]

>>3481249
meds ive never heard of it outcompeteing rocm

 β„–3481260[Quote]

>>3481100
>>3481099
AI can't do shit, sprunkiesuckie

 β„–3481268[Quote]

File: anthropomorphic onion onio….png πŸ“₯︎ (279.11 KB, 827x953) ImgOps

>>3481255
>t. knower
<

 β„–3481273[Quote]

>>3481260
It do type a Lotta shit, and can create a solid draft for annoying hyperspecifc sloppa

 β„–3481274[Quote]

>>3481255
i think i read something about it performing better than rocm

 β„–3481279[Quote]

>>3481255
Notice how I DIDNT say radeon either. Because vulkan is a math engine. Not just a shader engine.

 β„–3481282[Quote]

>>3480719
Pretty neat

 β„–3481296[Quote]

>>3481274
Its 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.

 β„–3481330[Quote]

File: 23617.png πŸ“₯︎ (123.89 KB, 860x484) ImgOps

>NOOO WE REMOVED THE TENSILE LIBRARIES FOR THE CARDS. STOP USING THEM NOOO
>NOOOO WE REMOVE THE ARCHiTECTURE FROM BEING RECOGNIZED BY THE DRIVER NOOOO

 β„–3481338[Quote]

>>3481268
I'm sorry. Please forgive me.
>>3481274
based on what?
>>3481279
ummmmm shaders are literally math so yeah.

 β„–3481354[Quote]

>>3481338
You, should, know what I mean. People think shader engines just means 3d rendering. But it means a specific math optimized core.

 β„–3481366[Quote]

>>3481354
I knew dis.

 β„–3481400[Quote]

>>3481366
Mmmmhhhhhmmmmmmm

 β„–3481409[Quote]

>>3481400
Bro. what the fuck. quit trolling me
i know its you

 β„–3481418[Quote]

>>3481409
>I know its you
What

 β„–3481421[Quote]

>>3481418
You cant fool me.

 β„–3481429[Quote]

>>3481421
What are you even talking about tho?

 β„–3481438[Quote]

File: 1774165596662d.png πŸ“₯︎ (45.85 KB, 255x255) ImgOps


 β„–3481468[Quote]

>>3480697 (OP)
blah blah bbc cp /dev/null cat programming 0xC0FF3 or algo

 β„–3481474[Quote]

>>3481468
>bbc cp
reported

 β„–3481483[Quote]

>>3481474
didn't read the cp(1) man page award

 β„–3481486[Quote]

>>3481483
sorry was too busy using rsync coz im not a pedo.

 β„–3481497[Quote]

>>3481486
rsync is too complicated too lazy to learn using it

 β„–3481501[Quote]

>>3481468
C'P'P

BRO…

 β„–3481504[Quote]

>>3481501
Vietnampilled

 β„–3481514[Quote]

every program that has an argument that can be abbreviated to -p is pedophilic because its literally 'p

 β„–3481532[Quote]

>>3481514
'PowerSShell

 β„–3481541[Quote]

>>3481514
ssh -p……



[Return][Catalog][Go to top][Post a Reply]
Delete Post [ ]
[ home / overboard ] [ spam ] [ soy / qa / raid / r ] [ int / pol ] [ a / an / asp / biz / mtv / r9k / tech / v / sude / x ] [ q / news / chive / rules / pass / bans / status ] [ wiki / booru / irc ]