1212
you are viewing a single comment's thread
view the rest of the comments
[-] mynameisigglepiggle@lemmy.world 13 points 13 hours ago
[-] Cethin@lemmy.zip 10 points 9 hours ago

It's probably not because it's sucks. It's because they're trying to perfectly replicate an existing target. They have to read the assembly, digest it, then create the identical solution in C++. If they were just creating a new game, it likely would be much faster.

[-] BigDanishGuy@sh.itjust.works 5 points 10 hours ago* (last edited 2 hours ago)

#include <iostream> // because writing to the console is not included by default.
int main()
{
std::cout << "C++ is simple and fun ... you cretin\n";
return 0;
}

I had a machine language course in uni, parallel with a C++ course. Not a fun semester to be my wife, or a relative of any of my classmates. Best case our brains were in C++ mode, worst case you needed an assembler to understand us.

And yes I know my code format will piss people off, I don't care, it's the way I write when other less informed people don't force me to conform to their BS "Teh oPeNiNg bracket shouwd bwee on teh sam line ass teh declawation"

Edit: added a \n for the sake of pedantry :)

[-] raspberriesareyummy@lemmy.world 4 points 6 hours ago
  std::cout << "C++ is simple and fun ... you cretin" <<std::endl;

You dropped something.

[-] BigDanishGuy@sh.itjust.works 3 points 2 hours ago

Well ackshually <<std::endl is not the preferred way to do it according to the C++ Core Guidelines https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rio-endl

So to be a good little lemming I've added a \n, but I refuse to flush!

this post was submitted on 17 Oct 2024
1212 points (98.9% liked)

RetroGaming

19341 readers
1260 users here now

Vintage gaming community.

Rules:

  1. Be kind.
  2. No spam or soliciting for money.
  3. No racism or other bigotry allowed.
  4. Obviously nothing illegal.

If you see these please report them.

founded 1 year ago
MODERATORS