Ad
Ad
Ad
Pages: [1] 2 »   Bottom of Page
Print
Author Topic: Photoshop 1.0.1 Source Code Available  (Read 3480 times)
Jim Kasson
Sr. Member
****
Offline Offline

Posts: 526


WWW
« on: March 08, 2013, 02:41:18 PM »
ReplyReply

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
Logged

Eric Myrvaagnes
Sr. Member
****
Offline Offline

Posts: 7443



WWW
« Reply #1 on: March 08, 2013, 08:10:21 PM »
ReplyReply

Great! Pascal is easier to read than most other programming languages, IMHO.
Thanks for the link.
Logged

-Eric Myrvaagnes

http://myrvaagnes.com  Visit my website. New images each season.
Jim Kasson
Sr. Member
****
Offline Offline

Posts: 526


WWW
« Reply #2 on: March 09, 2013, 11:07:59 AM »
ReplyReply

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
Logged

kikashi
Sr. Member
****
Offline Offline

Posts: 3669



« Reply #3 on: March 09, 2013, 12:30:50 PM »
ReplyReply

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
Full Member
***
Offline Offline

Posts: 159


« Reply #4 on: March 09, 2013, 08:52:14 PM »
ReplyReply

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
kikashi
Sr. Member
****
Offline Offline

Posts: 3669



« Reply #5 on: March 10, 2013, 04:22:16 AM »
ReplyReply

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: 6432


« Reply #6 on: March 10, 2013, 05:42:05 AM »
ReplyReply

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.  Wink
Logged

Francois
SunnyUK
Full Member
***
Online Online

Posts: 158


« Reply #7 on: March 12, 2013, 12:15:09 PM »
ReplyReply

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
sunnycal
Jr. Member
**
Offline Offline

Posts: 87


WWW
« Reply #8 on: April 04, 2013, 12:22:04 AM »
ReplyReply

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

francois
Sr. Member
****
Offline Offline

Posts: 6432


« Reply #9 on: April 04, 2013, 02:05:28 AM »
ReplyReply

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

Scary, isn't it?

 Cheesy
Logged

Francois
Alan Goldhammer
Sr. Member
****
Offline Offline

Posts: 1573


WWW
« Reply #10 on: April 04, 2013, 08:37:22 AM »
ReplyReply

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: 6432


« Reply #11 on: April 04, 2013, 09:32:19 AM »
ReplyReply

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: 1573


WWW
« Reply #12 on: April 04, 2013, 02:29:57 PM »
ReplyReply

@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: 1100



« Reply #13 on: April 04, 2013, 03:52:33 PM »
ReplyReply

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, 08:22:22 PM by AFairley » Logged

bill t.
Sr. Member
****
Offline Offline

Posts: 2662


WWW
« Reply #14 on: April 04, 2013, 07:51:16 PM »
ReplyReply

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: 7443



WWW
« Reply #15 on: April 04, 2013, 10:44:29 PM »
ReplyReply

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

http://myrvaagnes.com  Visit my website. New images each season.
ErikKaffehr
Sr. Member
****
Offline Offline

Posts: 6900


WWW
« Reply #16 on: April 04, 2013, 11:04:42 PM »
ReplyReply

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

francois
Sr. Member
****
Offline Offline

Posts: 6432


« Reply #17 on: April 05, 2013, 07:01:59 AM »
ReplyReply

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
kikashi
Sr. Member
****
Offline Offline

Posts: 3669



« Reply #18 on: April 05, 2013, 08:44:56 AM »
ReplyReply

@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: 1860


WWW
« Reply #19 on: April 05, 2013, 09:43:15 AM »
ReplyReply

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.
Logged

Pages: [1] 2 »   Top of Page
Print
Jump to:  

Ad
Ad
Ad