Wizzy Report post Posted March 3, 2011 I thought the dev's would enjoy this small video Wiz Share this post Link to post Share on other sites
Learner Report post Posted March 3, 2011 I actually did some of my programming on a PDP 8e, so that system looks modern! Share this post Link to post Share on other sites
Elgoran Report post Posted March 3, 2011 (edited) Yeah, seems things were really quite a bit more complicated back then. Nowadays for such a simple program, all you have to do is type: #!/usr/bin/env python from math import * print "".join([chr(int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\ + 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\ + 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\ + 5.878*sin(5*x*1.118)))) for x in range(12)]) And you get the same result. (btw, yes, i copypasta'd this) Edited March 3, 2011 by Elgoran Share this post Link to post Share on other sites
Wizzy Report post Posted March 4, 2011 Well here is the same thing in every possible way you can think of. http://www.roesler-ac.de/wolfram/hello.htm Share this post Link to post Share on other sites
Learner Report post Posted March 4, 2011 Yeah, seems things were really quite a bit more complicated back then. Nowadays for such a simple program, all you have to do is type: #!/usr/bin/env python from math import * print "".join([chr(int(round(96.75 + -21.98*cos(x*1.118) + 13.29*sin(x*1.118) + -8.387*cos(2*x*1.118)\ + 17.94*sin(2*x*1.118) + 1.265*cos(3*x*1.118) + 16.58*sin(3*x*1.118)\ + 3.988*cos(4*x*1.118) + 8.463*sin(4*x*1.118) + 0.3583*cos(5*x*1.118)\ + 5.878*sin(5*x*1.118)))) for x in range(12)]) And you get the same result. (btw, yes, i copypasta'd this) Lol ... you should look inot the APL language ... would be MUCH shorter! Share this post Link to post Share on other sites
Forgiven Report post Posted March 4, 2011 Wow, I am glad things were so much easier back then! Share this post Link to post Share on other sites
The_Piper Report post Posted March 4, 2011 (edited) Wow, I am glad things were so much easier back then! They were. * Hello world IDENTIFICATION DIVISION. PROGRAM-ID. hello. PROCEDURE DIVISION. DISPLAY 'Hello world!'. STOP RUN. And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers! Piper Edit: Or, if you need it the hard way: : hello CR ." Hello world!" CR ; ok hello Hello world! Edited March 4, 2011 by The_Piper Share this post Link to post Share on other sites
Learner Report post Posted March 4, 2011 Wow, I am glad things were so much easier back then! They were. * Hello world IDENTIFICATION DIVISION. PROGRAM-ID. hello. PROCEDURE DIVISION. DISPLAY 'Hello world!'. STOP RUN. And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers! Piper Edit: Or, if you need it the hard way: : hello CR ." Hello world!" CR ; ok hello Hello world! My first CompSci classes required me to hand in punch cards along with the printout of the program and the run Share this post Link to post Share on other sites
Forgiven Report post Posted March 4, 2011 Wow, I am glad things were so much easier back then! They were. * Hello world IDENTIFICATION DIVISION. PROGRAM-ID. hello. PROCEDURE DIVISION. DISPLAY 'Hello world!'. STOP RUN. And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers! Piper Edit: Or, if you need it the hard way: : hello CR ." Hello world!" CR ; ok hello Hello world! My first CompSci classes required me to hand in punch cards along with the printout of the program and the run I love how back then, computers were a science. Share this post Link to post Share on other sites
The_Piper Report post Posted March 4, 2011 Wow, I am glad things were so much easier back then! They were. * Hello world IDENTIFICATION DIVISION. PROGRAM-ID. hello. PROCEDURE DIVISION. DISPLAY 'Hello world!'. STOP RUN. And i am pretty sure, that when Learner was a toddler, he was riding on dinosaurs or saber toothed tigers! Piper Edit: Or, if you need it the hard way: : hello CR ." Hello world!" CR ; ok hello Hello world! My first CompSci classes required me to hand in punch cards along with the printout of the program and the run You beat me, we had already terminals with line orientated editors. Sperry Univac, you can't beat that! At least not their so called full screen orientated editor, which saved everything from the top left corner until the cursor position. If the cursor was at the top left corner, you lost... everything, d'oh. Yeah, great old times, lol. Piper Share this post Link to post Share on other sites
themuntdregger Report post Posted March 4, 2011 (edited) My first CompSci classes required me to hand in punch cards along with the printout of the program and the run My intro to coding was handwriting 80col cobol pads which were then submitted to data input dept to convert to punched card. The 'batch' would be run during the night on a mainframe, so i'd have to wait till until next morning and get the output delivered to my office on huge perforated paper sheets. Not sure how many Scandanavian pine forests were sacrificed before all the bugs and typos's were chased out of the average 'run', but with the thickness of most outputs measuring a good few inches, I'm guessing quite a few. In those days, patience, sharp pencils and many prayers to the computer goddess, paid dividends lol. I fondly remember declaring variables with names like TOM, DICK and HARRY, hard coding '19' into date functions, and using GOTO without the slightest sense of shame. The only REM in usually said 'THIS DOES NOT WORK' (although the language was sometimes a little more graphic). Happy days lol Edited March 4, 2011 by themuntdregger Share this post Link to post Share on other sites