Home › Forums › Science & tech › >C is a great language because it’s so close to the metal
- This topic has 77 replies, 1 voice, and was last updated 7 months, 3 weeks ago by
Anonymous.
-
AuthorPosts
-
-
September 29, 2021 at 11:43 am #119819
-
September 29, 2021 at 11:45 am #119820
Anonymous
Guestwhat do you mean LULZtard?
-
September 29, 2021 at 12:12 pm #119821
Anonymous
Guest>>C is a great language because it’s so close to the metal
That was never the motivation of C, who even told you that? C was created to facilitating wring software that is portable between different architectures; the polar opposite of what you claim. -
September 29, 2021 at 12:13 pm #119822
Anonymous
GuestWhy did Dany burning people alive make me suddenly want her? Scientifically speaking, or course.
-
September 29, 2021 at 12:18 pm #119823
Anonymous
GuestIt does and it is frequently used to toggle bits with bitmasks.
>><< -
September 29, 2021 at 12:19 pm #119824
Anonymous
Guest1) This shit belongs on LULZ
2) You are scrotebrained
3) Fuck you-
September 29, 2021 at 12:25 pm #119825
Anonymous
GuestOP clearly said computer science. The word science is there, it’s all legitimate.
-
September 30, 2021 at 1:00 am #119846
Anonymous
GuestIf it has science in the name, it isn’t science.
>Social Science, Computer Science, Medical Science, Christian Science
vs
>Physics, Chemistry, Geology, Biology
-
-
September 29, 2021 at 1:33 pm #119828
Anonymous
GuestYou’re right. This is an iq and vaccine board. We don’t want any of this schizo computer ((((science)))) shit here.
-
September 30, 2021 at 12:21 am #119839
Anonymous
Guestyou forgot race and asian women
-
-
-
September 29, 2021 at 12:30 pm #119826
Anonymous
GuestI think it’s because hex literals can fulfill the same function, and are far more readable.
-
September 29, 2021 at 1:21 pm #119827
Anonymous
GuestOP needs every binary digit written out for him because his brain is too limited to be able to compress and uncompress hex digits in his head.
OP, if you can’t do ‘4 XOR B’ in your head, you should stick to playing with React like the rest of the code monkeys.-
September 30, 2021 at 7:22 pm #119890
Anonymous
GuestThis
-
-
-
September 29, 2021 at 2:31 pm #119829
Anonymous
GuestNitpicking CS languages is a LULZ thing
>>>/g/-
September 30, 2021 at 1:25 am #119849
Anonymous
GuestThat’s because 99% of them don’t actually code anything beyond the week-one shit you get from the first few chapters of a book. Hence the endless litany of eternal-beginner threads on editor wars, style conventions (camel case, brace styles, etc.), and operator nitpicks.
Look at their Sneedacity fork of Audacity that fell off the wagon. They spent the vast majority of their time updating the README, rewriting CODE OF CONDUCT, designing logos, making brainlet tweaks to the build system, importing from upstream, and whatnot. One scrotebrain changed strcpy() to strncpy() in some dumb little Audacity side utility and didn’t even know that strncpy() won’t write a terminating NUL character if receiving a long enough string.-
September 30, 2021 at 1:32 am #119850
Anonymous
Guest>changed strcpy() to strncpy() in some dumb little Audacity side utility
>didn’t even know that strncpy() won’t write a terminating NUL character if receiving a long enough string.
that’s you sis-
September 30, 2021 at 1:36 am #119852
Anonymous
GuestYes, someone writing a post saying that something won’t happen in a certain condition doesn’t know that something won’t happen in a certain condition.
You must have an IQ of 70.-
September 30, 2021 at 1:38 am #119855
Anonymous
Guestboth strcpy and strncpy are unsafe. strcpy even more so.
-
September 30, 2021 at 1:39 am #119856
Anonymous
GuestWho said otherwise, you stupid fuck? Learn reading comprehension.
-
September 30, 2021 at 1:41 am #119857
Anonymous
Guestbtw, I would prefer to write "both strncpy and strncpy can be used unsafely." But still, you stupid fuck, nobody claimed otherwise.
-
September 30, 2021 at 1:41 am #119858
Anonymous
Gueststrcpy is always unsafe.
-
-
-
-
-
-
-
September 29, 2021 at 2:38 pm #119830
Anonymous
Guest>computer
>science
kek -
September 29, 2021 at 2:40 pm #119831
Anonymous
GuestYou have to go back >>>/g/
-
September 29, 2021 at 3:03 pm #119832
Anonymous
GuestC doesn’t even have a method to access the magnetic charge of the hard drive. What a cucked programming language, lmao.
-
September 29, 2021 at 5:03 pm #119835
Anonymous
Guestlol what type of normie uses this shit.
Fuq just get python already.
Also why are the captchas so hard
-
September 29, 2021 at 5:07 pm #119836
Anonymous
Guestreading and writing to drives is a system call, C can get whatever input the system its running on can provide.
-
-
September 29, 2021 at 4:55 pm #119833
Anonymous
Guest>it’s so close to the metal
said nobody ever. C is great because it’s readable alias for asm that handles everything unsafe and tedious about the latter. -
September 29, 2021 at 5:03 pm #119834
Anonymous
GuestYou know you can format your integer types with 0b right?
-
September 29, 2021 at 8:26 pm #119837
Anonymous
GuestYou failed. C is close to metal as its 1 on 1 correspondence to assembly that is 1 on1 what the machine does. C++ is close to metal as it is 1 on 1 to C. Java is not as its run by java virtual machine, there is high level of abstraction and its slows process, but bowadays ao little that its most effectove to write safe Java OOP than dangerous C.
-
September 30, 2021 at 1:02 am #119847
Anonymous
Guest>C is […] 1 on 1 correspondence to assembly
Wrong. Not even remotely true. For instance, C completely abstracts over calling convention.>assembly that is 1 on1 what the machine does
Not true on modern architectures.-
September 30, 2021 at 6:22 am #119871
Anonymous
Guest>C completely abstracts over calling convention.
Calling conventions are too far from the metal. Fuck off with your C# bullshit. You’re not a real programmer.-
September 30, 2021 at 9:50 am #119874
Anonymous
GuestCalling convention is something you need to know and do by hand if you are programming in Assembly. C abstracts over it, and C# sure as shit does to. You don’t know what you’re talking about, and are probably a nocode loser.
-
September 30, 2021 at 10:00 am #119876
Anonymous
GuestIf it’s not in C, it’s not close enough to the metal. SIMPLE AS.
-
September 30, 2021 at 10:04 am #119877
Anonymous
GuestCalling conventions are "in C", C compilers abstract over calling convention so the programmer doesn’t have to handle it. C is not "close to metal" and was never intended to be. C was invented to facilitate writing code that is portable between different architectures. The design intent of C is that a C programmer should not need to know the specific conventions and nuances of each architecture their code will run on.
-
September 30, 2021 at 10:23 am #119879
Anonymous
GuestLmao. I bet you can’t even program in x86 assembly.
-
September 30, 2021 at 11:21 am #119884
Anonymous
GuestYou obviously never have, if calling convention is new to you.
-
September 30, 2021 at 11:28 am #119885
Anonymous
GuestThe only "calling convention" I recognize is manually setting the instruction pointer, brainlet.
-
September 30, 2021 at 11:37 am #119886
Anonymous
GuestYou’re a codelet. You never even heard of calling convention before today. At this point you probably looked it up and realized that you’re wrong. But instead of admitting it, you’ve decided to cover for your ignorance and shitpost instead.
Conversation over.
-
September 30, 2021 at 11:39 am #119887
Anonymous
Guest>m-m-m-muh calling """convention"""
You will never be a real programmer.
-
-
-
-
-
-
-
-
-
-
September 29, 2021 at 11:36 pm #119838
Anonymous
Guest>unsigned a = 0b1001; // 9
off yourself, brainlet-
September 30, 2021 at 10:29 am #119880
Anonymous
GuestLiterally this. Not that it matters because hex literals do the same thing in less space.
-
September 30, 2021 at 10:32 am #119881
Anonymous
Guest>Literally this.
That’s not standard C.-
September 30, 2021 at 10:33 am #119882
Anonymous
GuestName a relevant compiler that doesn’t support it
-
September 30, 2021 at 10:33 am #119883
Anonymous
Guest>b-b-but muh "relevant" compiler supports this!
It’s still not standard C, though.-
September 30, 2021 at 10:28 pm #119895
Anonymous
GuestIt’s standard in the new revision and supported by every relevant compiler
-
October 1, 2021 at 8:17 am #119896
Anonymous
Guest>It’s standard in the new revision
No, it isn’t.>supported by every relevant compiler
Still not standard C, though, and it’s being intentionally omitted time and time again from newer standards.
-
-
-
-
-
-
-
September 30, 2021 at 12:26 am #119840
Anonymous
GuestIs game of thrones sexist against men or is it worth it for the blonde dragon chick?
-
September 30, 2021 at 12:30 am #119841
Anonymous
GuestRead the books. It’s fun if you like medieval fantasy and political thrillers
-
September 30, 2021 at 12:31 am #119842
Anonymous
Guestwhat about "the age of men is over"? and "winter is coming" what are you trying to say? should I become a meninist to combat this?
-
September 30, 2021 at 12:35 am #119843
Anonymous
GuestWhat are you talking about
>the age of men is over
"Man" as in "human" and this is from Lord of the Rings, not A Song of Ice and Fire
>winter is coming
In the literal sense, winter is coming, and winter in A Song of Ice and Fire can last years. Winter sucks if you’re living in the middle ages-
September 30, 2021 at 12:38 am #119845
Anonymous
Guestfuck it i’m rereading harry potter
-
-
-
-
September 30, 2021 at 1:03 am #119848
Anonymous
Guest>the blonde dragon chick?
Fugly bottle-blonde.
-
-
September 30, 2021 at 12:36 am #119844
Anonymous
Guestwhat scrotebrain writes numbers in binary instead of hex? Do you just wanna jerk yourself off like WOAH I’M SUCH A LEET HAXXOR >:)
-
September 30, 2021 at 1:32 am #119851
Anonymous
Guest0b10101010
OP is a stupid scrote and should commit suicide
-
September 30, 2021 at 1:38 am #119854
Anonymous
GuestOP is stupid, but 0b literals are a compiler extension, not part of the standard language.
-
-
September 30, 2021 at 2:44 am #119862
Anonymous
GuestNone of you people shit talking C are embedded devs. It’s very close to perfect for the vast majority of embedded projects. Not to go full Terry, but I do seriously doubt anyone here has written an ISR or a driver.
-
September 30, 2021 at 5:59 am #119870
Anonymous
GuestI’ve written an RTOS with IPC mechanisms and synchronization primitives, with drivers for a touch screen SPI display, gamepad and joystick input, gyro and accelerometer control and some other stuff. Also I designed an oscilloscope from the PCB and hardware up that had a pseudo OOP gui system.
But I don’t disagree with you, C is wonderful. -
September 30, 2021 at 6:25 am #119872
Anonymous
Guest>None of you people shit talking C are embedded devs
Unfortunately, people still insist to use C in other contexts as well, where it is woefully inadequate.
-
-
September 30, 2021 at 2:46 am #119863
Anonymous
GuestJava is the best language, python babies seething rn C/++ scrotes on suicide watch
-
September 30, 2021 at 2:55 am #119864
Anonymous
GuestI bet yall siss don’t even use gets()
-
September 30, 2021 at 3:50 am #119865
Anonymous
Guestinline assembly basically is binary, only an autist would suggest otherwise
-
September 30, 2021 at 3:58 am #119866
Anonymous
Guest>basically is binary
Literally is not binary.Only a scrotebrain would suggest otherwise.
-
-
September 30, 2021 at 4:04 am #119867
Anonymous
Guest[code]
int OP_IS_A_scrote = 0b10101101010;
[/code] -
September 30, 2021 at 5:42 am #119868
Anonymous
Guestcomputers really are crazy. C is the most powerful, along with most compiled languages in general, if you are talking about performance. But the sort of features you might assume to be part of a language are at times very ad hoc. To create a loop, you have to make a variable, then add a line that adds to that, and then add a line to break the loop once the variable has reached a certain number. Sorting anything is a science itself, not something you can just tell the computer to do. It would be nice if our devices and networks were powerful enough to use interpreted languages (not that they are even that much better to code in) but they’re not. Surfing the web should be a basic task any pentium 3 could handle but you generally need a powerhouse to handle all the crazy shit that pops up on most sites
-
September 30, 2021 at 5:48 am #119869
-
September 30, 2021 at 8:49 am #119873
Anonymous
Guest>>>>>>>>>>>>>>>>>>>>>>>/g/
changing the visual representation of a number for (your) benefit isn’t the job of a near-metal language you scrotebrain.
C is king, you are scum. -
September 30, 2021 at 10:06 am #119878
Anonymous
GuestDaenerys-sama….
-
September 30, 2021 at 1:37 pm #119888
Anonymous
GuestOP here. I may be dumb, but you’re all stupid for replying to (and bumping) this thread with variations of the same post.
-
September 30, 2021 at 7:10 pm #119889
Anonymous
GuestReadable codes should be a bannable offense. Coders must use esoteric languages and gatekeep everything from normies.
-
September 30, 2021 at 7:48 pm #119892
Anonymous
Guestfreaking LMAO
>computer science
>sciencealso nobody enters data using bits you freaking scrotebrain lol
-
-
AuthorPosts
- You must be logged in to reply to this topic.