[ home / overboard ] [ date ] [ soy / qa / raid / incel ] [ int / pol ] [ a / biz / fit / mtv / r9k / sude / tech / v / x ] [ q / news / chive / rules / pass / bans / status ] [ booru / wiki ]

A banner for soyjak.party

/tech/ - Soyence and Technology

Download more RAM for your Mac here
Catalog
Email
Subject
Comment
File
Password (For file deletion.)

File: Screenshot_20261107-170955.png 📥︎ (332.16 KB, 1791x380) ImgOps

File: Screenshot_20261107-184655.png 📥︎ (Spoiler Image, 303.56 KB, 1779x540) ImgOps

 â„–44385[Quote]

I am getting so filtered by this (I got the first one on

 â„–44386[Quote]

-my own but the rest are raping me) [i clicked post on accident FUCK]

 â„–44415[Quote]

marge, what is this book ?

 â„–44427[Quote]

File: s-l500.jpg 📥︎ (22.89 KB, 408x500) ImgOps

>>44415
C Programming A Modern Approach. Really recommend it, learning a lot of obscure C stuf with it. Explains things pretty well I'd say.

 â„–44454[Quote]

>>44385 (OP)
you dont need to know this to know C lol

 â„–44468[Quote]

>>44454
>you dont need to
but I want to

 â„–44483[Quote]

File: Oekaki.png 📥︎ (11.62 KB, 480x480) ImgOps

Read declarations starting at the name of the variable being declared (x in these cases), and going outwards from there, prioritising the right hand side over the left and accounting for brackets. Whenever you read an array declarator, the next declarator you read will determine what the array contains. For functions, the next declarator determines the return type (the function's argument types are contained within the brackets). Etc.
Eg., for the second declaration:
>x is
<look to the right of 'x'
>a function taking a single int argument and returning
<can't look right of '(int)' because of the closing bracket, so look to the left of 'x'
>a pointer to
<can't look left of '*' because of the opening bracket, so look outside of the bracketed part starting on the right
>an array of 5
<can't look right of '[5]' because of the end of statement, so look to the left of the bracketed part
>integers

 â„–44532[Quote]

>>44483
Giga, this helped me understand it better. Thanks 'teen

 â„–44563[Quote]


 â„–44734[Quote]

These are literal meme examples
C is a meme language everyone who circlejerks it are the biggest larpers ever who think it's low level and le fast and on the hardware or something
Just learn C++ geg

 â„–44787[Quote]

File: 1790120215198t.gif 📥︎ (1.22 MB, 600x800) ImgOps

I tried doing the c programming language 2nd addition and i got raped by the bitwise exercise in chapter 2. I've tried to wrap my head around it and probably could figure it out but it takes so long for my brain to do so.

 â„–44854[Quote]

File: 1794353327170v.mp4 📥︎ (614.65 KB, 290x270) ImgOps

>>44787
sounds like you should just get stoned and stroke to our feet

 â„–44866[Quote]

>>44734
>meme examples
The point of these examples is to test whether you understand the rules behind declarations rather than just being able to rote memorize a few patterns. Also, I know at least one of these examples shows up in a standard library function: void (*sigset(int, void (*)(int)))(int).
>who think it's low level and le fast
Are they wrong? C is very fast. C and C++ are similarly performant. By modern standards, C is certainly a low level language.

 â„–44870[Quote]

>>44866
No one denied that C is fast, it's all the larpers who think that everything must be written in C despite the fact that C++ and Rust are 1000 times more ergonomic and just as fast
Even fucking Java is just as fast as C in most cases now

>>44787
>learning from a meme book from 1980
This is why C is a meme language

 â„–44871[Quote]

>>44870
>who think that everything must be written in C
Show me an example of who you mean

 â„–44872[Quote]

File: 1793341220127v.png 📥︎ (128.05 KB, 877x278) ImgOps

>>44871
This retard, for example

 â„–44873[Quote]

File: 1790143059208i.png 📥︎ (102.63 KB, 636x329) ImgOps

And larpers like this

 â„–44874[Quote]

Also C++ and Rust are unironically faster than C in most cases. Most algorithms like stdrangessort() and stdrangesfind() in C++ are actually faster than the C equivalent qsort() and bsearch() because the C++ functions are templated whereas C has overhead from casting from void*. Not to mention that C++ and Rust have compile-time execution (constexpr) with type safety while C only has text macros and not even compile-time functions

 â„–44875[Quote]

I write all my software in FORTRAN because I am White.

 â„–44881[Quote]

>>44870
>meme language is when being one of the most-used programming languages in existence

 â„–44900[Quote]

learning C isn't redundant because of rust being better, since rust protects you from c mistakes, if you've never seen a memory bug you wouldn't know wtf its strict compiler rules are for. Plus half the world still uses C but strictly speaking new code rust is better

 â„–44901[Quote]

>>44900
memory management is one of the most important concepts in programming, many rust trannies just tend to ignore it and let the borrow checker cuck them instead, which is why they end up writing garbage software that leaks memory everywhere. They ignore it because """it's safe""".
Rust tends to attract incompetent programmers who don't know what they're doing. This may be "fine" with high level toy languages such as javascript (which is why the entire web is infested with garbage RCE that eats up 90% of your RAM to render a fucking button), but a catastrophe when it goes into systems programming.

 â„–45092[Quote]

>>44881
>old thing is good because it just is okay
Then by that logic you should use piss as mouthwash because the Romans did that.

 â„–45107[Quote]

>>45092
better than whatever fluoride soup the goyim are drinking today geg

 â„–45198[Quote]

>>44901
>MUH you should write code using maual memory allocation or you're not a real wom- I mean programmer
Kill yourself tranny, if delegating trivial/menial tasks to the compiler is so bad then go write assembly manually, or go fire electrical currents into your CPU instead

 â„–45221[Quote]

>>45198
It's not about automating trivial things, because memory management is NOT trivial.
Properly managing memory is very complicated to automate without making it 2000 times more complicated for the programmer who ends up actually using it. It also prevents programmers from actually learning how memory works, and therefore causes them to write shitty code simply because they don't worry about memory anymore.
If you used a memory safe language WITHOUT a garbage collector and WITHOUT a babysitter that only throws compile errors at you when you fucked something up, that's another story. I'd actually encourage this, because it helps drill good practices into your head.
If you want memory safe C/C++, there is this: https://fil-c.org/
Otherwise, use zig if you hate C boilerplate that much.
>Write assembly manually
Actually, all the professional devs I know regularly read the assembly output of their compiler and then adjust their C source code to nudge the compiler into spitting out better, more optimized assembly. This is fairly standard practice, and gives you the best of both worlds.



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