Slashdot Mirror


What Is the Oldest Code Written Still Running?

Consul writes "What is the oldest piece of code that is still in use today, that has not actually been retyped or reimplemented in some way? By 'piece of code,' I'm of course referring to a complete algorithm, and not just a single line." The question would have a different answer if emulation, in multiple layers, is allowed.

156 of 903 comments (clear)

  1. A rare topic by suso · · Score: 4, Interesting

    Interesting, a quick search on Google reveals that there isn't much on this topic other than people talking about the oldest computer they have. One post talks about some old IBM Series 1's and S/360/30. One good one is to say the computers onboard some of the oldest spacecrafts like Pioneer 10 (1972), Voyager I and II (1977). Although they haven't received anything from Pioneer 10 since 2002. But you could say that the computer in it might still be running.

    Somehow I doubt that many of the people that would be running such old computers such as ones from before 1970 would be reading Slashdot. And if you think about it, people conceptulized computers differently back then. I think you'd be hard pressed to find mention of a specific program but more of mention of a computer itself. Its too bad there is such a big disconnect between the generations of computer programmers and administrators.

    1. Re:A rare topic by mbone · · Score: 4, Insightful

      The code in the Voyager spacecraft, at least, was extensively updated after launch and throughout the mission.

    2. Re:A rare topic by story645 · · Score: 3, Insightful

      Somehow I doubt that many of the people that would be running such old computers such as ones from before 1970 would be reading Slashdot. Dunno about that. My mom's employer (UPS) still runs old mainframes (and employs COBOL coders) because switching would be too expensive/time prohibitive/etc.
      Sometimes companies just have ancient systems somewhere in their infrastructure cause they can't gut them.
      --
      open source modern art: laser taggi
    3. Re:A rare topic by jacobsm · · Score: 5, Informative

      One of the original IBM System S360 programs, IEFBR14 is still in wide use today. IEFBR14 CSECT SR 15,15 BR 14 END Only two changes in over 40 years. It doesn't do much, in fact nothing except set a zero return code, but it is widely used for dataset allocation purposes in batch dataset allocation processing.

    4. Re:A rare topic by WGR · · Score: 5, Insightful

      Somehow I doubt that many of the people that would be running such old computers such as ones from before 1970 would be reading Slashdot. And if you think about it, people conceptualized computers differently back then. I think you'd be hard pressed to find mention of a specific program but more of mention of a computer itself. Its too bad there is such a big disconnect between the generations of computer programmers and administrators. As someone who has been programming computers since 1966, I beg to differ with you. Code is more persistent than computers, since one can still run code written for an Intel 8080 on a modern dual core Pentium. The one main difference between programming them and programming now is that the cost of computers then meant that machine efficiency then was more important than human efficiency. Unfortunately too many programmers still think that way and are not willing to put in the code for security checks, clean user interfaces, etc. that are required. In many ways, computer science had a huge regression after the development of microcomputers. Instead of extending the lessons of mainframe computers like the Multics project about security, we returned to the "efficiency" goal because of the lack of power of early micros and still use that mindset when we have IPods that are more powerful than the largest mainframe of 1970.
    5. Re:A rare topic by Kadin2048 · · Score: 4, Informative

      The US DoD has a system, called MOCAS ("MECHANIZATION OF CONTRACT ADMINISTRATION SERVICES") that was originally brought on-line in 1958.

      I'm not too familiar with it, so I don't know if the code has ever been changed -- I suspect the hardware has been updated periodically, probably various IBM mainframes -- but based on my experience with government systems there is probably a fair bit of original code in there that nobody understands anymore, and thus doesn't touch.

      There is very little information about the system online; here is an Internet Archive page about it, that's as close to an 'official site' as I can find.

      --
      "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
    6. Re:A rare topic by suso · · Score: 2, Informative

      Thanks for the response and its great to read your input on this.

      What I'm saying in my post though is that from my point of view and I think from others my age (32), is that you're more likely to hear just about computers from before the 70s rather than the software they ran. I'm sure you have a different viewpoint because you actually experienced that era. But I didn't and all I have to go on is what is written in books and on the net.

      I'm glad that there isn't a complete disconnect between the generations here. ;-)

    7. Re:A rare topic by osu-neko · · Score: 5, Insightful

      And why should they? It works. It does precisely the job it was designed to do, and continues to do it at at least the level of ability it originally had, often better if the hardware underneath has been upgraded. Something only truly becomes obsolete when it no longer satisfies today's needs. A well designed, task-specific system could theoretically never become obsolete.

      --
      "Convictions are more dangerous enemies of truth than lies."
    8. Re:A rare topic by Ritchie70 · · Score: 5, Interesting

      Perhaps it's because they're stupid.

      At my job they're replacing a bunch of Tandem code that runs some of our core IT infrastructure with Wintel servers. It makes me ill to even be near the work, because they're taking something that just quietly works and "upgrading" it to something that doesn't.

      For those who don't know, Tandem is a high-availability platform designed to never go down. They had the power off to the building earlier in the year and the Tandem folks weren't sure they knew how to power the system on properly - that's how long it had been running.

      --
      The preferred solution is to not have a problem.
    9. Re:A rare topic by ixidor · · Score: 2, Interesting

      my last job in the usmc, i did tech support for all of the whole squadron. our inventory system was a program inside an old os running in a vm on and old hp ux box, custom built. the unix box was from early 80's, the older os i was told was from the 60's. thats when i had to lead unix calls, we had 2 pages of commads to get, grep, copy etc... to make the daily report.

    10. Re:A rare topic by ffejie · · Score: 4, Insightful

      If there was a power outage, they might not be able to find the guy to turn on the machine? Then it's time to upgrade.

      I agree with you that if it works, why fix it? But when a product has reached end of support because 1) the manufacturer has stopped supporting it or 2) there is no one in the working population that knows what to do with it, then you have to get it out of your infrastructure. You cannot continue to rely on products that you have no way of fixing if they break. Just because it hasn't broken in the past 30 years is no indicator that you won't hit something in the next 30 that won't break it.

      --
      Disagreeing with me does not mean you get to mod me troll.
    11. Re:A rare topic by kevinmc · · Score: 5, Informative

      //* DELETE FILE FROM PREVIOUS EXECUTION
      //STEP0010 EXEC PGM=IEFBR14
      //OLDFILE DD DSN=MY.FILE.NAME,DISP=(MOD,DELETE),
      // UNIT=WORK,SPACE=(TRK,1),
      // DCB=(RECFM=FB,LRECL=80,BLKSIZE=80)

    12. Re:A rare topic by Glonoinha · · Score: 3, Insightful

      Ouch. Holy crap.
      I don't know which is worse - that you were able to recite that from memory, or that I recognized it.

      I was going to come in here and give the obvious answer to the question (that answer being 'bubblesort') but I think you may have me beat.

      --
      Glonoinha the MebiByte Slayer
    13. Re:A rare topic by kryzx · · Score: 2, Interesting

      Code is more persistent than computers... Well said. I have not seen much mention of it here. I personally had the job, in the mid-nineties, of porting some code last modified in 1977 from Unisys to VAX. And who even knows when it was created. This required very little modification of the code, since it was all in very standard FORTRAN77.

      This brings to light several issues of definition that are present in this question. What is meant by "code" and by "still running"? If I ported that stuff and changed a handful out of thousands of lines (had to adjust for different rounding), is that still old code?

      My mother had the dubious pleasure of escorting several massive COBOL codebases to their demise at AT&T/Lucent. These were running systems with hundreds of thousands of lines of code, running 24/7, responsible for critical company processes, like purchasing and payroll. They had quite a few situations where the system was totally dependent on an executable for which the source had been lost many years before, and no one really understood what it did. Is that "code"?
      --
      "I don't know half of you half as well as I should like, and I like less than half of you half as well as you deserve."
    14. Re:A rare topic by somersault · · Score: 3, Funny

      Only on /. could a piece of code to delete a file be modded 'funny' o_0 is there actually a joke in there?

      --
      which is totally what she said
    15. Re:A rare topic by rlk · · Score: 3, Interesting

      On an 8080? 8086 or 8088, sure, but I don't think the 8080 was really compatible with the x86 instruction set. Similar, sure, but not compatible in either direction.

      It really is scary just how powerful computers are today. I recently built a new computer, using a Xeon E3110 (everyone was out of Core 2 Duo E8400's recently, and the Xeon was only about $10 more, and I didn't feel like waiting around). I used to work at Thinking Machines, and a group of us were planning a reunion later that week, and it occurred to me that in just about every measure -- floating point, memory capacity, disk bandwidth, and even memory bandwidth -- my new machine was at least equal to a full CM-2. In some ways -- storage capacity and total I/O bandwidth -- it blows the CM-2 out of the water.

      When the CM-2 was introduced in 1987, it was way faster than anything else out there -- if you could figure out how to actually program it. These days, even a distinctly midrange home system (we're not talking an "Extreme" here) gives it at least an honest run for the money. There aren't any CM-2's still running that I know of, and apparently the last running CM-5 was shut down a few years ago, although none of us who ever worked on these remarkable machines would be thrilled to be proven wrong on those two statements.

    16. Re:A rare topic by aztekman · · Score: 3, Interesting

      As a previous employee of UPS, I know that they have old mainframes and old code. Most of it dating back to the late 80s early 90s. It would not be anything like oldest. A lot of reason why it is so old is that "it works". They do not claim nor are they in the businesss of tech. Some of it is so old and antiquated that there are some systems that are difficult to connect to. Take for example their web service for getting shipping costs from their RAVE system. Look at the documentation for connection. Written using VB code from the late 90s. They are using some new technology but most of the mid-managers are not willing to (or allowed to) move toward the leading edge.

    17. Re:A rare topic by Anonymous Coward · · Score: 5, Informative

      >If there was a power outage, they might not be able to find the guy to turn on the machine? Then it's time to upgrade.

      If it's a mission-critical system, then power outages aren't a concern: The system itself will have a UPS capable of keeping the system running for quite awhile once main power drops, and also will have a generator of some sort backing that up as well. It starts up after a specified amount of time, far in advance of when the UPS will fail.

      Once mains power drops, and the UPS starts, alerts are generated to those responsible for keeping the system running, and one of the first things that those people will do is call the company that provides their electricity to ascertain the nature of the outage.

      From there, they will arrange for additional fuel for the generator, should the outage be prolonged, and most likely will already have such arrangements in place, if they are doing their jobs properly. In addition, they will start alerting the people in charge of the department(s) that rely upon it, and will keep them informed as well, so that they can plan for it being shut down, should such be required.

      However, for the most critical systems, plans will be in place for a transfer of services off-site, should such be necessary.

      And, again, if it's mission-critical, regardless of its age - all of these things have been planned for, years since, and, if done properly, they are tested on a regular basis as well: Contracts are in place, points of contact as well, and all are updated regularly: Part and parcel of keeping the system running.

      And trust me, if all else fails, and it needs to be shut down, then such has been planned for as well, including having "a guy" available to turn it back on, once reliable power is available.

      In addition, such things as handling "what happens if it breaks" have also been planned for, and that includes migrating, when such is deemed necessary.

      I'm not sure why you got modded up to +5 Insightful, since there's nothing really insightful at all about your post: It reeks of assumptions that simply do not apply in the real world for those of us in IT that actually support mission-critical systems daily, and do so with an eye towards service and availability for those that rely upon them.

      But, this *is* Slashdot: Many here think that those of us in IT exist only to thwart them, because we are clueless, and afraid of their superior "skillz", by their estimation.

      I trust I've proven that such isn't always the case :)

      Captcha: archfool

      That made me laugh - it's an amazingly appropriate summation of my opinion of the parent poster :)

      And I say that with NO anger. If anything, I'm saddened that such a post was found to be insightful by anyone.

    18. Re:A rare topic by Uerige · · Score: 5, Informative

      is there actually a joke in there?

      The joke is that not only it takes four lines of unintellegible gibberish to do with JCL what we would today write as 'rm my/file/name', but also that, against all odds (and all that is holy), it still works today and is used in the exact same way it was used when somebody's grandfather first wrote it.

    19. Re:A rare topic by Coffeesloth · · Score: 2, Interesting

      The last base I was stationed at was running a Series 1 processor. Coded in IBM 360 assembly language and cross compiled for the Series 1. I left the service in 2002 and as far as I know its still running. It was originally developed and installed in the early 60's by IBM.

      I read Slashdot most every day...

    20. Re:A rare topic by hackstraw · · Score: 2, Informative

      And why should they? It works. It does precisely the job it was designed to do, and continues to do it at at least the level of ability it originally had, often better if the hardware underneath has been upgraded. Something only truly becomes obsolete when it no longer satisfies today's needs. A well designed, task-specific system could theoretically never become obsolete.

      There are tons of engineering/scientific Fortran code out there that is from the Fortran 66 days that is still in use. The code is unchanged because its known to work. Period, and the code can still be compiled and used in new apps. I don't have any examples laying around, but at other jobs I've seen pieces of code that was older than me that was still in use.

      A funny tangent, I saw on Digg earlier today where a bug in BSD was found that was 25 years old. I can't find it now, but I thought that was pretty odd to have such a basic function in reading the contents of a directory being broken for 25 years.

    21. Re:A rare topic by hackstraw · · Score: 2, Interesting

      For those who don't know, Tandem is a high-availability platform designed to never go down. They had the power off to the building earlier in the year and the Tandem folks weren't sure they knew how to power the system on properly - that's how long it had been running. I've seen a Tandem system before when I was at a datacenter doing an install. Someone who worked at the datacenter pointed at the machine as I was looking around and asking questions, and he said, "Yeah, thats the Tandem machine, it just works, has never gone down". It was big too, about 5 foot tall, and 15-20 feet long if I remember correctly (this was in 2000).

      Its just strange to hear of such a thing when you work with computers, and there are computer systems that "never go down". Mind boggling.

    22. Re:A rare topic by mysticgoat · · Score: 4, Interesting

      I don't know for sure, but I suspect that the oldest code still in use is probably the FORTRAN differential equation libraries that are used in aerodynamic and thermodynamic applications. These were developed and extensively tested in the 1950s, and were much of the reason why FORTRAN got the funding it needed. The cost of rewriting these libraries from scratch, including complete re-testing, is very high. Yet the final cost of an inaccurate result is magnitudes greater.

      My understanding is that when these libraries are migrated to new environments, it is generally considered better to test the emulations and tweak them until their results agree with the results of vintage systems, rather than messing about in the library code.

    23. Re:A rare topic by thePowerOfGrayskull · · Score: 2, Insightful

      Just because it hasn't broken in the past 30 years is no indicator that you won't hit something in the next 30 that won't break it. In almost any other industry, that's true - but in software, it's patently false. If a process is running that properly handles all of its inputs and does what it is supposed to do in every conceivable scenario that it may be exposed to, then there's no reason to expect it would break in the next 30 or 300 years. This doesn't mean that you should never replace your systems - there are other valid reasons; only that saying "it's old and may break" is not really a valid reason to replace it.
    24. Re:A rare topic by soft_guy · · Score: 3, Interesting

      One place I worked for (a major IBM software development lab) had a very old mainframe computer that they used for a few things. Although they could have replaced it with newer systems, I heard that part of the reason they did not do so was because the building's heating/cooling system was designed around this computer. If they removed it, it would be very difficult to re-balance the heating/cooling system. I don't know if this is really true, but I thought it was amusing anyway.

      --
      Avoid Missing Ball for High Score
    25. Re:A rare topic by xarium · · Score: 2, Informative

      Needing to power-down the load in order to replace batteries/fuel in a UPS shows a pretty poor understanding of the word 'uninterruptible'.

    26. Re:A rare topic by networkBoy · · Score: 4, Interesting

      What's really fascinating about Win95 (and something I've actually tried) is that you can run it fully within the L2 Cache of Intel's latest generation of Core2 processors...
      It was blooming hilarious to see it never need to page out to system memory because the entire OS was living on-die.
      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
    27. Re:A rare topic by tsm_sf · · Score: 4, Insightful

      There are two kinds of fool.
      One says, "This is old, and therefore good."
      And one says "This is new, and therefore better."

      John Brunner - The Shockwave Rider

      and we've all read that book at least once, right? RIGHT?

      --
      Literalism isn't a form of humor, it's you being irritating.
    28. Re:A rare topic by paganizer · · Score: 2, Informative

      I really hate that mindset. That and the "if all your RAM isn't being used, it's going to waste" crowd.
      Kids, if your ancient BMW breaks down and you don't know how to fix it after a cursory glance, do you toss it in the trash and go buy the cheapest possible replacement Hyundai you can find?
      Some would, I understand.
      SOME will take the time and effort to track down someone who knows how to fix the ancient BMW. or even, gasp, learn the skills needed themselves.

      --
      Why, yes, I AM a Pagan Libertarian.
    29. Re:A rare topic by BrokenHalo · · Score: 5, Interesting


      Back in 1994 I did some contract work for a banking site that was still using some code that another firm I had worked for wrote in 1969, though it wasn't entirely unmodified. The source had somehow disappeared into the great filesystem in the sky, and it was my job to patch the binary directly.

      Sadly, that sort of procedure has pretty much gone out of fashion, along with the Real Programmer. (Sigh) That's why I am no longer in IT...

    30. Re:A rare topic by Gr8Apes · · Score: 2, Insightful

      Its just strange to hear of such a thing when you work with computers, and there are computer systems that "never go down". Mind boggling. Only true for those who've never been outside the MS world. Quite common for the rest of us. Well, ok, maybe "the rest of us" are a small lot who work on 5 9s systems, but again, it's about time this quit being a shock and started to be expected. Hell, my desktop system was only rebooted once every 6 to 9 months for a kernel patch that couldn't be done live between 91 and 95.
      --
      The cesspool just got a check and balance.
    31. Re:A rare topic by iocat · · Score: 2, Interesting

      My gf's mom was programming actuarial tables and systems back in the 1950s and 1960s on mainframes at an insurance co. When she retired maybe four or five years ago, a lot of her code was still running, and the PCs they had bought to replace the mainframe were simply interfacing with the mainframes. It became kind of a cargo cult thing: her code generated the correct results (as checked, back in the day, by hand), and the stuff done on the PCs didn't. She was a very hardcore programmer, but not super comfortable with GUIs or modern OSs. It was weird the first time I visited to see her computer room, which had on its bookshelf, AOL for Dummies next to the IBM 360 System Operator's Manual next to a copy of KidPix. Disconcerting.

      --

      Dude, I think I can see my house from here.

    32. Re:A rare topic by lgw · · Score: 3, Informative

      There are system/390 mainframes well into their second decade of uptime, with no original electrical part still in place. Every board is upgradable as faster hardware comes along, without downtime, and in some of these systems only the actual frame is original.

      --
      Socialism: a lie told by totalitarians and believed by fools.
    33. Re:A rare topic by SnowZero · · Score: 2, Insightful

      In particular, the bootloader or the software updater itself. Those are both (1) relatively simple with a fixed problem scope, and (2) more dangerous to update than other software routines.

      Not to say it can't be done, it's just highly unlikely to be worth it, so I'd expect those routines to last quite a long time.

    34. Re:A rare topic by LaskoVortex · · Score: 3, Interesting

      Just because it hasn't broken in the past 30 years is no indicator that you won't hit something in the next 30 that won't break it.

      That it hasn't broken in 30 years suggests that it won't break the next 30: http://tierneylab.blogs.nytimes.com/tag/copernican-principle/

      --
      Just callin' it like I see it.
    35. Re:A rare topic by instarx · · Score: 4, Interesting

      I once worked for Pfizer and "owned" a critical system to support emergency (as in explosions, firefighting, health, etc) operations globally. Dual servers, raids, back-up power supply, the whole works. It had run for years with no outages. The one thing I didn't do was put redundant servers in one of our European data centers because, I was assured, it was nearly impossible for the power to this NJ farm to go away because of backup generators, etc. One day I get a call from IT and they were going to take my emergency information system off-line for half a day! Why? The power switch on the UPS was broken and they couldn't turn it OFF! They brought down my critical never-to-be-offline system that was running perfectly because they couldn't turn it OFF! It was, without a doubt, the dumbest thing I ever saw.

    36. Re:A rare topic by jandrese · · Score: 2, Informative

      The scary thing is that it's entirely possible that they've had to replace components in that Tandem over the years. It's one of the few systems I've ever seen where you can replace a CPU in a running system with zero interruption to the user processes on the system.

      --

      I read the internet for the articles.
    37. Re:A rare topic by HeronBlademaster · · Score: 2, Interesting

      How'd you do that? (I'm genuinely curious, here...)

    38. Re:A rare topic by jantman · · Score: 2, Insightful

      Ahhh, generators, UPSs, and tigers, oh my! I work at a University that supports close to 100,000 students, faculty, and staff. We've got lots of systems. We've got lots of backup plans. We've got multiple redundant UPSs, multiple generators, and machines with multiple PSs, split between different circuits. I'm thoroughly convinced that the only way to have a truly redundant system is to have two mirrors --- on separate continents. Murphy's Law. If you have *any* single point of failure, it WILL fail. At the worst possible time. If you have two generators, UPSs, etc. the one day the generators kick on, there WILL be a fire in the wiring closet.

    39. Re:A rare topic by I+Like+Pudding · · Score: 2, Insightful

      That and the "if all your RAM isn't being used, it's going to waste" crowd. Non sequitur much? Also, it IS going to waste if it isn't being used, hence "free" RAM is used by the OS for disk cache.

      Kids, if your ancient BMW breaks down and you don't know how to fix it after a cursory glance, do you toss it in the trash and go buy the cheapest possible replacement Hyundai you can find? Let me fix that lousy, broken analogy: If a room full of BMW mechanics cannot start your car, GET A NEW FUCKING CAR. Believe it or not, not being able to find people who can properly maintain an environment is a liability.
    40. Re:A rare topic by networkBoy · · Score: 3, Interesting

      First we loaded Win95 into memory, got it to fetch all the instructions we thought we would need, then disabled memory through the DDR2 bus (which freaked out the northbridge, but hey, who cares.

      No it was not stable, yes it died after a few minutes but it was operable. We think it actually died from the Northbridge throwing a hissy fit more than the OS its self.

      As to disabling memory, that involved some hanky panky with the DR, WE#, and OE# signals and some blue wire...
      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
  2. The OS powering John McCain's artificial heart... by Tumbleweed · · Score: 4, Funny

    ...which was implanted in his chest shortly before his escape from the Viet Cong. 1,700 lines of COBOL, and still going strong!

    Sadly, it has a Y2K bug. This explains why the John McCain of 2008 is not the same as the one from eight years ago.

  3. The oldest code in existence: by LGagnon · · Score: 5, Funny

    Genetic code.

    1. Re:The oldest code in existence: by popmaker · · Score: 2, Interesting

      Well, humans have basically been running the same program for some million years... with some minor software upgrades of course.

    2. Re:The oldest code in existence: by popmaker · · Score: 4, Insightful

      Still.. we have hundred year old humans right? And some thousand year old trees. Trees are run by a somewhat simple generative algorithm, but still... as far as age goes, they still take the cake.

    3. Re:The oldest code in existence: by VJ42 · · Score: 4, Interesting

      How about a 40 thousand year old year old shrubbery...

      It's the oldest living organism, so it's got the oldest bit of unchanged genetic code, and obviously a lot older than computer code for sure.

      --
      If I have nothing to hide, you have no reason to search me
    4. Re:The oldest code in existence: by Anonymous Coward · · Score: 2, Funny

      It doesn't matter what upgrades you have, the answer is still the same: 42

    5. Re:The oldest code in existence: by Keeper+Of+Keys · · Score: 5, Funny

      How about a 40 thousand year old year old shrubbery... Ni!
    6. Re:The oldest code in existence: by hairyfeet · · Score: 2, Informative
      Hi there Mr. Troll! Too cheap to pay the $5 at Kuro5hin,huh? Well, don't you worry. Hey and you'll be happy to know that John Gabriel at Penny Arcade dedicated some of his artwork just for you! Enjoy !


      And for those out there who are wondering what I'm talking about, Kuro5hin recently enacted a $5 "membership" fee because they were being buried alive under a tidal wave of racist trolls. They figured that since trolls are generally cheap bastards that the fee would cause the trolls to move on to Digg,Fark, and yes, Slashdot. So don't be surprised if for the next few weeks you see post after post by impotent Nazi loving Teabaggers. Just make fun of them and they'll eventually move onto Digg.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    7. Re:The oldest code in existence: by martin-boundary · · Score: 5, Funny

      Also, the oldest profession is to maintain that code...

    8. Re:The oldest code in existence: by starglider29a · · Score: 2, Funny

      I would say it's:

      LET THERE = LIGHT

      Early manuscripts translated the assignment operator to the word "be". I think the declaration for void earth() was in #include <god.h>

      ---
      ...and God saw that IT was good.

    9. Re:The oldest code in existence: by Fatalis · · Score: 2, Informative

      I think there's a quaking aspen that's at least 80 000 years old, if not more. Wikipedia has an article about very old living things: http://en.wikipedia.org/wiki/List_of_long-living_organisms

      --
      Deus est fatalis
  4. oldest code in existence by the+brown+guy · · Score: 2, Funny

    10 testing
    20 goto 10

    --
    Orbis terrarum est non altus satis
    1. Re:oldest code in existence by kclittle · · Score: 4, Funny

      And, not only is it still in existence, it is still running!
      -k

      --
      Generally, bash is superior to python in those environments where python is not installed.
    2. Re:oldest code in existence by dkuntz · · Score: 2, Informative

      Wouldnt it have been:
      10 print testing
      20 goto 10

      or even
      10 ? Testing
      20 goto 10

      --
      OMG... I have a sig?
    3. Re:oldest code in existence by spike1 · · Score: 5, Funny

      Syntax error in line 10

    4. Re:oldest code in existence by Anonymous Coward · · Score: 2, Informative

      And, not only is it still in existence, it is still running! Line 1: Syntax error: testing is not a keyword or identifier.

      Oldest crap in existence.
  5. hello by no-body · · Score: 2, Funny

    world

  6. Re:creators' planet/population rescue kode.... by JustShootMe · · Score: 2

    What the HELL are you going on about?

    --
    For linux tips: http://www.linuxtipsblog.com
  7. Re:I'm not sure by jonbryce · · Score: 4, Insightful

    I'd go for the Babbage Difference Engine in the London Science Museum.

  8. Depends on what you mean by code and running... by Registered+Coward+v2 · · Score: 3, Interesting

    There's still code running for nuclear power plants that was written in the 60's or earlier; given the challenge of certifying emulators we ran it on the original machines; embedded code in machinery was probably been older. Although, most really old stuff was mechanical not based on ICs.

    Some military hardware may be even older; reliability and certainty is often more important than the latest and greatest.

    --
    I'm a consultant - I convert gibberish into cash-flow.
    1. Re:Depends on what you mean by code and running... by WGR · · Score: 5, Informative

      FYI: The oldest nuclear plant still in operation began operation in 1969 (Oyster Creek, NJ). There are reactors at Chalk River in Ontario that have been operating continuously since the early 1950's. Most of the world's medical isotopes come from them.
  9. Satellite code by Anonymous Coward · · Score: 4, Informative

    Check the various satellites. Voyager 1 is about 31 years old and significant portions of its programming remain unchanged. It is expected to keep running until about 2020. There are older operational satellites, but I'm not sure which ones were hardwired vs programmable controllers.

  10. 10 Dixitque Deus "Fiat lux" by LetsGoVandy · · Score: 4, Funny

    20 Dixit quoque Deus "Fiat firmamentum in medio aquarum"

    1. Re:10 Dixitque Deus "Fiat lux" by Sique · · Score: 2, Funny
      --
      .sig: Sique *sigh*
  11. Oblig xkcd. by popmaker · · Score: 5, Funny
  12. Re:creators' planet/population rescue kode.... by urcreepyneighbor · · Score: 2, Funny

    What the HELL are you going on about? Ssh. He's not properly medicated. :)
    --
    "The fight for freedom has only just begun." - Geert Wilders
  13. Embedded microcode by Kidbro · · Score: 4, Insightful

    Knowing full well that I haven't got a clue, my guess would still be microcode embedded in some special purpose device - i.e. not a general purpose computer.

    I don't remember when digital watches started appearing, but I suppose there's a bit of code in there? Various industrial machines from waaay back that are still in use ought to be good candidates as well.

    Kudos to Consul for a remarkably interesting Ask Slashdot. The best one I've seen in a long while :)

    1. Re:Embedded microcode by Consul · · Score: 2, Interesting

      You're welcome. The question just hit me all of a sudden, and I thought it would be a fun mental exercise. I'm actually quite amazed it got accepted. ;-)

      --

      -----

      "You spilled my egg... I needed that egg."

    2. Re:Embedded microcode by Anonymous Coward · · Score: 3, Informative

      Old school devices such as digital watches use ICs. ICs are really nothing more than assemblies of discrete components (resistors, transistors, etc). To count, the device would have to use at least a PLC (Programmable Logic Controller). These devices could be considered to use 'Code'. The next challenge would be to find the oldest device STILL RUNNING.

      Great Ask Slashdot!

    3. Re:Embedded microcode by DerekLyons · · Score: 3, Informative

      I don't remember when digital watches started appearing, but I suppose there's a bit of code in there?

      There almost certainly isn't a line of code in them. "Digital" != "Computer". Digital watches are nothing but a clock, a counter, a display matrix and a little bit of logic for setting/resetting the counter.
  14. Jacquard loom by solweil · · Score: 3, Interesting

    I wonder if there are any Jacquard looms still running.

    1. Re:Jacquard loom by Chief+Camel+Breeder · · Score: 5, Informative

      Yes there are. The carpet-weaving industry in the UK still uses card-programmed looms (I have a friend who is employed to load card decks into the machines).

  15. Re:I'm not sure by gadzook33 · · Score: 2, Funny

    Well, I may mistaken but I think the LSM is owned by the British government ;)

  16. Pioneer and Voyager Comps Receive Uplink Updates by meehawl · · Score: 3, Informative

    "Firmware" updates have been occasionally uploaded to the Pioneer and Voyager spacecraft when necessary.

    --

    Da Blog
  17. BSD had a 25-year code still running... by Keyper7 · · Score: 5, Funny

    ...but some insensitive clod recently deleted it.

  18. Re:creators' planet/population rescue kode.... by JustShootMe · · Score: 3, Interesting

    I find it amusing that most conspiracy theorists - whether the conspiracies are true or not is immaterial - tend to write long rambling screeds like that that cause people to lose interest after the first sentence, and then use that as proof that the world is against them.

    It's all about the packaging.

    --
    For linux tips: http://www.linuxtipsblog.com
  19. Difficult to say... by Kjella · · Score: 3, Interesting

    ...because even if the code hasn't been replaced, you can bet the source control software has. My guess would be old cores of for example banking systems, I know there our company has COBOL code written in the 60s and the system is still in COBOL and in use today. If someone wrote a correct, useful algorithm back then it could very easily still exist today. I can at least assure you that they don't exactly do rewrites very often...

    --
    Live today, because you never know what tomorrow brings
    1. Re:Difficult to say... by aorangi · · Score: 2, Informative

      If someone wrote a correct, useful algorithm back then it could very easily still exist today. Absolutely. The oldest code I ever came across was the basic algorithms for modelling a super-conductor quenching. I think the original version was written at Rutherford-Appleton Laboratory in about 1968.

      The basic algorithm is still in use today, and at least 50% of all supercon MRI magnets were designed using it.

  20. Re:Please don't use anecdotal evidence. by sphealey · · Score: 2, Informative

    As late as 1998 one of my former employers was running applications written in 1401 assembler in the late 50s/early 60s which in turn had been translated from IBM accounting machine commands. I can't say if they are still running since I am no longer there but given the size and resulting inertia of that entity I would not bet against at least one of those apps still being in service.

    sPh

  21. Alan Turing's First Program by jd · · Score: 5, Informative

    Once they rebuilt the Manchester Mk. 1 ten years ago, Alan Turing's program became the oldest program runnable without emulation. It clocks in at 60 years old, being written in 1948. The code finds the highest common factor between any two integers expressable in 32 bits. Not bad, given that the Mk. 1 had only one arithmetic operator, subtract.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Alan Turing's First Program by smallfries · · Score: 2, Informative

      The standard textbook implementation of GCD only uses a single arithmetic operator... And the algorithm was pretty old by the time Turing wrote a copy of it...

      --
      Slashdot: where don knuth is an idiot because he cant grasp the awesome power of php
    2. Re:Alan Turing's First Program by jd · · Score: 3, Informative

      That's true enough, and it was presumably because it was well-known that Turing used it on the world's first stored-program computer - easier to spot defects in the hardware side of the logic if the software side can be trusted as correct. The program and data were both in volatile memory, and instructions were fetched via an instruction pointer rather than going on to the next piece of punch tape or going by hard-wired instructions. (Conditional branches on a pre-stored program computer must have been a bugger, especially with something as fragile and slow as punch tape.) There were known problems with the computer - invalid instructions might do anything - and although it stored 40-bit words, it could only handle the first 32 bits.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  22. Oldest possible... by the_duke_of_hazzard · · Score: 5, Funny

    1 "Let there be light"
    2 create universe()
    3 while (1)
    4 # I'll finish this up later

    1. Re:Oldest possible... by Fumus · · Score: 2, Funny

      > 4 # DRUNK. FIX LATER.

      There. Fixed that for you.

    2. Re:Oldest possible... by while1noop · · Score: 2, Funny

      5 profit()

  23. For which value of 'code'? by hcdejong · · Score: 4, Informative

    The Science Museum has card decks for Jacquard looms that are more than a century old. Bletchley Park has a replica Colossus machine, which needs programming in the shape of switch positions. IDK if the code they use was preserved, or reverse engineered along with the rest of the machine, though.

  24. old CNC by rcallan · · Score: 2, Informative

    I think the question could stand to be a little more specific in terms of the definitions of "code" and "running," but I'm sure somewhere someone is using punch cards to machine things ( http://en.wikipedia.org/wiki/Direct_Numerical_Control ). I've seen a lot of ancient machines like this, mostly because they are designed for very long lifetimes, but also because generally they are given the tlc of the machinists that use them.

  25. IEFBR14 by dpilot · · Score: 2, Interesting

    IEFBR14, the good old chunk of do-nothing code, the most universal executable used by anyone who ever wrote JCL.

    It really does that - nothing. IEF is the code prefix, since all code *must* be prefixed, after all. BR14 stands for "Branch to Register 14", which with the old code linkages conventions means "return and exit". In JCL it's commonly used simply to attach, allocate, and deallocate files. In other words, used for its side-effects with the file allocation parameters. I haven't written any JCL in probably 20+ years, or I'd give an example. Anything I'd show now would likely be too badly riddled with errors to give the true, scrumptious feel.

    --
    The living have better things to do than to continue hating the dead.
  26. FANG,f rom 1972. Still downloadable. by Animats · · Score: 3, Interesting

    FANG, from 1972, is probably one of the oldest applications you can still download and run. It's a copying utility for UNIVAC mainframes. UNIVAC Exec 8 was way ahead of its time, with full support for threads, multiprocessors, and concurrent I/O from the late 1960s. FANG was one of the first applications to use that concurrency effectively. You could put in a series of commands to operate on multiple files, and it would do them as concurrently as possible, keeping track of any dependencies in the file copies.

  27. logarithms by petes_PoV · · Score: 4, Insightful
    > What is the oldest piece of code that is still in use today


    Not quite a cheat, but I'd say that the original instructions used to calculate log tables might be close.

    It's code (well, instructions - same thing?)

    While it has been retyped many time, I'm sure the original paper-based instructions are still in a library somwwhere, and would work on a suitably old calcuator (hand-cranked, of course)

    It's definitely a complete algorithm

    --
    politicians are like babies' nappies: they should both be changed regularly and for the same reasons
  28. Ada Bryon's Code by ForexCoder · · Score: 5, Interesting

    Ada Bryon's Notes on the analytical engine contains the oldest running code today. It can be run here.

    Of course Charles Babbage holds the claim for longest vaporware project at 153 years. And also apparently the longest unfixed bug.

  29. Re:MOD PARENT DOWN! by calebt3 · · Score: 2, Informative

    What's the matter? 'Funny' doesn't yield any karma, anyways.

  30. Re:Pioneer and Voyager Comps Receive Uplink Update by nuzak · · Score: 3, Insightful

    True, but what's really the definition of "still running" for purposes of it being the same code? If you patch one byte, is it the same code? Sort of a Ship of Theseus problem, no?

    --
    Done with slashdot, done with nerds, getting a life.
  31. 1979 for us! by rspress · · Score: 2, Interesting

    We programmed landleveling program on an Apple II+ in 1979. That code has remain pretty much unchanged since a port to GW basic for the PC. That is the oldest code we have written that is still being used. Before that we used a strip programmable HP-Calculator (computer?) to run the numbers.

  32. How about the oldest piece of your code? by plopez · · Score: 4, Interesting

    By which I mean production code, not the 'Hello World!' you did in Jr. High. I'll go first. In the mid 90's I wrote a COBOL program to link a mainframe to a HP printer to print transcripts at a uni. The SYSPROG set up the VTAM lines and I glued the PCL together with COBOL. I checked in about 3 years ago and a friend of mine said they were still running it. So at that time it was pushing 10 years. Which makes me proud actually.

    Anyone else with a story?

    --
    putting the 'B' in LGBTQ+
    1. Re:How about the oldest piece of your code? by lintux · · Score: 2, Interesting

      I wrote a tool to create and take tests from students at my high school something like twelve years ago. At least two years ago I think they were still using it. Or they dropped it in favour of something shinier than has windows and stuff but no real added functionality besides a Price Tag [tm]. ;-)

    2. Re:How about the oldest piece of your code? by entropy42 · · Score: 2, Interesting

      The webserver I wrote in 1995 still powers http://images.slashdot.org/

      --
      -- Stop the violins!
    3. Re:How about the oldest piece of your code? by cshbell · · Score: 2, Interesting

      Thanks for writing it! I use boa to serve up PAC files for a squid proxy, because boa is the smallest HTTP server that supports DirectoryIndex, letting me serve PAC files as the default index, and thus allowing a simple hostname for the PAC location. Good work!

  33. Re:IEFBR14 by WGR · · Score: 3, Interesting
    JCL was that bad.

    It came about because the developers of the IBM 360 Operating System suddenly realize a few weeks before it was ro be released that they had no method of actually allocating resources for a job. In a panic, they hacked together a version of their assembler macro language to parse the control statements. so the format of the language was the same as assembler language macro calls

    label opcode operands

    Spaces were significant, everything had to be upper case, syntax was arcane.
  34. Re:Really? by Thiez · · Score: 3, Funny

    I guess they could be, depending on how far you're willing to stretch the definition of computer. It seems quite obvious this the definition used in the question, though. But assuming we somehow agree that DNA is code, you'd still need a religion to refer to it as 'written' instead of 'generated'.

  35. Re:Probably... by netsharc · · Score: 4, Interesting

    The add font dialog is probably the oldest piece of Windows code still running in Windows... it's from Windows 3.1, and still looks the same in Vista!

    --
    What time is it/will be over there? Check with my iPhone app!
  36. Re:Pioneer and Voyager Comps Receive Uplink Update by Anonymous Coward · · Score: 5, Interesting

    It's amazing to me that NASA has the foresight to design such a remote update system years before the concept of a "firmware update" was ever applied to consumer technology. The innovations that have come out of NASA's labs is vastly underappreciated -- one wonders where our technology would be today if we invested more in the space program and less in killing one another (that is _not_ a condemnation of any particular country, pointing fingers doesn't solve problems...if anyone is offended by that remark I apologize).

  37. Re:Easy by metalcoat · · Score: 5, Funny

    Internet Explorer?

  38. Re:The OS powering John McCain's artificial heart. by osu-neko · · Score: 3, Funny

    I thought he got the artificial heart after he was shot through the heart by Aaron Burr (who was, as Vice Presidents go, a much better marksman than Dick Cheney).

    --
    "Convictions are more dangerous enemies of truth than lies."
  39. IEFBR14 by aixylinux · · Score: 5, Informative

    If by "program" you mean a stored program on what is conventionally meant by a computer today, I have a candidate.  IEFBR14 was used on the earliest version of OS/360 in 1964 as a do-nothing program. It is still in use today, unchanged on the latest version of z/OS.  Its function is to execute a JCL step which does nothing, but in the process of doing nothing, the job scheduler is invoked.  This is one method of creating and deleting datasets (files). It is also the shortest valid OS/360 (and z/OS) program, containing two executable assembler statements and two assembler directives.  The comments are mine.

    IEFBR14  CSECT          START PROGRAM SECTION
             SR 15,15       SET EXIT CODE TO 0
             BR 14          RETURN AND EXIT
             END            TELL ASSEMBLER END OF PROGRAM

    Interestingly, the first version of this program had a bug, which was subsequently corrected by doubling the program length.  It omitted the SR 15,15 statement, which meant that at program exit register 15 had an unpredictable value -- and the program exit code was therefore unpredictable.  Since a zero exit code is used to guide the conditional execution of subsequent steps, a failure could be indicated when there was none.

    And contrary to another post, I believe there are a lot of people with computer experience predating 1970 who read Slashdot.  But I don't want to start a flame war over that.

  40. Tea, Earl Grey, Hot by NetSettler · · Score: 4, Interesting

    Of course, it depends on what you count as code and what you count as running.

    People have already mentioned DNA, and I guess I'd give that high marks. But maybe we mean things invented by man.

    An abacus is a hardware program that is programmable with data and will yield numeric results. So is a sliderule. And there are others like the card sorters for punch cards, which predate programmable computers by several decades and yet performed very useful computation long before general purpose computers. And there are analog computers for predicting the motions of planets or for controlling the locks of the Panama Canal. But maybe we meant code implemented in software.

    The Babbage Machine is mechanical so if it stops, does that mean the machine has crashed or does it just have a long cycle time? People have mentioned that, and that's certainly a worthwhile contender.

    Mathematics also codes up algorithms, some of which are extremely old, and some of which you might regard as code, and so there might be something there that's competitive. But in a forum like this, full of nerds, I think "math" is too easy an answer and isn't provocative enough to get people thinking, so I'll go with this one:

    My personal favorite is just something done in human language. Human language has codified the execution structure of organizations and processes for quite a long time. The US Constitution defines an engine that runs the United States, for example. Roberts Rules of Order is a program that is an interrupt-driven system that runs meetings. Contract law in the US (and perhaps world-wide) reminds me a lot of the structure of bootstrapping TCP (reliable transport of packets under a contract) from unreliable pieces (the contract terms and offers); the whole business of how you can send an offer and what constitutes acceptance in the face of data loss and things arriving in the wrong order is very much analogous to what you see in modern networking systems, but just used to work via pony express instead. So I'd put my vote on one of those. I just don't have the time to work out the timelines to figure out which one came first... probably something in English Common Law. It also depends on whether you want a "framework" or a "packaged application" or whatever, because some of these I've mentioned are in different categories in that regard. These may not be quite as old as some mathematical algorithms, but I bet they're more overlooked.

    Now that I think of it, though, I bet food recipes (which are algorithmic in nature) predate even the earliest work of mathematicians, and it wouldn't surprise me if the recipe for making hot tea is the oldest, even if it's been upgraded a few times for changes in available hardware.

    --

    Kent M Pitman
    Philosopher, Technologist, Writer

    1. Re:Tea, Earl Grey, Hot by Tablizer · · Score: 2

      The US Constitution defines an engine that runs the United States

      If that's the case, then W is the worlds biggest hacker.

  41. 1968 for me. by lancejjj · · Score: 5, Informative

    Just a few weeks ago, one of my guys was looking at an old system that we have running. It is an old IMS application running on an IBM mainframe used to manage some factory equipment. We want to replace that system (even though "it just works"), so my guy was looking into it to see how it worked, as documentation is, of course, non-existent.

    The source code was written by my first CIO in the mid 1980s (who retired in the early 1990s), and it had a comment at the top which stated that it was created in January, 1968. It is quite sloppy... clearly before anyone thought about writing pretty code. There is no doubt in my mind that it was originally written on coding forms, and subsequently loaded into a machine via the long-defunct keypunch department. The program, of course, is running on much newer hardware now, but the code that is running was written in 1968.

    I speculate that there is a bunch of older code outside of my company.

  42. Re:Pioneer and Voyager Comps Receive Uplink Update by Tablizer · · Score: 4, Funny

    "Firmware" updates have been occasionally uploaded to the Pioneer and Voyager

    They had to, because Voyager kept calling itself "Vger".

  43. My guesses by John+Jorsett · · Score: 4, Interesting

    1. The US air traffic control system is 1960s vintage and I'd bet that there's still code in it that is unchanged since it was written.

    2. Some airline reservation systems are of equally antique origins. Although I'm sure the hardware has been updated in the ensuing years, I'd say there's probably a lot of code that hasn't been rewritten. Back in the '80s when I was doing some work with an airline and asked about that, I was told, "That code is older than you are."

    3. Don't know if this is still the case, but back in the late '70s, Navy carriers had computers so old that they were having to scrounge up germanium transistors to keep them operating. They wanted to keep them operating because nobody wanted to pay to rewrite the gazillion lines of reliable and tested assembly-language code that ran on them. If any of those are still around, they'd be my top candidate for having unchanged code still in operation. I'd guess that, in general, military systems (of the non-COTS [commercial off-the-shelf] type) are the most likely "oldest code" candidates, because of the lengthy and expensive qualification process and the long service life of such systems.

  44. Well, duh. by Kingrames · · Score: 2, Interesting

    DNA.

    --
    If you can read this, I forgot to post anonymously.
  45. The Mark 1 at Harvard by Comatose51 · · Score: 3, Informative

    The Harvard Mark 1, http://en.wikipedia.org/wiki/Harvard_Mark_I, still runs periodically throughout the day in the Harvard science center, IIRC. It was delivered in 1944.

    --
    EvilCON - Made Famous by /.
  46. My Guess its at Netlib or at NIST by LM741N · · Score: 2, Interesting

    I was looking for some mathematical routines to port into Python and ended up poking around at http://www.netlib.org/ and http://www.nist.gov/ where there are huge repositories of mathematical functions, most written in Fortran.

    One of the most interesting things after perusing much of the code I was looking for, was that instead of using integration routines for calculating things like Bessel functions, Hankel functions, and other differential equation related functions, they simply used look up tables and curve fitting.

    I suppose in the 1960's that made perfect sense as computers were so slow. But even today, I don't know why I shouldn't do the same thing. With EM and circuit simulation software its GIGO. There are so many parasitics to model, that you can only ever get an approximation anyway, so what difference does it make if you get a tiny error from a look up table, vs. the "exact" integration routine value?

  47. Re:Pioneer and Voyager Comps Receive Uplink Update by khallow · · Score: 3, Insightful

    We probably wouldn't be as far along. Military technology, especially in times of conflict, has resulted in a great deal of progress. Among other things, there's clearly defined failures (eg, someone defeats your army in battle or you have to abandon some location or policy). In comparison, what's failure in space development? It's obvious when things blow up. But what happens when things just aren't done? Is that a failure or just something that can't yet be accomplished? As I see it, it's far easier for a space program to plug along without any real measure of success and failure. That has complicated our efforts to do things in space.

  48. Orange Leos by sysjkb · · Score: 4, Interesting

    I saved this post from alt.folklore.computers. Terribly impressive. I'm
    not sure his age estimate is necessarily accurate -- the final
    incarnation of the Leo ceased to be manufactured in the later half of the
    60s.

    I don't know if some modern incarnation of the Orange Leo made it past Y2k. If it did, my guess is it will still be around for a long time...

    From: Deryk Barker
      Subject: Re: Multics
      Newsgroups: alt.folklore.computers, alt.os.multics
      Date: 1998/11/09
    [*snip*]
    When my wife was working for Honeywell, in the 1980s, one of the
    customers she had dealings with was British Telecom.

    BT, at one location, had what they called the "orange Leos".

    Now, for those who don't know this, the LEO was the world's first-ever
    commercially-oriented machine (1951). Even more amazingly, the Lyons
    Electronic Office was designed and built by the J Lyons company,
    best-known as manufacturers of cakes and for their nationwide chain of
    corner tea shops.

    Anyway, an "orange Leo" was an ICL 2900 mainframe (they came in orange
    cabinets), emulating an ICL 1900 mainframe, emulating a GEC System 4
    mainframe emulating a LEO.

    30+ year old executable code over 3 architecture changes....

  49. 100 year old embroidery machines by John+Sokol · · Score: 3, Interesting


      My uncle used to run embroidery machines in union New Jersey. These were built in the late 1800 and were about 100 feet long 10 feet wide and 2 stories tall with 1000's of needles stitching constantly. Literally were built as part of the building they were housed in.

    Where it gets interesting is these were driven by a large mechanical computer that ran from paper punch cards. The device itself was about a 1 meter cube. There were adders, and carry, multiples, and I think even branches and loops. It used to move paper cards back and forth as it created post man patches or frillies part of ladies undergarments.

    Don't know if this counts though and I think it's decommissioned anyhow, but it was sure was cool to watch.

    --
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso
  50. Air traffic control? by phiz187 · · Score: 2, Interesting

    I'm thinking maybe the air-traffic control systems? Aren't there frequent complaints that they are outdated? Or perhaps some kind of defense system, like NORAD, etc.

    --
    Pretend I said something meaningful or insightful here.
  51. Has to be greater than 45 years by Brett+Buck · · Score: 4, Informative

    Sort of depends on definition of "still running". If you mean in use when necessary and essentially an unchanged algorithm and logic, we have a lot of FORTRAN code written in the early 60's still running in daily use. I predates Fortran IV, but I would suspect that the same code started in ALGOL and They are generally math function routines (convert Euler Angles to Quaternions, that sort of thing). Originally it was on cards but then implemented into files. I still have some of the card decks. I would guess that with some work I can find some older than that (that is character-wise identical except for the comment cards).

              Brett

  52. Re:Pioneer and Voyager Comps Receive Uplink Update by DougWebb · · Score: 2, Insightful

    It's amazing to me that NASA has the foresight to design such a remote update system years before the concept of a "firmware update" was ever applied to consumer technology.

    As both a mechanical engineer and software engineer, this doesn't amaze me at all. It's basic "CYA", applied by engineers. They were sitting around a table one day, going over failure modes or something like that, and someone said "Hey, what if we forgot something here? Can we prove that we've covered everything that could be foreseen?". They thought about that for a minute, and being practical engineers, they said "Nope; we can't prove squat, and we probably did miss something, so lets build in something to let us deal with that contingency." And that's how the remote update system got invented. It's an obvious solution to an obvious problem, once you accept that uncertainty is a constant that needs to be dealt with rather than hidden away.

  53. Re:Pioneer and Voyager Comps Receive Uplink Update by philipgar · · Score: 2, Interesting

    Of course, one of the main reasons that NASA exists in the first place is to show our military might. If we could send people to the moon it is obvious that we have accurate missiles that can make it across the world and still hit their target. NASA was the "peaceful" way of showing our military power and technological innovations, and it served its purpose quite well.

    The problem today is that without a cold war, NASA doesn't have as much of a purpose. It's still around, and still doing neat things, but it isn't where innovation is being pushed as far.

    Phil

  54. Perhaps not the oldest, but take a look at Squeak by Anonymous Coward · · Score: 3, Interesting

    Most likely not the oldest code running, but how about, perhaps, the oldest widely distributed code, and still being distributed, running code.

    Squeak is not just "a" Smalltalk implementation, but it is also, in many ways, "the" Smalltalk implementation.

    I may be completely wrong about this, but it makes a good story nonetheless, so I'll make my case.

    Back in the late 70's, the group at Xerox PARC were working on what would become Smalltalk-80. An interesting artifact of the Smalltalk implementation is that rather than being developed as individual facets of source code that are then compiled in to a final distribution, like a C program for example, Smalltalk is distributed and developed by directly making changes in to a running image. At times, that image is replicated and copied to other users.

    Smalltalk can certainly be, and is, distributed as solely source code. But even today I do not believe there is a Smalltalk system that can be built from the ground up purely from source code. They typically rely on an instance of an image of Smalltalk to start with.

    At the minimum, this is how the PARC Smalltalk-80 is developed.

    Since Smalltalk was written on top of a VM architecture, in order to port Smalltalk from one machine to another, you only have to port the VM itself, then an existing Smalltalk image would run on top of that VM. So, the easiest way to port Smalltalk was to start with an existing Smalltalk image, and a VM spec.

    In essence, the VM spec is exactly what the famous "Blue Book" was. It was the documentation of the Smalltalk VM.

    While PARC released Smalltalk-80 on to the world in 1980, via the August issue of Byte Magazine, they also managed to work with four different companies who were also interested in the Smalltalk technology. One of those companies, as many may well know, was Apple Computer.

    In order to facilitate the bootstrapping effort, all of the companies were given an existing Smalltalk-80 image which they would use on their own internally developed Smalltalk VM. At this point, this Smalltalk image could well be considered to be a copy of the original Smalltalk image that PARC itself was using for internal development. Xerox's master, base Smalltalk image.

    I personally saw this image running in 1985, when an Apple employee demonstrated it to me at a Mac show being held on our university campus. It was a very enlightening experience. And for anyone who has read the "Orange Book", this image showed the exact same system as documented in that book, with it's browsers, workspaces, inspectors, scrollbars and pop up menus.

    Fast forward to the mid-90's, when Squeak was announced to the world.

    Squeak is a portable Smalltalk runtime and image, written within itself. It is self hosting and a "full blown" Smalltalk environment. The Smalltalk used to create the VM is a specific subset of Smalltalk that can be compiled down to C, linked with some system primitive functions, and compiled to be hosted on any of several systems. Once the VM is ported, the image "just starts". Squeak is widely ported.

    Squeak is a direct descendant of the Apple Smalltalk effort from the early 80's. In fact, it's being build by the same folks who worked on the original Smalltalk at PARC. The early goal of the project was simply to get a portable VM to run the standard Smalltalk image. And by standard Smalltalk image, I mean Apple's Smalltalk image, which is a direct copy of the the image used by Xerox in Smalltalks infancy.

    What I assert, though I cannot prove, is that there is code, and perhaps even large chunks of code, within the modern Squeak image, that was placed there by the original authors pushing 30 years ago. I argue that the code is still there, and that it could be code that worked so well, there has not been any call to change it in all these years.

    Now, it's fair to assume that the actualy byte codes may not be the same (I imagine they're not, minimally at an object pointer level), but whatever byte codes we have

  55. Re:Pioneer and Voyager Comps Receive Uplink Update by hobbit · · Score: 3, Funny

    As I see it, it's far easier for a space program to plug along without any real measure of success and failure. If you've discovered a way of getting billions of dollars of funding without having any clear objectives, please contact me privately at yeahrightwhatever@gmail.com.
    --
    "Wise men talk because they have something to say; fools, because they have to say something" - Plato
  56. Re:Easy by palegray.net · · Score: 4, Funny

    If we're counting earth-bound code, I was going to vote for "DNA."

  57. Re:Pioneer and Voyager Comps Receive Uplink Update by im_thatoneguy · · Score: 5, Funny

    If you've discovered a way of getting billions of dollars of funding without having any clear objectives, please contact me privately at yeahrightwhatever@gmail.com.
    *cough* missile defense *cough*
  58. Re:Pioneer and Voyager Comps Receive Uplink Update by mwvdlee · · Score: 3, Interesting

    For that matter, how often does it need to run in order to be "still running"?
    If you run the oldest piece of hardware with the earliest software ever written once or twice per decade for historical reasons, is that code "still running"?

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  59. Re:Pioneer and Voyager Comps Receive Uplink Update by Haeleth · · Score: 5, Insightful

    one wonders where our technology would be today if we invested more in the space program and less in killing one another
    Sadly, we would probably never have developed any sort of rocket (beyond the toy phase) if they weren't such a darned convenient way of delivering explosives...

    if anyone is offended by that remark I apologize
    Please don't. I for one am fed up of our modern PC climate where everyone is afraid to exercise their right of free speech in case someone isn't mature enough to deal with different views. Save the self-censorship for when you're tempted to shout "Fire" in a crowded theatre, or "Jesus loves gays" in a crowded fundamentalist church, or some other speech act that's actually likely to endanger people's lives.
  60. Eratosthenes and Euclid by Skylax · · Score: 2, Informative
    What about the Sieve of Eratosthenes, an algorithm to calculate prime numbers?

    http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes. It was concieved by Eratosthenes of Cyrene sometime between 276 BCE and 194 BCE. That one's certainly still used somewhere on the planet.

    Oh and here is another one, the "Euclidean algorithm" to calculate the GCD (Greatest Common Divisor). Wikipedia states it's as the oldest algorithm known

    http://en.wikipedia.org/wiki/Euclidean_algorithm

    most certainly also still used today.

    The Egyptians apparently had an algorithm to muliply numbers:

    http://en.wikipedia.org/wiki/Ancient_Egyptian_multiplication

    which is of course much older than the first two but no longer in use today (I guess) so I doesn't count.
  61. Re:Really? by Thiez · · Score: 2, Insightful

    I never said such a thing, I merely (implicitly) pointed out that there there is, to my knowledge, no scientific theory that suggests that genetic code was written by some entity, instead it suggests that it is a (rather impressive) case of self-modifying code. Where (R/D)NA 1.0 came from is still unclear, but given the way science has advanced the last hundred years, it would seem reasonable to assume we'll find it out at some point in the future (and it will probably be an explanation that does not involve a supernatural being, just like the ones we have for the lightning, disease, etc.). Now if we assume that there was no writer involved in the creation of (R/D)NA, then we can conclude that (R/D)NA was not written at all. However, many religions involve some kind of creator(s). Someone believing in such a religion might believe that (R/D)NA was 'written' by such a creator. Any argument in favor of the existance of such a writer based primarily on such a religion would not be a valid argument for anyone who is not a member of that specific religion, and therefore should not be used on slashdot, where people of many different religions (and many without any religion) are present.

    Long story short: I fail to see how you conclude form my former post that religion offends me, it does not. And we're being horribly off-topic.

  62. Re:can anyone still spell sputnik by brusk · · Score: 3, Informative

    Sputnik 1 was in orbit for only a few months.

    --
    .sig withheld by request
  63. Jaquard Loom by Whiteox · · Score: 3, Informative

    Believe it or not, the Jaquard Loom - 1801 (which is still in operation today), is the oldest known powered, programmable 'computer'. It's output is not text or numeration, but textile.
    If there is a hole (or binary 1), it allows thread to go through. So it is digital and not an analog computer. http://en.wikipedia.org/wiki/Jacquard
    It is debatable if it is a computer, but the original post wanted to know about code running today.
    Well the code is there as punch cards. Each set of cards can make a particular pattern in textiles. Copies of the code still run today.
    Also, Babbage wanted to use a similar punch card system to program his engines.
    Now if we are talking analog computing 'code' then that is a different story. :)
    It's all there folks!

    --
    Don't be apathetic. Procrastinate!
  64. Re:Pioneer and Voyager Comps Receive Uplink Update by GuldKalle · · Score: 2, Funny

    Please don't. I for one am fed up of our modern PC climate where everyone is afraid to exercise their right of free speech in case someone isn't mature enough to deal with different views. Are you saying he should apologize for that remark? :)
    --
    What?
  65. Comment removed by account_deleted · · Score: 4, Insightful

    Comment removed based on user account deletion

  66. Wars: Good Science, but Lots of Corpses by igb · · Score: 2, Informative
    Wars allow science to have the GDP of medium sized countries. It may not help the science, but it does help the engineering that makes it usable, and it's usable science that then drives the next generation.

    Every morning on my way to work I pass where cavity magentrons were made into practical devices http://en.wikipedia.org/wiki/Cavity_magnetron and where the critical mass of Uranium was first deduced http://en.wikipedia.org/wiki/Frisch-Peierls_memorandum. The science didn't need huge budgets: the engineering that followed on from it did. A hour's drive takes me to Bletchley Park (http://en.wikipedia.org/wiki/Bletchley_park); again, the maths didn't need budgets, the engineering that followed did. Radar, atomic weapons and crypto: the spin offs drive a lot of the world today, but the raw science wouldn't have had as much influence without the money that science gives you.

    ian

  67. Re:Really? by McGiraf · · Score: 2, Funny

    "what, does religion offend you?"

    Yes. As much as pumpkin heads bunnies with the tooth fairy as a sidekick laying chocolate eggs for christmas.

  68. The Colossus computer would be my guess. by seven999 · · Score: 2, Interesting

    The Colossus machines were electronic computing devices used by British codebreakers to read encrypted German messages during World War II. These were the world's first programmable (if not fully), digital, electronic, computing devices. They used vacuum tubes (thermionic valves) to perform the calculations. http://en.wikipedia.org/wiki/Colossus_computer And it still runs (at a museum)

  69. Re:Easy by aliquis · · Score: 3, Informative

    RNA had you beaten, I guess.

  70. Re:Easy by dryeo · · Score: 4, Interesting

    I think that "RNA" was actually in use even earlier and is still used a bit.
    http://en.wikipedia.org/wiki/RNA#RNA_genomes

    --
    https://en.wikipedia.org/wiki/Inverted_totalitarianism
  71. not hard to guess by tyme · · Score: 3, Informative

    The oldest extant computer architectures are IBM System/360 (now called System z, but able to run object code from the 360) and Burroughs B5000 descendants (now called Libra). Both architectures date from the early 1960s (1964 for the System/360 and 1961 for the B5000), so we can guess that the oldest running programs date from the same period, or about 40 years ago.

    This also fits well with one of the unwritten requirements of the questions: that there be a language in which to write the lines of code. The earliest computer languages (LISP, COBOL and Fortran) date from only a few years prior to the introductions of these systems (LISP was invented in 1958, COBOL in 1959 and Fortran in 1957).

    This also fits well with a couple of long lived software systems with which I am familiar: The IRS tax return processing system dates from 1964, written in a combination of COBOL and System/360 machine code, it only now being replaced by C++ code (the project is called CADE and has been featured in a number of newspaper articles over the past 10 years as a monumental failure). The airline reservation system, SABER, dates from around 1960 and has been in constant use since it went live in 1964. While SABER was originally written for IBM 7090 mainframes, it was transitioned to System/360 in the early 70s.

    Embedded systems aren't a consideration at this time scale (the first microprocessor didn't appear until 1971), so we don't need to worry that some washing machine from the 1950s is still running some program written at that time. Still, it sounds like the oldest running programs must be about 50 years old.

    --
    just a ghost in the machine.
  72. Re:Pioneer and Voyager Comps Receive Uplink Update by Rich0 · · Score: 3, Informative

    Actually - it wasn't always this way, although this technology was deployed fairly early in the space program.

    I remember reading an article about one of the earliest Mars probes. Both the US and the USSR launched probes around the same time. However, when the probes began to approach Mars a huge dust storm ensued obscuring most of the surface for quite a while. The US probe was reprogrammable, while the Russian probe was not. The US was able to put their probe into hiberation during the storm, while the Russian probe expended its energy relaying photos of haze.

    So, the value of this ability was proven fairly early in the space program. I'm not sure what the timing was relative to Pioneer but it almost certainly predated Voyager.

  73. Re:Pioneer and Voyager Comps Receive Uplink Update by smittyoneeach · · Score: 2, Interesting

    http://www.mda.mil/mdalink/html/aboutus.html
    MDA Mission
    To develop and field an integrated, layered, ballistic missile defense system to defend the United States, its deployed forces, allies, and friends against all ranges of enemy ballistic missiles in all phases of flight.
    1. Retain, recruit, and develop a high-performing and accountable workforce.
    2. Deliver near-term additional defensive capability in a structured Block approach to close gaps and improve the BMDS.
    3. Establish partnerships with the Services to enable their operations and support of the BMDS components for the Combatant Commanders.
    4. Substantially improve and demonstrate the military utility of the BMDS through increased system integration and testing.
    5. Execute a robust BMDS technology and development program to address the challenges of the evolving threat through the use of key knowledge points.
    6. Expand international cooperation through a comprehensive strategy to support our mutual security interests in missile defense.
    7. Maximize mission assurance and cost effectiveness of MDA's management and operations through continuous process improvement.



    Because, when an organization is going to burn through more cash than you or I will see in several lifetimes, you can bet your bippy they'll have some fancy words out front. ;)

    --
    Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
  74. Please, someone by td04impostor · · Score: 2

    Please, someone mod this guy '+1 uncomprehended genius' :)

  75. Frugal computing will be with us forever! by EmbeddedJanitor · · Score: 2, Insightful
    The vast bulk of computers in the world are embedded systems and the vast bulk of these are very small micontrollers in appliances like rice cookers etc.

    Some of these micros have no RAM - just registers. The need for frugal computing will continue forever.

    Yes, it is true theat Moores Law also applies, to an extent, to these micros: you get faster and bigger devices for the same price. But Moore's Law works the other way too. A fixed capability device gets cheaper and cheaper. If a rice cooker manufacturer has a 50c controller in their rice cooker and can bring that cost down to 40c they'll do the software development needed to achieve this.

    --
    Engineering is the art of compromise.
  76. Old telephone/railway switching systems by theolein · · Score: 2, Interesting

    In 1982, I did a semester break job working for the railways in an African country. The switching was all done with circuits that used relays for the logic. The "UPS" was a roomfull of car batteries.

    That switching system was made in the early 50's and is still running (on occasion) today. The greatest thing about it that you can actually fix individual relays, which is good a country with no real infrastructure where repairs need to be done by hand, and also because relays are not exactly easy to come by these days.

  77. Re:Pioneer and Voyager Comps Receive Uplink Update by rhakka · · Score: 4, Insightful

    yeah, communicating effectively with people instead of flaming them is certainly cause to get "fed up".

    When you try to express a concept that might piss people off, and you aren't trying to piss people off, saying so and expressing sensitivity to their beliefs isn't "PC", it's basic technique of a civilized person in conversation.

    note the word "civilized" typically connotes that you are attempting to be a civil person. While being an opinionated asshole is easy and fun (believe me, I know!) it is not effective communication unless your goal is to intimidate your listeners.

    I share your impatience with people with thin skins; I also share on a personal level your disdain for those people's "maturity". but the fact is, people are different, and some people have thin skins for legitimate reasons you have no knowledge of. recognizing that is simply showing your listener that you have a basic respect for them as a human being, and it typically goes a lot further to achieve final understanding that just beating them about the head with their own "hot buttons".

    in short, showing a little respect, deserved or not, is what it means to be civilized, IMHO. I don't always follow this. But whining about PC stuff is old and tired. Yeah, some people suck and are stupid and wussy; and it's still cool to be cool to people, by and large.

  78. Re:Pioneer and Voyager Comps Receive Uplink Update by brian642 · · Score: 3, Informative

    the NASA/JPL spacecraft was Marinner 9, the USSR spacecraft was Mars 2 and 3 in 1971 http://mars.jpl.nasa.gov/missions/past/mariner8-9.html

    --
    ----- The man who trades freedom for security does not deserve nor will he ever receive either. -- Benjamin Franklin
  79. Re:Hollerith constants by goodmanj · · Score: 2, Interesting

    Ooo! I forgot to mention the best part of this code:


    C ***** REPLACE HOLLERITH LABELS WITH SPECIES NUMBERS IN JCHEM *****
                IF(JCHEM(M,J).NE.ISPEC(I)) GO TO 6
                JCHEM(M,J) = I


    It replaces the Hollerith string (stored in an integer-typed variable) with an actual integer. Because hell, the string "H2O2" and the number 6 are the same type, so why not?

    Typecasting is easy when your only type's an integer.

  80. The oldest program.... by Jedi_Yo_Jo · · Score: 2, Interesting

    The oldest program could be the fundamental theorum of calculus. One of the intended purposes of Calculus was to have a language that a machine could use to generate proofs. The machine was never made, but the code lives on.

  81. Re:Easy by SnowZero · · Score: 5, Funny

    DNA is in a more or less constant state of "editing". But yeah, there are trees that are almost 5000 years old which presumably haven't evolved in that time.

    Ah, so it's like Emacs?
  82. Who wrote this crap? by RoadWarriorX · · Score: 2, Funny

    The other day, I was investigating some strange behavior in our production environment. I scanned through some piece of code written way back in 2001. After poking around for a couple hours, I find the offending code. The code was somewhat buggy and I found it right away, but fixing it proved to be challenging. After a hour or so, my frustrations got to me. It was so bad that I started to say "who wrote this crap?", only to realize that I wrote it 7 years ago. Alas, I had stumbled upon the oldest running code in my measly existence.

  83. Hard Code? by DynaSoar · · Score: 2, Informative

    If "coding" can include processes implimented in hardware (very hard ware, such as gears) then the WW II Axis crypto machine Enigma and the Allies' SIGABA would qualify. The former was recently replicated, so we know it's design, ie. code, is still valid.

    Of course, if the definition extends to machines of this nature, then Babbages' Difference Engine would probably win. It was designed to be hard coded to solve polynomial functions. It was recently (1991; London Science Museum) built as a working model, so the design/code is proven, but the design/code itself dates to 1822 and was first implimented in 1849. The London machine is still working, so it should qualify as long as hardware coding is included.

    --
    "I may be synthetic, but I'm not stupid." -- Bishop 341-B
  84. The oldest code? by jandersen · · Score: 2, Interesting

    It is called RNA - it ran already before DNA, which has been around for 4+ billion years or so, and it is still running in all known lifeforms.

  85. Re:Pioneer and Voyager Comps Receive Uplink Update by BECoole · · Score: 2

    If you've discovered a way of getting billions of dollars of funding without having any clear objectives, please contact me privately at yeahrightwhatever@gmail.com.


    *cough* missile defense *cough* Or *cough* Global Warming *cough*
  86. a/b swap by sf_basilix · · Score: 2, Funny

    how about:

    $c=$a
    $a=$b
    $b=$c

  87. Re:Hey! I resemble that remark! by elysiuan · · Score: 4, Interesting

    Essentially they just modify the executable itself rather than having the code and recompiling it. The types of people who do this also tend to be good at things like debugging programs by reading a raw core dump. From the quintessential article on the matter: "For this reason, Real Programmers are reluctant to actually edit a program that is close to working. They find it much easier to just patch the binary object code directly, using a wonderful program called SUPERZAP (or its equivalent on non-IBM machines). This works so well that many working programs on IBM systems bear no relation to the original Fortran code. In many cases, the original source code is no longer available. When it comes time to fix a program like this, no manager would even think of sending anything less than a Real Programmer to do the job-- no Quiche Eating structured programmer would even know where to start. This is called "job security"." http://www.pbm.com/~lindahl/real.programmers.html

  88. Re:Pioneer and Voyager Comps Receive Uplink Update by haakondahl · · Score: 2, Interesting

    Funny. When Israel and Saudi Arabia were being fired upon by Saddam Hussein's scuds, not knowing what was in the warheads, they thought land-based missile defense was a pretty good idea. And now that Japan has seen North Korea both detonate a nuke (albeit likely the size of a school bus) AND lob a missile completely across Japan, they rather appreciate the idea of sea-based missile defense. And we need look no further than Vladimir Putin's hostile reaction to the proposed eastern Europe missile *defense* system to see that not everybody thinks the idea is so God-Damned funny.

    --
    Don't trust anyone under thirty.