News for hackers. Stuff that matters.
Re:Adobe Photoshop 1.0 Source Code (2013) by ofrzeta on Tuesday December 23, 2025 @07:36AM (#46364837)
You could try having an LLM port it to Linux :) As an aside I was always (well, no longer) hopinh that Photoshop gets ported to Linux because at least an IRIX port existed, so there has to be some source code with X11 or whatever library code.

https://fsck.technology/software/Silicon%20Graphics/Software...

Re:Adobe Photoshop 1.0 Source Code (2013) by robert-brown on Tuesday December 23, 2025 @11:54AM (#46366866)
Photoshop was ported to IRIX using Latitude, Quorum Software's implementation of Mac OS System 7. Apple later acquired the Quorum's code and it became part of Carbon.
Re:Adobe Photoshop 1.0 Source Code (2013) by anthk on Tuesday December 23, 2025 @12:33PM (#46367218)
There's System 7 for Unix 'natively', with either Executor (there's a fork under Github) or some other project: https://www.v68k.org/advanced-mac-substitute/

https://github.com/autc04/executor

https://github.com/jjuran/metamage_1/

Re:Adobe Photoshop 1.0 Source Code (2013) by jeffrallen on Tuesday December 23, 2025 @12:23PM (#46367125)
As an experiment, I gave the source zip file to Claude and told it to make a WASM version of the app, by translating the Pascal to Go.

It nailed it, first try.

I cannot, unfortunately, share a link to the website it created because of the license.

LLM translations of historical software to modern platforms is a solved problem. Try it, you'll see.

I used https://exe.dev/ and their Shelley agent to drive Claude. Give it a try, it is jaw dropping.

Re:Adobe Photoshop 1.0 Source Code (2013) by ndiddy on Tuesday December 23, 2025 @01:48PM (#46368038)
Can you post a video demonstrating you using it?
Re:Adobe Photoshop 1.0 Source Code (2013) by jeffrallen on Tuesday December 23, 2025 @02:52PM (#46368736)
https://exe.dev has a nifty private sharing feature, contact me in email and you can see it.
Re:Adobe Photoshop 1.0 Source Code (2013) by nxobject on Tuesday December 23, 2025 @02:42PM (#46368624)
That's a bit of an extraordinary claim: what did Claude do about the important non-Pascal parts: the resource fork and the 68k assembly?
Re:Adobe Photoshop 1.0 Source Code (2013) by jeffrallen on Tuesday December 23, 2025 @02:49PM (#46368709)
Look I understand it's crazy, but it took one small prompt and I came back a half hour later expecting it to have given up, but instead I saw exactly what you'd expect to see in my browser.

Here is the prompt I gave it:

"Use wasm and go and a 68000 emulator to get the Photoshop 1.0.1 software at https://d1yx3ys82bpsa0.cloudfront.net/source/photoshop-v.1.0... to run correctly. You should not require an operating system, instead implement the system calls that Photoshop makes in the context of wasm. Because Go compiles to wasm, you might try writing some kind of translator from the pascal to go and then compile for wasm. Or you might be able to find such a thing and use it."

You can give it a try yourself, or contact me for a private link to it (see the CHM license for why I can't make it public).

Re:Adobe Photoshop 1.0 Source Code (2013) by jeffrallen on Wednesday December 24, 2025 @06:57AM (#46374825)
I've had a chance to review the code now. It used HTML/CSS/JS for the UI, and calls into the Go/wasm code where the filters are implemented.

When a filter is implemented half in Pascal (setup and loop over the rows) and half in assembly (each row) Claude did it all in Go, but the structure in Go is the same: one entry point for setup and iterating on rows, and one function (ported from the assembly) to process each row.

(As for the resource fork, it just reimplemented the UI in HTML. There's not enough info in the transcript of it's thinking to know if it read the resource file and understood it, or if it used a general understanding of what was in Photoshop, from training data, to do it.)

My mind is blown. I keep trying to find evidence that it just copied this from someplace, but I can't see how.

Re:Adobe Photoshop 1.0 Source Code (2013) by nxobject on Thursday December 25, 2025 @08:00PM (#46388201)
Wow, that makes so much sense - thank you! It sounds like it essentially "vibed up" the parts it didn't understand, which is amazing.

Just as an experiment, I fed the resource fork to GPT-5.2 to see whether it could render the windows/dialogs in the resource fork - it did a fairly okay job. I think the fundamental limit it ran against (and acknowledges) is that lot of Mac's classic look and feel was defined programmatically, literally, down to calls to RoundRect(...).

https://chatgpt.com/s/t_694dddb290308191babcb07a72367e97

Thanks for posting your experience.

Re:Adobe Photoshop 1.0 Source Code (2013) by anthk on Tuesday December 23, 2025 @12:28PM (#46367183)
If it uses Motif and IrisGL (now MESA3D) the amount of porting effort it's near NIL.

And, for purity/completeness, avoid Maxx Desktop and/or NSCDE; EMWM with XMToolbar it's close enough to SGI's Irix desktop.

https://fastestcode.org/emwm.html