14 ms·
Adobe Photoshop Source Code (2013)
- stockhorn 3y agoAn article from 2013 with an adobe photoshop version 1.x from 1990....
- boomskats 3y agoI'm pretty sure half of that code is still running in WASM on photoshop.adobe.com
- msk-lywenn 3y agoYou mean current photoshop includes pascal code?
- madeofpalk 3y agoI would not be surprised if it does. Photoshop is big and has a lot of legacy.
- _mlbt 3y agoI have a feeling that much of it was translated to C or C++ at some point for portability and maintainability reasons. There are several automated Pascal to C translators out there, such as the following... http://users.fred.net/tds/lab/p2c/ http://users.fred.net/tds/lab/p2c/ Also the languages are similar enough that a programmer with knowledge of both could translate it manually without too much difficulty.
- dunham 3y agoTypically TeX is translated from Pascal to C too, via web2c. But there also is a Pascal to WASM compiler out there, which was written specifically for TeX: https://github.com/kisonecat/web2js https://github.com/kisonecat/web2js TeX itself is only about 500kb of wasm, uncompressed, but the memory images with LaTeX loaded are quite a bit larger.
- wongarsu 3y agoWhat's wrong with Pascal, apart from the ability to hire developers for it?
- p0w3n3d 3y agoWriting in Pascal itself is a Job Preservation Pattern
- PaulHoule 3y agoI hated the dialects of Pascal we were using at school in the early 1980s because they didn’t really support systems programming but after I got a 286 machine I got into Turbo Pascal which did have the extensions I need and that I preferred greatly to C but I switched to C in college because I could write C programs and run them on my PC or on Sun workstations with a 32 bit address space.
- miohtama 3y agoTurbo Pascal and later Delphi were really nice, but I guess in the same vertical C won due to its UNIX legacy. You can pretty much transform 1:1 between C and Pascal code.
- msk-lywenn 3y agoNothing wrong, just surprised
- callalex 3y agoTools used for art often get irrationally preserved for the sake of it. For example I have had a conversation with more than one person (well 2 but still) who believed unironically that the wiring inside vintage guitars and amps must be coated with asbestos insulation or it would change the tone/texture of the sound.
- PaulHoule 3y agoDon’t crush that in a hydraulic press.
- MontagFTB 3y agoIt was transpiled to C and then C++ many years ago.
- mdaniel 3y ago(2013)
- Eduard 3y agoI find the addition of "(2013)" to the title misleading. "Adobe Photoshop Source Code (2013)" I thought it is about Photoshop source code from around 2013.
- thih9 3y ago> they could not have imagined that they would be adding a word to the dictionary. Adobe tries to fight that, as this leads to genericization[1]. Their trademark guidelines[2] state a number of examples, like: "Always capitalize and use trademarks in their correct form. Correct: The image was enhanced with Adobe® Photoshop® Elements software. Incorrect: The image was photoshopped." [1]: https://en.wikipedia.org/wiki/Generic_trademark https://en.wikipedia.org/wiki/Generic_trademark [2]: https://www.adobe.com/legal/permissions/trademarks.html https://www.adobe.com/legal/permissions/trademarks.html
- andai 3y agoI understand the pressure they're under, but nobody's going to say that...
- chias 3y ago"Oh you're not actually using Linux, that's GNU/Linux"
- DaiPlusPlus 3y agoTIL, "Linux", without the "GNU/" prefix is a registered trademark of Linus Torvalds. https://ubuntu.com/legal/trademarks#:~:text=Linux%C2%AE%20is%20the%20registered,the%20U.S.%20and%20other%20countries https://ubuntu.com/legal/trademarks#:~:text=Linux%C2%AE%20is.... So (in the US, at least), it's "Linux(TM)" and not "GNU/Linux" - I'm going to love using this the next time anyone goes uhmackshully to me.
- medmunds 3y agoUhmackshully, since it's registered, it's "Linux®". The ™ is for unregistered trademarks.
- DaiPlusPlus 3y agoHoisted by my own petard!
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- NewsaHackO 3y agoWhich do you think has more features, this or current GIMP?
- Zambyte 3y agoGIMP has a plugin system and this does not AFAIK, so you're comparing unbounded features vs bounded features.
- resource_waste 3y agoWhat has accomplished more work? Photoshop prior to 2013, or Gimp all time? Lol we all know. Why is Gimp the knee jerk reaction when its rarely used in the real world? Did we learn it in the 2000s and just keep repeating it? (I say this as a Krita fan)
- MayeulC 3y agoThe source code in the linked article is for Photoshop v1.0.1, published in 1990. Though I don't think Gimp is as rarely used in the real world as you seem to think. We all live in different bubbles, but I know more people that use GIMP than Photoshop.
- Zambyte 3y agoWhy are you comparing it to Photoshop in 2013? The article is about Photoshop in 1990.
- FdbkHb 3y agoGIMP. But it doesn't take many later versions of Photoshop to start becoming more productive than using GIMP because of functionality it has that GIMP does not: Adjustment layers were introduced in 4.0 (1996, GIMP didn't even exist yet) Layer styles were introduced in 6.0 (2000) Smart Filters were introduced in CS3 (2007) They're all invaluable tools that provide a non-destructive workflow where you can go and edit a change you made without having to undo everything you did after that change and redoing things again. If I had to use an ancient version of a program and have nothing but that program until the end of times, I would pick Photoshop CS3. This entire class of functionality still does not exist in GIMP. A lot of modern tools can be added to GIMP through the G'MIC plugins (like the healing tool), but the core editing loop functionality, what is in my opinion the most important thing, is extremely primitive and outdated. All of the competition provides non destructive editing. Including other open source software like Krita (which focuses more on painting tools rather than photo editing, leaving a hole in the open source ecosystem).
- TIPSIO 3y agoIncredible that the UX is still generally the same. What a vision the original engineers had. I am annoyed today though every time I open the app. The only time it has ever felt snappy on desktop was a sweet period when the MacBook Pro M1 first came out and Adobe Photoshop had a Silicon beta out. Those days are long gone and we are slow again.
- darknavi 3y agoI still use an old CS6 license and while it's snappy in the app, it still takes its time to boot.
- aredox 3y agoIs it because the UX is good or because changing it is impossible without the users rebelling en masse?
- biofox 3y agoNo point fixing something that isn't broken (someone please tell Microsoft)
- Rinzler89 3y ago>No point fixing something that isn't broken But how do you know a UX isn't broken, when you've only seen one iteration of it you're whole life and have nothing else to compare it to? Kind of like Plato's Cave Allegory. You have to try new things, and if you see them fail, then you know which one was the best.
- Dylan16807 3y ago"try" doesn't imply "ship to millions of customers" And sometimes there's good enough and you should leave it alone. QWERTY isn't optimal but it's not very far from it.
- Rinzler89 3y ago
- Rufus_Tuesday 3y agoAnybody remember BarneyScan XP?
- Rufus_Tuesday 3y agoBarneyscan was a 35mm slide scanner. https://petapixel.com/2018/05/25/the-story-of-how-photoshop-was-first-barneyscan-xp/ https://petapixel.com/2018/05/25/the-story-of-how-photoshop-...
- _mlbt 3y agoKudos to companies that are releasing the source code to antique versions of their software. I hope more companies do so in the future. Unfortunately I fear that much of this source code has been lost to time and multiple serial acquisitions over the years. Also, wide spread use of version control is a fairly recent phenomenon, so much of this source code if it still exists at all is on random tape backups and floppy disks or printouts in binders.
- fermigier 3y agohttps://www.softwareheritage.org/ https://www.softwareheritage.org/ "We collect and preserve software in source code form, because software embodies our technical and scientific knowledge and humanity cannot afford the risk of losing it. Software is a precious part of our cultural heritage. We curate and make accessible all the software we collect, because only by sharing it we can guarantee its preservation in the very long term." (Founded by a friend, Roberto Di Cosmo).
- derefr 3y agoI feel like, if some organization like the Internet Archive were to offer a "software source-code time-delayed-publication escrow service" (with real boilerplate legal contracts punishing early leaks), a lot of companies would take them up on it. I imagine such a service could be pretty automated/low-touch. One way it could work: 1. you mirror your git repos to a private server the software-conservation org controls. 2. The software-conservation org then sets up matching public repos, initially empty. 3. Every hour, an agent runs, that scans all the private repos for commits with commit timestamps older than ten years (or whatever each company has signed on for as a release period); and syncs just those commits, into that repo's matching public repo. 4. Refs are then also synced, but rewritten, as if `git filter-branch` had been run to remove all commits less than ten years old. Any refs that are empty after filtering are dropped.
- schlauerfox 3y agowhy is source code submission to the LOC not necessary like a book to register copyright? Seems reasonable they hold it in escrow for 30 years or whatever reasonable term copyright should be.
- ge96 3y agowonder if anybody has it up on github
- HumblyTossed 3y agoDoes the zip file not work?
- ge96 3y agoI just didn't want to download it, just view it, like a PDF that opens in the web vs. auto downloads
- peterjmag 3y agoSomebody pushed it up here: https://github.com/amix/photoshop https://github.com/amix/photoshop But that might be violating the Computer History Museum's license: https://github.com/amix/photoshop/blob/2baca147594d01cf9d17db92e3d5148989600529/LICENSE https://github.com/amix/photoshop/blob/2baca147594d01cf9d17d...
- SushiHippie 3y ago> But that might be violating the Computer History Museum's license: Yep, TFA includes this sentence: > To download the code you must agree to the terms of the license, which permits only non-commercial use and does not give you the right to license it to third parties by posting copies elsewhere on the web.
- ge96 3y ago12 yrs old wow. I'm surprised everything is in the root folder... no subfolder/groupings, probably uploader choice not actually how it was written?
- ChrisMarshallNY 3y agoI remember seeing Photoshop, when it was pre-Adobe, in a hospital, in Ann Arbor. I thought it was amazing. One note: I'm almost certain that the version of MacApp (the Apple Pascal app framework) was still in beta, at the time. I used some of Tom Knoll's code (a B-spline algorithm), as a base for a curve editor. He had done some work as a contractor for the company I worked at.
- astrange 3y agoWhat was it doing in a hospital?
- ChrisMarshallNY 3y agoOne of the tech people in the hospital was friends with Tom Knoll, and had it running on a Mac II (I think). I was taking a class there, and the teacher took us on a field trip, to see it. This was 1988 or ‘89.
- butchlugrod 3y agoGreat write-up here about what it takes to build the app from this source code: http://basalgangster.macgui.com/RetroMacComputing/The_Long_View/Entries/2013/3/30_Building_Photoshop.html http://basalgangster.macgui.com/RetroMacComputing/The_Long_V...
- lelandfe 3y agoBlown away as I read more posts on this site. Not many people out there with this sort of knowledge. Thanks for the link.
- butchlugrod 3y agoI know! I have read every piece on the site, and they really go into some fantastic detail about old Apple stuff. No idea who this person it, and they have not posted in a few years, but would love to know more about their background. Almost certainly a developer inside Apple in the 80s and 90s.
- deleted 3y ago[deleted]
- araes 3y agoSuspicion based on some of the other articles is just somebody who's really an in-depth Apple user. Listens to folklore.org, notes in a couple articles that they appear to be on the outside and need to buy stuff just like everybody else. Some of the articles mention "awe" at how tiny the old Mac binaries were. May have been Apple tech support. In "The Standard File Package" [1] from Saturday, February 27, 2010: > It has never been my job to provide technical support to casual (I mean non-professional) Mac users, but I have helped friends and family members. [araes note: Implies may have been professional technical support] In "Name it Scrapbook" [2] from Saturday, February 20, 2010: > I am not an iPhone developer, and I don't know everything about it, but I write cocoa programs on Macs, and I have read the iPhone developer documentation. Seems like somebody who just reads everything about Mac history, culture, and development. Quite plausible the author may actually know "more" than the original developers, because a lot don't care about their own products as much as the user base. [1] http://basalgangster.macgui.com/RetroMacComputing/The_Long_View/Entries/2010/2/27_The_Standard_File_Package.html http://basalgangster.macgui.com/RetroMacComputing/The_Long_V... [2] http://basalgangster.macgui.com/RetroMacComputing/The_Long_View/Entries/2010/2/20_Name_it_Scrapbook.html http://basalgangster.macgui.com/RetroMacComputing/The_Long_V...
- divyenduz 3y agoIs there a youtube channel or something that does deep dives into antique source code like this or windows XP?
- kasajian 3y agoI remember traveling to Adobe in the mid-90s to exchange source-code with them, 'cause PhotoShop was MacApp based, and they had a layer working on Windows. And we traded an in-process SQL engine. I recall brining home some of the code, there were definitely parts of PhotoShop that were included, but not a lot. Just some funky color-space calculations that we ignored. I'm looking forward to looking at the source to see if there's any remnants of MacApp in the mix. They may have changed everything since the mid 90s. Who knows.
- irq 3y agoI love this story - code trading is such a cool idea, and one I haven't heard of much before. Anyone else have any code trading stories?
- exe34 3y agoin academia/research, it's quite normal. often you wish they hadn't given you the code and provided an equation instead.
- mk_stjames 3y agoThey call that out as an exception specifically actually: "All the code is here with the exception of the MacApp applications library that was licensed from Apple"
- mistrial9 3y agoMacApp on Windows ?!! of course.. what a bloatware.. Think Class Library saved the life of lots of devs. Greg Dow might still work for Adobe today. ps- PowerPlant was even better than TCL now thinking on it.. https://en.wikipedia.org/wiki/PowerPlant https://en.wikipedia.org/wiki/PowerPlant
- jaredwy 3y agoWorked on photoshop for many years. It’s still there today.
- 3y ago
- smburdick 3y agoJohn Knoll was the FX lead for the Star Wars prequels, and went on to direct Rogue One. The behind the scenes documentaries for the prequels have aged well: https://youtu.be/da8s9m4zEpo?si=5y5gHUMxztwVzMny https://youtu.be/da8s9m4zEpo?si=5y5gHUMxztwVzMny
- hondo77 3y agoVFX supervisor, exec producer, and story by, but not director of Rogue One: https://www.imdb.com/title/tt3748528/reference/ https://www.imdb.com/title/tt3748528/reference/
- dylan604 3y agoThere's a multi-part series "Light & Magic" on ILM available on Disney+ that I really enjoyed. https://www.imdb.com/title/tt19896784/?ref_=nv_sr_srsg_0_tt_8_nm_0_q_Light%2520%2526%2520Ma https://www.imdb.com/title/tt19896784/?ref_=nv_sr_srsg_0_tt_...
- acidburnNSA 3y agoI met his dad, who was a professor emeritus at University of Michigan's nuclear engineering department. He wrote the classic textbook on radiation detection.
- dang 3y agoRelated: Adobe Photoshop 1.0.1 Source Code (2013) - https://news.ycombinator.com/item?id=17132058 https://news.ycombinator.com/item?id=17132058 - May 2018 (200 comments) Photoshop 1.0 Source Code - https://news.ycombinator.com/item?id=5215737 https://news.ycombinator.com/item?id=5215737 - Feb 2013 (78 comments)
- Exuma 3y agoI looked at the source code but I wish I could understand what makes it beautifully elegant. I was pondering this question before as I was learning rust, and how tricky it was (decision overload) to make just a snake game (regarding code structure). I then was thinking how one would build a UI, functions which operate on a "space", and I thought of photoshop specifically, or 3d studio max. So finding this repo was really cool, except I simply just don't understand it. If anyone knows of good resource I could learn code structure LMK! I find it interesting just from a learning perspective, as I always try to increase my design pattern chops
- logdahl 3y agoI can't say much about this code or your personal background, but my honest opinion is to take a step back and examine the principles. I used to be very bothered by abstractions, design patterns and structure. But I realized that when I worked with 'true' imperative code (forget classes for a while), keeping all code in the same file, the code started to structure itself. I am not saying this is the only way, but I feel like OOP can be a hinderance, as you get bogged down by alternatives.
- mannyv 3y agoIt uses MacApp, which was one of the first frameworks that tried to handle all the boilerplate for you. The basic structure of MacApp apps is a document, and the MacApp framework dispatches events to your handlers. It's been forever since I worked on a MacApp app, but I think that's the basic structure. It sounds like the MacApp stuff isn't included, but it's probably out there somewhere. I know at some point Adobe ported MacApp to Windows so they didn't have to rewrite everything. I expect at some point they replaced MacApp with their own abstraction layer.
- mentos 3y agoI wonder what the biggest semantic similarities are between the source code of the first 1990s Photoshop and today’s.
- jaredwy 3y agoThere are a lot more similarities between todays code base and this code base than you might ever think :)
- shivanshu120 3y agoGreat article written on some of the best code out there in the market.
- dylan604 3y agobest code? Have you ever read people's thoughts on the PSD format? I know the two are not the same, but it does make you wonder how the PSD issues do not present in the app's code as well.
- anemoknee 3y agoI haven't myself, but I'm interested to see what folks are thinking. Any resources you can share?
- dylan604 3y agoI'll just leave these here: https://www.reddit.com/r/copypasta/comments/n7auu6/psd_is_not_my_favourite_file_format/ https://www.reddit.com/r/copypasta/comments/n7auu6/psd_is_no... https://news.ycombinator.com/item?id=575122 https://news.ycombinator.com/item?id=575122
- dewey 3y agoThat's some random rambling from a guy on the internet, not a proper explanation or a deep dive with what's objectively wrong with it.
- vsuperpower2020 3y agoOne of these links is locked behind an account and the other only redirects to a dead repository. Thanks, I guess.
- dylan604 3y agoI don't have a reddit account, and I was able to read it after agreeing that I was over 18. After that, it displayed the diatribe just fine for me. <shrugs> However, feel free to google it yourself
- supportengineer 3y agoI prefer Photon Paint or DeluxePaint
- pmcjones 3y agoIn the aughts I worked at Adobe and spent time trying to archive the source code for Photoshop, Illustrator, PostScript, and other apps. Thomas Knoll's original Mac floppy disk backups were available, so I brought in my Mac Plus, with a serial cable to transfer the files to a laptop via Kermit. The first version was 0.54, dated 6 July 1988. The files on the floppies were in various ancient compressed archive formats, but most were readable. I created an archive on a special Perforce server of all the code that I found. Sadly, the earliest Illustrator backups were on a single external disk drive that had gone bad.
- xd1936 3y agoThank you for your service. Super cool project. Hopefully they make their way to archive.org or Github someday.
- pmcjones 3y agoAdobe has the only copy, and they have donated early versions of PostScript (https://computerhistory.org/blog/postscript-a-digital-printing-press/ https://computerhistory.org/blog/postscript-a-digital-printi...) and Photoshop; people should ask Adobe to release more. Everything I find in the public domain I post at https://www.softwarepreservation.org/projects https://www.softwarepreservation.org/projects .
- mistrial9 3y agoisn't the topic the Patents, not the code? The code is mired in Mac toolbox details, no?
- reaperman 3y agoEven the parents from 1988-2000 would be well expired now
- irrational 3y ago
- ilrwbwrkhv 3y ago"We developed it originally for our own personal use…it was a lot a fun to do" I honestly do not think anything cool has ever been built due to capitalism. Great ideas to great products are just musings.
- wezdog1 3y agoThat pronunciation of Photoshop bugs me. Not everyone has an American accent.
- dukeofdoom 3y agoI was looking for a freeish alternative for mac, but so far only found Photopea which is online but has an almost identical interface. Works pretty good basic things, but kind of bad at removing a background. So still searching ...
- sys_64738 3y agoEarly Photoshop was junk compared to Deluxe Paint on the Amiga. History only remembers the winners so it’s unfortunate DPaint gets lost the midst time.
- aceazzameen 3y agoDPaint was incredible. But Photoshop was still pretty good on its own too. It just happened to advance at a greater rate than DPaint did.
- mrKola 3y agoI would love to see the code of Fireworks. Adobe bought macromedia just to kill the apps. If I could bring one app back to life, it would be Fireworks. I was soooo good as it, no other software compares.
- kibibu 3y agoI don't think that's entirely why. They kept Flash around for a long time
- nunez 3y agoI took an image processing class during my Comp Eng undergrad. We learned about and implemented (in C, or maybe Java; I think it was C) some of the bitmap processing algorithms that Photoshop incorporated. Some of that math is no joke, and making it tight in the late 80s must have been harder still.
- Nuella19 3y ago[dead]
- kls0e 3y agoexcellent read, how tangible. love the praise of the code structure. impressed on how consistent photoshop's UI is, up to contemporary versions.
- hi_there_ 3y ago[flagged]
- hi_there_ 3y ago[flagged]