>C is a great language because it’s so close to the metal

Home Forums Science & tech >C is a great language because it’s so close to the metal

Viewing 29 reply threads
  • Author
    Posts
    • #119819
      Anonymous
      Guest

      >C is a great language because it’s so close to the metal
      >Doesn’t even have a way to write numbers in binary
      Computer science is such a freaking joke.

    • #119820
      Anonymous
      Guest

      what do you mean LULZtard?

    • #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.

    • #119822
      Anonymous
      Guest

      Why did Dany burning people alive make me suddenly want her? Scientifically speaking, or course.

    • #119823
      Anonymous
      Guest

      It does and it is frequently used to toggle bits with bitmasks.
      >><<

    • #119824
      Anonymous
      Guest

      1) This shit belongs on LULZ
      2) You are scrotebrained
      3) Fuck you

      • #119825
        Anonymous
        Guest

        OP clearly said computer science. The word science is there, it’s all legitimate.

        • #119846
          Anonymous
          Guest

          If it has science in the name, it isn’t science.

          >Social Science, Computer Science, Medical Science, Christian Science
          vs
          >Physics, Chemistry, Geology, Biology

          • #119853
            Anonymous
            Guest

            Like LULZ – science & math

          • #119861
            Anonymous
            Guest

            yeah exactly, let’s get back to scientology.

          • #119875
            Anonymous
            Guest

            Woke af

          • #119893
            Anonymous
            Guest

            > hello, I want to fill a report on

      • #119828
        Anonymous
        Guest

        You’re right. This is an iq and vaccine board. We don’t want any of this schizo computer ((((science)))) shit here.

        • #119839
          Anonymous
          Guest

          you forgot race and asian women

    • #119826
      Anonymous
      Guest

      I think it’s because hex literals can fulfill the same function, and are far more readable.

      • #119827
        Anonymous
        Guest

        OP 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.

        • #119890
          Anonymous
          Guest

          This

    • #119829
      Anonymous
      Guest

      Nitpicking CS languages is a LULZ thing
      >>>/g/

      • #119849
        Anonymous
        Guest

        That’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.

        • #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

          • #119852
            Anonymous
            Guest

            Yes, 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.

            • #119855
              Anonymous
              Guest

              both strcpy and strncpy are unsafe. strcpy even more so.

              • #119856
                Anonymous
                Guest

                Who said otherwise, you stupid fuck? Learn reading comprehension.

              • #119857
                Anonymous
                Guest

                btw, I would prefer to write "both strncpy and strncpy can be used unsafely." But still, you stupid fuck, nobody claimed otherwise.

                • #119858
                  Anonymous
                  Guest

                  strcpy is always unsafe.

                  • #119859
                    Anonymous
                    Guest

                    You’re an idiot. gets() is always unsafe. strcpy() can be used safely.
                    Back to LULZ.

                    • #119860
                      Anonymous
                      Guest

                      strcpy is dog shit like everything in C

    • #119830
      Anonymous
      Guest

      >computer
      >science
      kek

    • #119831
      Anonymous
      Guest

      You have to go back >>>/g/

    • #119832
      Anonymous
      Guest

      C doesn’t even have a method to access the magnetic charge of the hard drive. What a cucked programming language, lmao.

      • #119835
        Anonymous
        Guest

        lol what type of normie uses this shit.

        Fuq just get python already.

        Also why are the captchas so hard

      • #119836
        Anonymous
        Guest

        reading and writing to drives is a system call, C can get whatever input the system its running on can provide.

    • #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.

    • #119834
      Anonymous
      Guest

      You know you can format your integer types with 0b right?

    • #119837
      Anonymous
      Guest

      You 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.

      • #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.

        • #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.

          • #119874
            Anonymous
            Guest

            Calling 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.

            • #119876
              Anonymous
              Guest

              If it’s not in C, it’s not close enough to the metal. SIMPLE AS.

              • #119877
                Anonymous
                Guest

                Calling 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.

                • #119879
                  Anonymous
                  Guest

                  Lmao. I bet you can’t even program in x86 assembly.

                  • #119884
                    Anonymous
                    Guest

                    You obviously never have, if calling convention is new to you.

                    • #119885
                      Anonymous
                      Guest

                      The only "calling convention" I recognize is manually setting the instruction pointer, brainlet.

                      • #119886
                        Anonymous
                        Guest

                        You’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.

                      • #119887
                        Anonymous
                        Guest

                        >m-m-m-muh calling """convention"""
                        You will never be a real programmer.

    • #119838
      Anonymous
      Guest

      >unsigned a = 0b1001; // 9
      off yourself, brainlet

      • #119880
        Anonymous
        Guest

        Literally this. Not that it matters because hex literals do the same thing in less space.

        • #119881
          Anonymous
          Guest

          >Literally this.
          That’s not standard C.

          • #119882
            Anonymous
            Guest

            Name a relevant compiler that doesn’t support it

            • #119883
              Anonymous
              Guest

              >b-b-but muh "relevant" compiler supports this!
              It’s still not standard C, though.

              • #119895
                Anonymous
                Guest

                It’s standard in the new revision and supported by every relevant compiler

                • #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.

    • #119840
      Anonymous
      Guest

      Is game of thrones sexist against men or is it worth it for the blonde dragon chick?

      • #119841
        Anonymous
        Guest

        Read the books. It’s fun if you like medieval fantasy and political thrillers

        • #119842
          Anonymous
          Guest

          what 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?

          • #119843
            Anonymous
            Guest

            What 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

            • #119845
              Anonymous
              Guest

              fuck it i’m rereading harry potter

      • #119848
        Anonymous
        Guest

        >the blonde dragon chick?
        Fugly bottle-blonde.

    • #119844
      Anonymous
      Guest

      what scrotebrain writes numbers in binary instead of hex? Do you just wanna jerk yourself off like WOAH I’M SUCH A LEET HAXXOR >:)

    • #119851
      Anonymous
      Guest

      0b10101010

      OP is a stupid scrote and should commit suicide

      • #119854
        Anonymous
        Guest

        OP is stupid, but 0b literals are a compiler extension, not part of the standard language.

    • #119862
      Anonymous
      Guest

      None 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.

      • #119870
        Anonymous
        Guest

        I’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.

      • #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.

    • #119863
      Anonymous
      Guest

      Java is the best language, python babies seething rn C/++ scrotes on suicide watch

    • #119864
      Anonymous
      Guest

      I bet yall siss don’t even use gets()

    • #119865
      Anonymous
      Guest

      inline assembly basically is binary, only an autist would suggest otherwise

      • #119866
        Anonymous
        Guest

        >basically is binary
        Literally is not binary.

        Only a scrotebrain would suggest otherwise.

    • #119867
      Anonymous
      Guest

      [code]
      int OP_IS_A_scrote = 0b10101101010;
      [/code]

    • #119868
      Anonymous
      Guest

      computers 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

    • #119869
      Anonymous
      Guest

      >>Doesn’t even have a way to write numbers in binary
      someone’s ‘intro to programming’ homework still doesn’t compile?

    • #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.

    • #119878
      Anonymous
      Guest

      Daenerys-sama….

    • #119888
      Anonymous
      Guest

      OP here. I may be dumb, but you’re all stupid for replying to (and bumping) this thread with variations of the same post.

    • #119889
      Anonymous
      Guest

      Readable codes should be a bannable offense. Coders must use esoteric languages and gatekeep everything from normies.

      • #119891
        Anonymous
        Guest

        >waaah! waaah! i need to be able to write down a whole number while specifying all of its individual bits!!
        Present a realistic use case.

      • #119894
        Anonymous
        Guest

        Finally, a use case for brainfuck

    • #119892
      Anonymous
      Guest

      freaking LMAO

      >computer science
      >science

      also nobody enters data using bits you freaking scrotebrain lol

Viewing 29 reply threads
  • You must be logged in to reply to this topic.
startno id