↓ Skip to main content

Software-Engineering

How GTA 6 Got Ported to PC Without an Emulator

How GTA 6 Got Ported to PC Without an Emulator

·7 minute read
Grand Theft Auto VI came out only on consoles, yet a week later, one PC version was reportedly running an early scene at 25 to 30 FPS, without an emulator. We see where Rockstar’s engine, RAGE, came from, why the game targets 30 frames per second, and what the CPU and the GPU each do in a frame. Then we see how the leading PC versions run the game’s own code natively, rebuild parts of the console’s system, translate the game’s graphics programs, and copy what changed between the two memories of a PC with a graphics card every frame.
How WoW Forever and MMORPGs Work: System Design

How WoW Forever and MMORPGs Work: System Design

After more than 20 years, World of Warcraft’s servers still struggle, and adding more servers can’t fix it. Through one PvP fight from 2006, we see what the game’s client and server each do, then why the work of a packed crowd grows at least with the square of its size, how realms, instances, shards, layers, and batching spread the load, and why the server’s processor is still the limit.
Object-Oriented Programming Greatest Hits

Object-Oriented Programming Greatest Hits

In the age of AI, syntax by itself is the least important part of object-oriented programming to focus on. In this chapter, we cover classes, instance and class attributes, static and class methods, properties, encapsulation, inheritance, composition, and polymorphism against a problem from production code, a rate limiter for alerts. Along the way, we see what the SOLID principles warn about, what inheritance costs, and why composition is the more flexible approach.
Why the Hardest Concept for Python Devs Is Concurrency: asyncio vs threading vs multiprocessing

Why the Hardest Concept for Python Devs Is Concurrency: asyncio vs threading vs multiprocessing

Concurrency is arguably the hardest concept for Python developers, because the important ideas already assume you understand the operating system underneath. In this chapter, we start from the kernel and system calls, build up processes, threads, race conditions, and the GIL, then work out when to reach for asyncio, threading, or multiprocessing, why a GPU beats a CPU on the same arithmetic, and how to get better at concurrent programming.
PhD in Python Functions

PhD in Python Functions

From kindergarten to PhD, this may be the most comprehensive chapter on Python functions. We start with the basics of defining and calling functions, learn how to write them well, then learn closures, decorators, recursion, and generators, all the way to theory of computation and how CPython executes functions under the hood.