C Language - /g/ (#106035246)

Anonymous
7/26/2025, 6:18:17 PM No.106035246
51EyaJeebHL._UF1000,1000_QL80_
51EyaJeebHL._UF1000,1000_QL80_
md5: e01013cdf52871719e44ab6d48503aec🔍
> Created over 50 years ago
> Mogs low effort Zoomers
> Prefered language for most things important and low level
The cope posts about Rust are getting old.
Replies: >>106035484 >>106035503 >>106035510 >>106035775 >>106035806 >>106037555 >>106039009
Anonymous
7/26/2025, 6:27:39 PM No.106035347
You forgot
>needs hotfixes on a regular basis, breaking compatibility
>leaves a bunch of shit ambiguous, compilers can do whatever the fuck they want
Replies: >>106035491
Anonymous
7/26/2025, 6:37:52 PM No.106035467
Unix was a mistake
Replies: >>106039108
Anonymous
7/26/2025, 6:40:10 PM No.106035484
>>106035246 (OP)
Kernighan, Ritchie and possibly Pike are responsible for more braindead CVEs than any other people in history. They're gigantic boomer retards that had no idea what they were doing.
Replies: >>106035842
Anonymous
7/26/2025, 6:41:32 PM No.106035491
>>106035347
>leaves a bunch of shit ambiguous, compilers can do whatever the fuck they want
UB is a feature, retard-kun.
Anonymous
7/26/2025, 6:43:04 PM No.106035503
1*Lifm92oXamrKf4_9Ry4yQA
1*Lifm92oXamrKf4_9Ry4yQA
md5: af4ac5a77c9879cb614df3d265e8b3c8🔍
>>106035246 (OP)
Most important software is written in C++ actually.
Replies: >>106035558 >>106035704
Anonymous
7/26/2025, 6:43:23 PM No.106035510
>>106035246 (OP)
It seems like Latin. I've only dabbled in it and a couple other languages but it feels that others like C++/Java/C# are built on top of it.
Anonymous
7/26/2025, 6:47:47 PM No.106035558
>>106035503
>dumps everything into namespace std, with no subnamespaces
Anonymous
7/26/2025, 7:00:16 PM No.106035704
1733635370845728
1733635370845728
md5: 99f64d92a12744dd825ebd91ed0655c5🔍
>>106035503
>C plus std::s
Anonymous
7/26/2025, 7:06:38 PM No.106035775
>>106035246 (OP)
C programmer here. 50 years ago C was very different from the C we use today. I think Pascal was a better programming language.
Replies: >>106035803
Anonymous
7/26/2025, 7:08:48 PM No.106035803
>>106035775
50 years ago Pascal was also a different language, retard
That's why it got left behind
Anonymous
7/26/2025, 7:09:02 PM No.106035806
>>106035246 (OP)
I'll just program in C# AND have a job instead, grandpa.
Replies: >>106035843
Anonymous
7/26/2025, 7:11:15 PM No.106035842
>>106035484
Explain to a programming brainlet like me what you mean.
Replies: >>106035866
Anonymous
7/26/2025, 7:11:16 PM No.106035843
>>106035806
>prostituting yourself for someone richer makes your habits valid and important
Anonymous
7/26/2025, 7:13:05 PM No.106035866
>>106035842
He's just crying about how millenials and zoomers can't into memory management and this is somehow Kernighan and Ritchie's fault
Replies: >>106035886 >>106035981
Anonymous
7/26/2025, 7:14:37 PM No.106035886
>>106035866
But memory management is easy? It's just malloc() and free(). Am i retarded or is it really just that easy?
Replies: >>106035949 >>106036702 >>106036835 >>106039182
Anonymous
7/26/2025, 7:19:31 PM No.106035949
>>106035886
It is, the point of some people is making it looks like the demon so they promote their garbage collected or borrow checkered languages
Anon is probably also crying about null-terminated strings
Anonymous
7/26/2025, 7:21:52 PM No.106035981
>>106035866
Just code in assembly you autistic
Replies: >>106035983
Anonymous
7/26/2025, 7:22:27 PM No.106035983
>>106035981
C is architecture agnostic
Replies: >>106036124
Anonymous
7/26/2025, 7:33:28 PM No.106036124
>>106035983
Because it's basically a tiny step up from assembly, not meant for human but for drones lol
Replies: >>106036179
Anonymous
7/26/2025, 7:37:36 PM No.106036179
>>106036124
Not meant for normies, zoomers and lazy people in general
Replies: >>106036188
Anonymous
7/26/2025, 7:39:06 PM No.106036188
>>106036179
Your shit is bugged and disgustingly full of vulnerabilities though, no wonder jeets love it
Replies: >>106036213
Anonymous
7/26/2025, 7:41:16 PM No.106036213
>>106036188
And what do you think your higher level languages are built on?
They just hide the real code from the spoonfed programmers
Replies: >>106036241 >>106036875
Anonymous
7/26/2025, 7:44:24 PM No.106036241
>>106036213
Well enjoy being an old mongoloid coper
Replies: >>106036249
Anonymous
7/26/2025, 7:44:59 PM No.106036249
>>106036241
Spouting buzzwords don't make you right
Replies: >>106036272
Anonymous
7/26/2025, 7:48:05 PM No.106036272
>>106036249
C is retardese, you are probably autistic
Anonymous
7/26/2025, 8:29:46 PM No.106036702
>>106035886
It's very much a human error - sometimes you forget to free() or close() or you have a branch where you try to access a previously freed pointer etc etc. C simply doesn't hold your hand which leads into a lot of negligence-based errors
Plus the types aren't actually standardized between platforms so while on most modern systems int has 32 bits, there are some where it's smaller, char isn't guaranteed to be 8 bits etc, which can lead into some memory errors (alleviated by stdint.h but that's hardly a perfect solution)
Plus the standard library contains a while lot of unsafe functions, like gets(), so you have to know which ones are ok to use and which ones are not.
Plus a whole lot of things that are allowed by the compiler without as much as a warning, but are actually undefined behavior
The language could use a lot of cleanup, but that won't happen at this point because it would mean likely breaking compatibility
Anonymous
7/26/2025, 8:40:03 PM No.106036835
>>106035886
>But memory management is easy? It's just malloc() and free(). Am i retarded or is it really just that easy?
No, that's memory management in a normal language like Pascal and PL/I. In C, you have null-terminated strings that have no way to check the length, so a program can put 1 GB of data in a buffer meant for a 10 byte string, and then that data includes malware that can exploit your computer and install ransomware on it.
Replies: >>106037196 >>106037501 >>106039301
Anonymous
7/26/2025, 8:42:51 PM No.106036875
>>106036213
>And what do you think your higher level languages are built on?
>They just hide the real code from the spoonfed programmers
You're wrong. Higher level languages are the real code. C is an artificial "level" of programming that shouldn't be there, just so Ctrannies can pretend to have something to do.
https://github.com/froggey/Mezzano
Anonymous
7/26/2025, 9:09:03 PM No.106037196
>>106036835
There are actually ways to check the length (yes, even safe ones)
There are ways to prevent buffer overflow exploits by simply using functions which allow you to specify exactly the number of bytes you are reading or writing (read(2) and write(2) respectively)
All C bugs are, ultimately, human error. You can argue that the language makes it very easy to fuck up, which is true, but at the end of the day it's still _your_ fuckup
Replies: >>106037411 >>106040017
Anonymous
7/26/2025, 9:25:12 PM No.106037411
>>106037196
>All C bugs are, ultimately, human error.
Because C was created by humans who designed a bad language. All those bugs in C are avoidable in good languages.

>You can argue that the language makes it very easy to fuck up, which is true, but at the end of the day it's still _your_ fuckup
Yes, because you chose to use C. You didn't have to use C, but you chose to use it on purpose, so it is your fuckup.
Replies: >>106037499 >>106039001
Anonymous
7/26/2025, 9:32:18 PM No.106037499
>>106037411
skill issue: the comment
Anonymous
7/26/2025, 9:32:23 PM No.106037501
>>106036835
Yeah, NULL terminated strings and unbounded buffers were a design mistake but it can be solved by using fat structs so the problem is not the language itself but the C mindset.
Anonymous
7/26/2025, 9:32:58 PM No.106037508
>string manipulation
>C completely implodes
Anonymous
7/26/2025, 9:33:58 PM No.106037519
>use python
>get something done about 10x faster since I don't have to write a mountain of code for one line of python
Replies: >>106037608
Anonymous
7/26/2025, 9:36:33 PM No.106037555
>>106035246 (OP)
No one will ever create a better programming language. C is peak programming.
Anonymous
7/26/2025, 9:41:12 PM No.106037608
>>106037519
Write a function that reverse a string in Python.
Replies: >>106037666
Anonymous
7/26/2025, 9:45:42 PM No.106037666
>>106037608
>import reverse_a_string
wow it was so hard
Anonymous
7/26/2025, 9:49:43 PM No.106037720
161649667732622
161649667732622
md5: a8c43fb2d1a69ef8dfa2137cef765e6c🔍
Anonymous
7/26/2025, 10:57:49 PM No.106038531
Half of the annons here are probably web shit devs. Try writting small microcontroller firmware in anything but C. I guess assembly is allways an option.

Software is not only web shit and python trash. The ignorance ITT is unbelivable.
Replies: >>106039581
Anonymous
7/26/2025, 11:26:52 PM No.106038891
C really is the best programming language.
Anonymous
7/26/2025, 11:38:09 PM No.106039001
>>106037411
despite C having glaring design flaws that weren't accounted for back when it was made I still use it for hobby projects due to how simple it is when you design interfaces well, also it is fairly easily translatable from pseudocode to what it already does unless you hide things behind macro slop which defeats the purpose.
Anonymous
7/26/2025, 11:38:56 PM No.106039009
agatha-king-system-monitor-1880x1039
agatha-king-system-monitor-1880x1039
md5: daa063dd65b0b7ed25d34ef5a4bb4baf🔍
>>106035246 (OP)
I unironically believe C will never die. At least not in the forseeable future.
In the year 2225, some commercial spacecraft to Saturn will have its internal operating system written in C.

You know its true.
Anonymous
7/26/2025, 11:48:03 PM No.106039108
>>106035467
Yeah I would like to imagine a world where everything is based on windows fucking server
Replies: >>106039135
Anonymous
7/26/2025, 11:50:44 PM No.106039135
>>106039108
having just gotten rid of windows server, I would literally an hero if I had to deal with it again.
Anonymous
7/26/2025, 11:54:31 PM No.106039182
>>106035886
https://www.youtube.com/watch?v=cNywlNWan9o
Replies: >>106039199 >>106039234
Anonymous
7/26/2025, 11:56:25 PM No.106039199
>>106039182
fireship worships c for some reason
he should write a program in it
it wont bite at worst it will segfault
Anonymous
7/26/2025, 11:59:19 PM No.106039234
>>106039182
i mean i appreciate it
and theres the c meme
but
idk
i write in c
bc its honestly easier than the rest of whats on the market ***for what i do
Anonymous
7/27/2025, 12:06:57 AM No.106039301
>>106036835
Sounds like an OS problem.
Replies: >>106040069
Anonymous
7/27/2025, 12:33:00 AM No.106039581
>>106038531
C is the language that won the war to become the "first sane stop to write code in above assembler". Lower level languages have basically died, and only a few survive at C's level (Fortran being the main one). Almost all nulangs are higher level in their ambition, and tend to come with more runtime overhead as a consequence; neither copies nor dereferences are free.
Anonymous
7/27/2025, 1:16:56 AM No.106040017
>>106037196
>All C bugs are, ultimately, human error.
I'd say this is correct, provided we get a complete list of anything capable of undocumented behaviour, though failing to provide said list could also be considered human error, just as a bad implementation of the compiler would be.
Anonymous
7/27/2025, 1:21:10 AM No.106040069
>>106039301
It's not an OS problem because the OS doesn't write the C standard. For it to be a C compiler, it has to have all the C brain damage, otherwise C programs won't work. If you want to use something that looks like C but works better, use JavaScript.
Replies: >>106040144 >>106040567 >>106040593
Anonymous
7/27/2025, 1:28:29 AM No.106040144
>>106040069
>C brain damage.
Only when you realize that absolutely every dicision made in the design of the language was geared towards performance, do you truly begin to appreciate the genius behind it's quirks.
Replies: >>106040169 >>106040191
Anonymous
7/27/2025, 1:30:58 AM No.106040169
>>106040144
Array decay and null-terminated strings are horrible for performance, unless your "performance" means job performance of hackers.
Replies: >>106040208
Anonymous
7/27/2025, 1:32:58 AM No.106040191
>>106040144
c is logic
and allows you to create your own interfaces
the only valid critiques of c are its antiquated libs
its function calling conventions
or its limited macros
99% of which are fixed in extended c
Anonymous
7/27/2025, 1:34:27 AM No.106040208
>>106040169
>antiquated libs
dont use em with strings

rustniggers have the borrow checker and a myriad prosneedures
c-ultists need to machine and os knowledge

id rather deal with a complex machine than with a complex framework
and so i use C
Anonymous
7/27/2025, 2:13:14 AM No.106040567
>>106040069
JS not only does away with C's linearity but its usecase is much different to C's. JavaScript is a scripting language meant to run in a web environment, if you're going to be a midwit then research beforehand.
Anonymous
7/27/2025, 2:15:53 AM No.106040593
>>106040069
The OS can read memory and detect the malware, therefore it should. Not the compiler's problem.