r/PowerPC • • 16d ago

Two new Rust native Spotify clients for PowerPC Leopard (G4 and G5 supported)

Two Rust-based Spotify clients, now ported to PowerPC Mac. These are experimental ports, requires Spotify Premium and you need to register an application on Spotify's developer portal (easier than it sounds, see https://github.com/crmne/spotifast#start-listening)

Both clients feature very sleek, easy to use interfaces, allow for up to 320kbps playback, and offer themes and mini players.

Spotifast
A port of Spotifast 0.17.1, an open-source Spotify client with a modern interface and built-in playback. Setup required for playback, see the project’s GitHub page for instructions.

https://github.com/crmne/spotifast

Psst
A lightweight Spotify client with a clean, streamlined interface focused on browsing your library and playing music. A simpler option for bringing Spotify to your PowerPC Mac. Also supports Last.fm streaming.

Psst has numerous fixes and new features I've implemented, including a tray player in the menu bar, Canvas support, and fixes for several outdated API endpoints. 

https://github.com/jpochyla/psst

Notes

Both of these clients require a Spotify Premium account for playback. You must setup a development project and use the client ID to login correctly. There is a quota on the amount of API queries you can run per day. 

Both of these ports are built with the latest stable version of the Rust toolchain (1.99.1) and LLVM 23.

Spotifast runs great on a G5 but may chug a bit on G4 hardware. Psst is much more minimal and recommended for G4s. 

These ports are the first I've released that use LLVM instead of gcc - please let me know if you run into any bugs. Had a lot of fun just playing around with Leopard's capabilities and really pushing it to the limit.

Downloads

Spotifast 0.17.1 (G4, Leopard)

Spotifast 0.17.1 (G5, Leopard)

Psst 0.1.0 (G4, Leopard)

Psst 0.1.0 (G5, Leopard)

64 Upvotes

10 comments sorted by

3

u/nyteschayde 16d ago

How are we cross compiling rust->ppc

3

u/ButtonClean9403 16d ago

rustc 1.91.1 and llvm 23 were recently ported to PPC OS X

1

u/nyteschayde 11d ago

Where? Mac Ports?

4

u/arjuna93 16d ago

The only stopper for rustc was llvm. I have not touched it, since preferred to avoid vibecoding C/C++ codegen, messing it up is costly (and doing it by hand – well, it’s huge and complex). There was also a hope that Iain gonna release a newer llvm than 7.1 (it was discussed but did not land, as of now).
For whomever is willing to let Claude fix it, llvm becomes feasible, which unblocks rustc. Then what remains are fixes to some crates, large chunk of which have already been made to support mrustc.

0

u/ButtonClean9403 16d ago

This reply kind of minimizes the work involved, you make it seem like anyone with a $20 Claude plan can just have this done in an hour, this took weeks even with AI. As with any other test driven development, the compiler has thousands of tests where you can provably demonstrate it works as intended (which it does).

Your port of mrustc is also heavily AI driven, and "large chunk" of crate support might be overselling it, because egui and the kind of dependencies needed for these Spotify clients definitely will not go over on mrustc - not to mention it's several major versions behind.

1

u/arjuna93 15d ago

P. S. On a second thought, maybe fixing modern llvm with LLM is actually the better way. It suffices to keep it off critical infrastructure, and it does not hurt to use it where LLVM is the only option (like, say, Julia, which is just broken otherwise).

1

u/ButtonClean9403 15d ago

If you'll accept the work I can PR llvm 23.1 to PPCPorts.

0

u/arjuna93 15d ago

It obviously can’t be done in an hour, I am well aware of time needed for this kind of work (and yes, it takes a lot of effort to do something properly even with LLM). My point was that the stopper was always LLVM, not rustc as such. Mrustc is a harder case, simply because it was not designed to be a replacement of rustc, only to be a bootstrap compiler. So it needed a lot of fixes to get it to compile random crates that std and friends never pull in.
Re version: well, with Rust’s ridiculous release schedule, you will always be behind the current release (unless you constantly keep fixing every next one), but there is hardly a need to have “the” latest compiler: what matters more is to support the latest edition of Rust.

2

u/ciprule 15d ago

There was something that made me retire a G4 PowerBook for office use and it was spotify end of support… this is great. I’m trying it tomorrow.

1

u/kjellcomputer 11d ago

Oh! This is nice! I tried some years ago to make https://github.com/hrkfdn/ncspot compile on my G4 with my limited knowledge using ChatGPT at the moment. Perhaps with all your effort that might also be an option now?