• conorm@feddit.uk
    link
    fedilink
    arrow-up
    1
    arrow-down
    3
    ·
    8 months ago

    show me code that achieves the same two functions in js and c++, then show me those converted to asm, c++ is immensely more useful and practical for anything involving numbers and calculations (i.e all of computing)

    • wildginger
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      8 months ago

      Ive got a better idea, show me code in c++ that I cant do in half as many lines in js?

      Id say Ill wait, but then Id be here all night loool

        • wildginger
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          8 months ago

          Aww, poor thing cant even do it. This wasnt even a real hurdle and it tripped you up

            • wildginger
              link
              fedilink
              arrow-up
              1
              ·
              8 months ago

              This comment is blank, is that supposed to be the more efficient c++ code?

              I agree, then, its definitely more efficient to not use c++.