Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Appleuser201

macrumors 6502a
Original poster
I found a reddit thread on the PowerPC subreddit, showing some wild things being run on an iBook G4. Yes he was upfront about using claude and cross compiling, but it doesn't seem like this should be possible regardless.

First off, he took a photo of him running modern firefox on an iBook G4 natively in Gentoo Linux. This should not be possible as the iBook is 32 bit of course, and Firefox PPC 32 bit has not run since about version 52 (likely due to rust requirements and architectural differences). Not to mention, Firefox dropped 32 bit Linux support entirely last year.

Next off, he got Chromium running on PPC OS X. While the user from here @srp is working on his Aurora Chromium fork, it is only for 64 bit and G5 systems and would also be a massive headache to even figure out how to run at all on 32 bit PPC.

And finally, here is the biggest headscratcher, he is "running" OS X Mountain Lion (the true kernel, with code from 10.5 and 10.6) on the same iBook G4, and he had shown a picture of it running (this one I am far less likely to believe than the rest).

What are your thoughts? The thread is pretty popular so at least some people believe him without any video proof.

firefox-153-v0-me31c35dswah1.jpeg
 

Attachments

  • c4afho371nsh1 (1).jpeg
    c4afho371nsh1 (1).jpeg
    119.9 KB · Views: 6
  • mountain-lion-port-v0-p23h2a61vpvh1.jpg
    mountain-lion-port-v0-p23h2a61vpvh1.jpg
    139.4 KB · Views: 9
  • Like
Reactions: NikolaPPC
For the Mountain Lion stuff: Probably very unlikely it is real Mountain Lion. A kernel by itself doesn't mean much when all of the components around it are still Leopard.

As for Firefox and Chromium, I doubt these run well to begin with and it is telling that no page was actually loaded. Just Firefox's default page. But it does seem to build and run so... there you go I suppose.

There is a reason minimum requirements exist.
 
I'd at least be more inclined to immediate belief if it were a DP MDD or something, but on an iBook? I can barely run PowerFox on my 1.2 G4 lol.

I haven't seen the thread in question, though I'm hopping over there to look. My initial guess, though, is that he somehow slapped Sorbet/10.6.8A5 material on top of a newer Mach (and, by extension, newer Darwin)? It's a rather monumental task and I'm more inclined to believe that he is being too uncritical with his AI use and probably missing lines in Claude's thinking like "maybe I can incorporate this single element from the newer kernel, but it still says it's the older kernel? I know, I'll change what the OS reports! Now it says it's the newer kernel."

But, lest I get lost in hypotheses, I should go take a look...
 
T2 linux has current firefox with jit for 32-bit 486 and powerpc... along with latest kernel, etc. I think the jit part is LLM. I'm curious how it would compare with PowerFox.
 
FF 32-bit on Linux should be trivial with Claude. Few days of work (without JIT, of course).
Does not translate to macOS as easily due to broken rust (though Claude arguably could rewrite rusty parts to C++).

Chromium will run on 32-bit (usability on G4 is questionable but may be better than FF).

10.8 on PowerPC is impossible simply because it is not open-source. Sure, kernel can be made to run, but to get an OS running you would either need to Frankenstein it with much older components (and it is already non-trivial for 10.6) or rewrite stuff. The latter is certainly doable in principle, but the result won’t be 10.8.
 
I'd at least be more inclined to immediate belief if it were a DP MDD or something, but on an iBook? I can barely run PowerFox on my 1.2 G4 lol.

I haven't seen the thread in question, though I'm hopping over there to look. My initial guess, though, is that he somehow slapped Sorbet/10.6.8A5 material on top of a newer Mach (and, by extension, newer Darwin)? It's a rather monumental task and I'm more inclined to believe that he is being too uncritical with his AI use and probably missing lines in Claude's thinking like "maybe I can incorporate this single element from the newer kernel, but it still says it's the older kernel? I know, I'll change what the OS reports! Now it says it's the newer kernel."

But, lest I get lost in hypotheses, I should go take a look...
Here is the thread:

And his profile has the other threads too.
 
  • Like
Reactions: Yumiko Noua
T2 linux has current firefox with jit for 32-bit 486 and powerpc... along with latest kernel, etc. I think the jit part is LLM. I'm curious how it would compare with PowerFox.
Really? Did not know this.. he is using Gentoo linux and likely compiled it himself.
 
Looking at more recent Mountain Lion thread there ...

I wonder if we really entered era when ~everything can be decompiled at minimal cost (at least for now)?

According to this thread there IS difference between DeCompilation and ReCompilation, but from practical viewpoint I am not sure what is "better".


It is not possible to restore original code exactly, since compilers, obviously, do not preserve it, and there is no inverse function. It is possible in principle to get a code that will work similarly enough.
Decompilers existed way before LLM. If it was that easy, it would have been done for every software of interest.

I don’t see much point in trying to replicate exact old version of macOS which has no support for the architecture. If you got that much tokens to burn, why not port Catalina or Sonoma to ppc? Procedure is the same. Even better, pick the latest PureDarwin, add ppc slices and write a GUI on top. It will likely be of a higher quality, since LLM won’t have a constraint of attempting to replicate specific code.
The point of 10.6 is not some archeological importance but merely that is was actually written for ppc in its major components. Nothing after 10.6 was.

P. S. You can get a rough idea of how much improvement a given macOS version gives from the table here: https://github.com/macports/macports-legacy-support
For 10.8 that will be 10.7 in the table (because the version there shows latest macOS lacking a given feature). There are two matches – it is the lowest marginal improvement across all legacy versions.
 
It is not possible to restore original code exactly, since compilers, obviously, do not preserve it, and there is no inverse function. It is possible in principle to get a code that will work similarly enough.
Decompilers existed way before LLM. If it was that easy, it would have been done for every software of interest.

Well, 3d drivers for both ppc osx and openstep were out of reach practically, now they exist ...

I am not sure how far this can be stretched, had a bit of r/singularity moment (but then there already news about some chatgpt consolidation, leading to more token accounting ... so yeah, it hardly free in $$ sense and I suspect it will cost more, not less ... but I think for short period of time we having one of those seemingly scifi thought experiments, "what if decomp was really fast and cheap"?

May be if such era will last for years it will create its own culture ? quite alien to open-source mindset ....

I don’t see much point in trying to replicate exact old version of macOS which has no support for the architecture. If you got that much tokens to burn, why not port Catalina or Sonoma to ppc? Procedure is the same. Even better, pick the latest PureDarwin, add ppc slices and write a GUI on top. It will likely be of a higher quality, since LLM won’t have a constraint of attempting to replicate specific code.
The point of 10.6 is not some archeological importance but merely that is was actually written for ppc in its major components. Nothing after 10.6 was.

P. S. You can get a rough idea of how much improvement a given macOS version gives from the table here: https://github.com/macports/macports-legacy-support
For 10.8 that will be 10.7 in the table (because the version there shows latest macOS lacking a given feature). There are two matches – it is the lowest marginal improvement across all legacy versions.

I do not think LegacySupport cover additional functions in frameworks?

edit: typos
 
Last edited:
Well, 3d drivers for both ppc osx and openstep were out of reach practically, now they exist ...

Yeah, but they are not decompiled from old Apple code, but written on the basis of Linux solution, AFAIU. Apple does not use mesa 🙂

I am not sure how far this can be stretched, had a bit of r/singularity moment (but then there already news about some chatgpt consolidation, leading to more token accounting ... so yeah, it hardly free in $$ sense and I suspect it will cost more, not less ... but I think for short period of time we having one of those seemingly scifi thought experiments, "what if decomp was really fast and cheap"?

Why generate crappy code hard way from archaic blobs and then fix it when you can just give instruction to write needed code from scratch with the best tools available at the moment?

I mean, the former approach makes sense when we got mostly finished product with a few pieces missing (10.6 is the case). But generally, for any given quality of reengineering existing proprietary code you could write new and better code.

I do not think LegacySupport cover additional functions in frameworks?

It is just a proxy. My point was that 10.8 is arguably the weakest pick across every OS version. (But this is just a side observation, not a criticism. I don’t mind how anyone spends their tokens.)
What is annoying is a tendency of making big claims with no sources to follow. (This is not the first topic of this kind. Few months ago someone said that he got 10.7 running on powerpc. AFAIK, it ended on that claim.)
 
Yeah, but they are not decompiled from old Apple code, but written on the basis of Linux solution, AFAIU. Apple does not use mesa 🙂



Why generate crappy code hard way from archaic blobs and then fix it when you can just give instruction to write needed code from scratch with the best tools available at the moment?

All code? Even private frameworks?


My (limited) understanding is that LLMs can create some look-alike, but very moment you try to run something complex it will just ... fail to launch it?

So far real RE projects seems to be much smaller:



 
This is Linux, what’s the big news? Rust is officially supported on Linux, there are powerpc-linux targets. Linux has no proprietary Cocoa frameworks, it uses GUIs that are all supported for powerpc on Linux. Linux with X11/Wayland/Qt codepaths are the most tested ones. It is surprising that something still does not work on Linux lol
Support for PowerPC is sometimes tricky, especially in applications with JIT and no interpreter fallback. Firefox is (I think?) one of those cases where sometimes it compiles with Power7+ specific instructions
 
  • Like
Reactions: Appleuser201
Also, I was poking r/hackintosh and found this:

"rebar: run arm64 macOS apps on x86_64 Macs (ARM64 interpreter + x86-64 JIT + Mach-O loader)"

Waiting for someone to vibecode rosetta3 to run ppc binaries on apple silicon
 

Well, after reading this I think decompiling gigabytes of executables still a bit too much to ask from "agents(tm)" 😉

There is also

but I do not think OS X within their scope ....
 
Also from emaculation sheepshaver forums:


basically, sheepshaver, but with custom ppc->arm64 jit, opengl/rave, and even osx 10.5 (!) via patching ....

Said to be faster than qemu (not sure relative to mainline or cat7 fork).

Have fun?
 
Also from emaculation sheepshaver forums:


basically, sheepshaver, but with custom ppc->arm64 jit, opengl/rave, and even osx 10.5 (!) via patching ....

Said to be faster than qemu (not sure relative to mainline or cat7 fork).

Have fun?

Where's 10.5? README only mentions "brings Mac OS 8.6 - 9.0.4 emulation to iOS, iPadOS and macOS".
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.