You are viewing a single thread.
View all comments View context
64 points

Fun quote from an interview with Chris Sawyer:

Latterly the machine code came back to haunt us when the decision was made to re-launch the original game on mobile platforms as RollerCoaster Tycoon Classic a few years ago, and it took several years and a small team of programmers to re-write the entire game in C++. It actually took a lot longer to re-write the game in C++ than it took me to write the original machine code version 20 years earlier.

permalink
report
parent
reply
16 points

Further proof C++ is a pita

permalink
report
parent
reply
7 points
*

#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 :)

permalink
report
parent
reply
5 points
  std::cout << "C++ is simple and fun ... you cretin" <<std::endl;

You dropped something.

permalink
report
parent
reply
16 points

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.

permalink
report
parent
reply
7 points

Well worth it. The mobile version is amazing, that is to say, almost exactly the same as the original.

permalink
report
parent
reply
8 points

I guess i just found out there’s a mobile version.

permalink
report
parent
reply
6 points
*

Is there not a way to take assembly and automatically translate it to some higher level language?

Edit: Post-post thought: I guess that would basically be one step removed from decompilation which, as I understand it, is a tedious and still fairly manual process.

permalink
report
parent
reply
7 points

Your thought is correct. The basic problem is that higher level languages contain a lot of additional information that is lost in the compilation process.

permalink
report
parent
reply
2 points

But do we need this information then? E.g. shouldn’t it be possible to just write what the assembler is doing as a c++ code?

E.g. high level languages also support stuff like bitwise operators and so on.

permalink
report
parent
reply

RetroGaming

!retrogaming@lemmy.world

Create post

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.

Community stats

  • 3.4K

    Monthly active users

  • 1.1K

    Posts

  • 8.8K

    Comments