Comment by mrtksn

11 hours ago

Interesting, I am not able to play HL2 on Steam because macOS no longer has 32-bit support and Valve never compiled if for 64-bit but here we are, it’s playable on the same OS in the browser.

BTW IIRC there was some method to convert the 32-bit game binaries to make them run on recent macs. I remember doing it.

How is that possible? 32 bits should be compatible with a 64 bit machine. You can always use less bits for your memory addresses.

Are there any other architecture changes that are preventing 32 bits binaries from running? Does that also mean that old software no longer runs unless there is a 64 bit version?

In windows you can run x32 and x64 executables in a 64 bits machine

  • Monsieur, on Windows this problem was solved with a large development effort, that's why it goes unnoticed on you. Note that CPU level instruction emulation is literally the easiest problem of emulation. (Why do you think you can't just go and execute Nintendo Switch binaries on your Mac M1? Both run ARM64.)

    On Windows, this was is implemented as SysWOW64. WOW64 means Windows on Windows 64. It makes the userland emulation and pretends towards the process that everything around him (incl. drivers) are the 32-bit ones.

    Source: Microsoft.

    https://devblogs.microsoft.com/oldnewthing/20081222-00/?p=19...

    • One of the big things here is that Intel and ARM processors are backwards-compatible with 32-bit instructions, even if they are 64-bit processors. Apple Silicon on the other hand is not, which is why Apple completely dropped support before switching.

    • WOW64 is not emulation, it's just a second set of libraries exactly like the ia32-libs package on linux. OSX used to have this too but i guess apple got tired of maintaining it

  • Only the very first few models of Intel Macs had strictly 32-bit processors (the 2006 iMac and Mac minis with Core Solo/Core Duo processors), and none of them were realistically capable of playing Half-Life 2. Apple is guilty of many sins, but this isn't one of them. Valve should never have shipped a 32-bit application in the first place. The binary was already obsolete before it even left Bellevue.

    • > Valve should never have shipped a 32-bit application in the first place.

      It's literally a 2004 game! That's ridiculous. A handful of opterons existed in the market, but Intel wouldn't get there for years still and it was well over a decade until x86_64 crossed 50% market share in consumer stuff.

      Good grief, as it were.

      4 replies →

    • > Only the very first few models of Intel Macs had strictly 32-bit processors (the 2006 iMac and Mac minis with Core Solo/Core Duo processors), and none of them were realistically capable of playing Half-Life 2.

      What? First, those chips were plenty powerful to run HL2 (the game predates them). And second, all x86_64 chips can run older x86 32-bit code unmodified.

      The reason macOS stopped supporting 32-bit code has nothing to do with the processors but more about them wanting to remove support for 32-bit binaries from the kernel and from all user-space libraries. To run a 32-bit binary, you need itself and all libraries it depends on to be 32-bit too, including the syscall boundary, which is "fine" (both Windows and Linux do this just fine, so it's really on Apple to have removed this). And I suppose Apple removed those because it was building towards a 64-bit-only world to simplify the Apple Silicon transition.

      1 reply →

  • Apple goes way out of their way every few years to ensure old games stop working

    • The don’t let backwards compatibility stop them from doing anything, but I don’t think they go out of their way to target games. That doesn’t make any sense to me.

      1 reply →

  • In the case of hl2 the source code for the engine has leaked, so you can recompile it for your target platform of choice, no "conversion" needed. I got it running natively on aarch64 linux a while back, with no issues.

  • Everything in the process has to agree on how big the pointers are, or you need code to convert between the formats at the boundary. That means you either need 32-bit versions of all OS libraries, or you need a complicated shim layer. Apple went for having 32-bit versions of all OS libraries. But this isn't free to maintain, and they dropped them after a few years.

Disheartening. macOS seems to get less and less support in a way. For example some of the Blizzard remakes don't run on macOS but the originals do.

  • I knew Blizzard was abandoning macOS when Overwatch didn't ship for it. I assume there must be a decent amount of Mac users playing WoW seeing as it still works on macOS and transitioned to ARM. Diablo 3 only ever got an ARM build because, apparently, Blizzard they replaced the 2010(?) Mac Pro that they were using to test Mac builds of the game with a Studio.

I admit that Valve’s approach to Steam on macOS has never made sense to me.

  • This was more Apple's doing rather than Valve's.

    Valve wanted steam to co-exist on the mac in the early days and John Sculley of Apple didn't want Apple to be seen as a gaming device or a "personal home computer". So they ceased contact with Valve and the rest is history. https://www.youtube.com/watch?v=lPTLPXNtb2I

    Apple refused to license joysticks so they could prevent customers from considering early mac's as game machines and deliberately refused to support games on the machine. Myst was only few that were exclusive to the Mac; that they then ported to PC.

    • Apple is so obsessed with how their product is marketed and perceived that they all but eliminated gaming on the platform. It's hard to argue that it hasn't been effective, but I'll never understand why people accept that the people who make the computer should decide how you use it.

      3 replies →

On paper qemu should be able to do this. The hard part is hardware acceleration for the GPU. Without Apple putting effort into supporting this with e.g. documentation, that's a bit hard. That's also holding back linux support on Apple hardware. But it's a fixable problem that will only get easier as hw gets better and faster over time.

  • > The hard part is hardware acceleration for the GPU

    Is it, though?

    How Hard Can It Possibly Be to just do a software GL renderer that emulates a mid-2000s Radeon, these days?

    • At what resolution. You're not going to software render 4K120FPS even with 2000s graphics. But you also don't need a software implementation since translating to a host API isn't really any harder than that (and often much easier). And this already exists in Wine.

MacOS removing 32bit support was a massive pain. A bunch of Ambrosia Software games no longer work too (e.g. Escape Velocity Nova, Apeiron).

  • I know it's not a remake, but Endless Sky[0] seems to be a pretty faithful "reimagining" of the EV series. Even has an Android port on F-Droid. I haven't played through much of it, but the first few minutes gave me immediate nostalgia.

    [0] https://endless-sky.github.io/

Wine 11 for Mac will run 32 bit binaries without neeeding 32 bit libraries.