Pages: [1] 2   Go Down

Author Topic: Photoshop 1.0.1 Source Code Available  (Read 8919 times)

Jim Kasson

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2370
    • The Last Word
Photoshop 1.0.1 Source Code Available
« on: March 08, 2013, 03:41:18 pm »

Unless you're a computer archeologist, you won't be able to run it, but it's a lot of fun to look at the source code for Photoshop 1.0.1, which is available for download here.

It's written -- quite cleanly -- mostly in Pascal, so it isn't too hard to figure out, even with virtually no comments. Thanks to the Computer History Museum and Adobe for letting us see it.

Jim

Eric Myrvaagnes

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 22814
  • http://myrvaagnes.com
    • http://myrvaagnes.com
Re: Photoshop 1.0.1 Source Code Available
« Reply #1 on: March 08, 2013, 09:10:21 pm »

Great! Pascal is easier to read than most other programming languages, IMHO.
Thanks for the link.
Logged
-Eric Myrvaagnes (visit my website: http://myrvaagnes.com)

Jim Kasson

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2370
    • The Last Word
Re: Photoshop 1.0.1 Source Code Available
« Reply #2 on: March 09, 2013, 12:07:59 pm »

Great! Pascal is easier to read than most other programming languages, IMHO.

If I remember right, it was originally conceived as a language for teaching programming. It's missing some constructions that the authors thought encouraged bad programming practices. In that sense, it's kind of the opposite of C. And you're right, you can read the code pretty easily even if you don't know that language, if you have much experience with ALGOL-like programming languages; in that sense, it's kind of the opposite of APL.

Jim

Jeremy Roussak

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 8961
    • site
Re: Photoshop 1.0.1 Source Code Available
« Reply #3 on: March 09, 2013, 01:30:50 pm »

If I remember right, it was originally conceived as a language for teaching programming. It's missing some constructions that the authors thought encouraged bad programming practices. In that sense, it's kind of the opposite of C. And you're right, you can read the code pretty easily even if you don't know that language, if you have much experience with ALGOL-like programming languages; in that sense, it's kind of the opposite of APL.

Jim

Ah, APL. The first, and one hopes last, write-only programming language. Pascal used to bring me out in a rash but I was very fond of C and its predecessor BCPL.

Happy days.

Jeremy
Logged

BrianWJH

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 286
Re: Photoshop 1.0.1 Source Code Available
« Reply #4 on: March 09, 2013, 09:52:14 pm »

Pascal used to bring me out in a rash.
Jeremy

You should have tried the soothing balm of Deplhi, still using this language and fits like a glove.

Cheers,
Brian.
Logged

Jeremy Roussak

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 8961
    • site
Re: Photoshop 1.0.1 Source Code Available
« Reply #5 on: March 10, 2013, 05:22:16 am »

You should have tried the soothing balm of Deplhi, still using this language and fits like a glove.

I never got to grips with the practicalities of OOP, whether Delphi or C++. Now I find that if I want to do any serious programming on the Mac and iPhone, I'll have to learn it to use Objective C. It may prove to be fun, I suppose.

Jeremy
Logged

francois

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 13791
Re: Photoshop 1.0.1 Source Code Available
« Reply #6 on: March 10, 2013, 06:42:05 am »

I never got to grips with the practicalities of OOP, whether Delphi or C++. Now I find that if I want to do any serious programming on the Mac and iPhone, I'll have to learn it to use Objective C. It may prove to be fun, I suppose.

Jeremy

FWIW, I learned Pascal on long time ago and met Niklaus Wirth, the Pascal language father at ETH. I like Pascal and wrote numerous application with it… a long time ago.

Jeremy, if you already know C, Objective-C is really easy and don't be intimidated by all the square brackets.  ;)
Logged
Francois

SunnyUK

  • Full Member
  • ***
  • Offline Offline
  • Posts: 157
Re: Photoshop 1.0.1 Source Code Available
« Reply #7 on: March 12, 2013, 01:15:09 pm »

Pascal was the first real programming language I learnt, and till this day I admire it for its simplicity and how easy it was to learn and master.
Logged

indusphoto

  • Full Member
  • ***
  • Offline Offline
  • Posts: 132
    • 500px
Re: Photoshop 1.0.1 Source Code Available
« Reply #8 on: April 04, 2013, 01:22:04 am »

Ghosh! How many programmers are lurking here? This is supposed to be a photographer's website.

francois

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 13791
Re: Photoshop 1.0.1 Source Code Available
« Reply #9 on: April 04, 2013, 03:05:28 am »

Ghosh! How many programmers are lurking here? This is supposed to be a photographer's website.

Scary, isn't it?

 :D
Logged
Francois

Alan Goldhammer

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4344
    • A Goldhammer Photography
Re: Photoshop 1.0.1 Source Code Available
« Reply #10 on: April 04, 2013, 09:37:22 am »

Ghosh! How many programmers are lurking here? This is supposed to be a photographer's website.
Any of us who have technical degrees probably took computer programing and did some at one point in time.  I fondly remember (NOT) learning Fortran with punch cards on an IBM mainframe and then moved on to the DEC PDP-11 with the wonderful toggle switch and paper tape boot system.  The development of 'C' was wonderful!

Alan
Logged

francois

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 13791
Re: Photoshop 1.0.1 Source Code Available
« Reply #11 on: April 04, 2013, 10:32:19 am »

Any of us who have technical degrees probably took computer programing and did some at one point in time.  I fondly remember (NOT) learning Fortran with punch cards on an IBM mainframe and then moved on to the DEC PDP-11 with the wonderful toggle switch and paper tape boot system.  The development of 'C' was wonderful!

Alan

Alan,
Punch cards… See what I found!
Logged
Francois

Alan Goldhammer

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4344
    • A Goldhammer Photography
Re: Photoshop 1.0.1 Source Code Available
« Reply #12 on: April 04, 2013, 03:29:57 pm »

@Francois - LOL!!  Our punch cards were similar but an ecru color.  The worst thing about it was that the computer science class jobs would only be run at the beginning of every hour and if you made a mistake in one of the cards, you had to go back and correct it and then wait until the job was run again.  I'm sure glad those days are over!
Logged

AFairley

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1486
Re: Photoshop 1.0.1 Source Code Available
« Reply #13 on: April 04, 2013, 04:52:33 pm »

Ghosh! How many programmers are lurking here? This is supposed to be a photographer's website.

I learned Basic when I got my first computer (386 XT), went on to Pascal and even did a little assembly language programming.  Strictly for kicks, though.

[EDIT]  Actually, I mis-remebered, my first computer was a Timex Sinclair and I learned the flavor of Basic that came baked into it.  That was some years before the 386.
« Last Edit: April 04, 2013, 09:22:22 pm by AFairley »
Logged

bill t.

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3011
    • http://www.unit16.net
Re: Photoshop 1.0.1 Source Code Available
« Reply #14 on: April 04, 2013, 08:51:16 pm »

I wonder how big the zip file would be for CS6?  587K ain't much, truth be told.

Yup, started with hand coded binary on a Kim-1, then x86 assembler, then Basic, then Pascal MT, Borland C, Watcom C with Dos4GW.  All used to reincarnate basically the same program over a 30 years span.  Not bad for a "visual" person.
Logged

Eric Myrvaagnes

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 22814
  • http://myrvaagnes.com
    • http://myrvaagnes.com
Re: Photoshop 1.0.1 Source Code Available
« Reply #15 on: April 04, 2013, 11:44:29 pm »

My first programming was in assembler for the DEC PDP-1 computer. Later some guys at MIT wrote a FORTRAN compiler for the beast.
Since then I have programmed &/or taught programming in a few flavors of BASIC, FORTRAN, Pascal, PL-1, C, C++ and a few others that I forget.
Did tiny bits also in Forth, RPG, Lisp, Logo, Mumps, and Pilot.

I avoided Algol and APL, and once attempted to write (strictly from the manual) a simple program in COBOL, but it never worked, mainly, I suspect, because I didn't have the patience to spell out long-winded stuff like "Environment Division."
Logged
-Eric Myrvaagnes (visit my website: http://myrvaagnes.com)

ErikKaffehr

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 11311
    • Echophoto
Re: Photoshop 1.0.1 Source Code Available
« Reply #16 on: April 05, 2013, 12:04:42 am »

Hi,

My first language was Basic, which we used at university back in 1976. After that I used Pascal and Fortran, going to C and now C++.

Once I was in progress of writing a program doing the same things as Lightroom, but I guessed I would need 300 years to complete, so I jumped on Lightroom since the first beta that worked on Windows I used at that time.

Best regards
Erik
Logged
Erik Kaffehr
 

francois

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 13791
Re: Photoshop 1.0.1 Source Code Available
« Reply #17 on: April 05, 2013, 08:01:59 am »

My first programming was in assembler for the DEC PDP-1 computer. Later some guys at MIT wrote a FORTRAN compiler for the beast.
Since then I have programmed &/or taught programming in a few flavors of BASIC, FORTRAN, Pascal, PL-1, C, C++ and a few others that I forget.
Did tiny bits also in Forth, RPG, Lisp, Logo, Mumps, and Pilot.

I avoided Algol and APL, and once attempted to write (strictly from the manual) a simple program in COBOL, but it never worked, mainly, I suspect, because I didn't have the patience to spell out long-winded stuff like "Environment Division."

Eric,
You should definitely have tried your hand at APL. It's a lot of fun… well, my professors thought so!

Anybody with Ada?
Logged
Francois

Jeremy Roussak

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 8961
    • site
Re: Photoshop 1.0.1 Source Code Available
« Reply #18 on: April 05, 2013, 09:44:56 am »

@Francois - LOL!!  Our punch cards were similar but an ecru color.  The worst thing about it was that the computer science class jobs would only be run at the beginning of every hour and if you made a mistake in one of the cards, you had to go back and correct it and then wait until the job was run again.  I'm sure glad those days are over!

Every hour? Luxury.

I started programming at school, in 1975. We hand-punched cards, first using Portapunch and later graduating to an antiquated cast-iron gadget with 12 buttons, one for each row on the card: I had to learn the correct combinations for the various characters and to be sure that I pressed the buttons simultaneously and fully.

I'd then post the cards from Manchester to Imperial College in London, where they'd run the Fortran and post the output back. Turnround: one week, post office permitting.

It encouraged a careful programming style, that's for sure, and really made me appreciate the 300-baud glass teletypes when I went up to Cambridge.

Jeremy
Logged

Justan

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1928
    • Justan-Elk.com
Re: Photoshop 1.0.1 Source Code Available
« Reply #19 on: April 05, 2013, 10:43:15 am »

I messed around with a number of programming languages and computers, starting with a Honeywell 66. Eventually I worked more with some APIs that mostly hooked into MS C. The last project I did was to co-author a custom UI for a program known as DESQview. At about that time I started working with networks and never got back to programming after that.

But the amazing detail in this story (not about my programming background, that is) - at the time they were writing the code for the photochop prototype, the average Mac had about 128 kb of RAM and the new ones had a whopping 512 kb. That’s not a lot for either programming or running photochop.
Pages: [1] 2   Go Up