A Programming Question (Now That Chris is On Vacation)
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
Quote:
Re: A Programming Question (Now That Chris is On Vacation)
Urgentz. Must calculate great circle distance between remote Pacific island and Toronto Canada to minimize flight travel. Send Codez. Professor is giving extra credit for a flat earth solution. Oops, shouldn't have said that. Homework must be turned in using Javascript running in a Docker container. Oops, shouldn't have said that either.
Latest Article - Azure Function - Compute Pi Stress Test Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
Quote:
Re: A Programming Question (Now That Chris is On Vacation)
Urgentz. Must calculate great circle distance between remote Pacific island and Toronto Canada to minimize flight travel. Send Codez. Professor is giving extra credit for a flat earth solution. Oops, shouldn't have said that. Homework must be turned in using Javascript running in a Docker container. Oops, shouldn't have said that either.
Latest Article - Azure Function - Compute Pi Stress Test Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
Bassam Abdul-Baki wrote:
Is there a never-ending program that is calculating all the primes and storing them in a library somewhere?
well there was Deep Thought that determined the answer to life, the universe and everything ...but that did eventually complete. Now [given the answer] they're trying to trying to figure out the ultimate question, however that will take a much larger computer.
-
Bassam Abdul-Baki wrote:
Is there a never-ending program that is calculating all the primes and storing them in a library somewhere?
well there was Deep Thought that determined the answer to life, the universe and everything ...but that did eventually complete. Now [given the answer] they're trying to trying to figure out the ultimate question, however that will take a much larger computer.
Earth is not enough! ;P
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
You topic is very great and useful for me…thank you
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
#1. It is odd that some language-specific features don't spread more broadly (APL's matrix manipulation as another example). I guess that the general language users don't need them, so it doesn't migrate into the more common languages. Some stuff does migrate (quicksorts and whatnot), so I assume it's just need vs. experimental languages. #2. I know I had asked around when I worked at a different place, and Sabre (computer system) - Wikipedia[^] was listed as one of the oldest still running (albeit likely updated). #3. Need to work that into a x^3+Y^3+z^3 format ;)
TTFN - Kent
-
#1. It is odd that some language-specific features don't spread more broadly (APL's matrix manipulation as another example). I guess that the general language users don't need them, so it doesn't migrate into the more common languages. Some stuff does migrate (quicksorts and whatnot), so I assume it's just need vs. experimental languages. #2. I know I had asked around when I worked at a different place, and Sabre (computer system) - Wikipedia[^] was listed as one of the oldest still running (albeit likely updated). #3. Need to work that into a x^3+Y^3+z^3 format ;)
TTFN - Kent
Kent Sharkey wrote:
APL's matrix manipulation as another example
BASIC-PLUS -- which was my first introduction to programming, on a PDP-11 in 1983 -- also has matrix operations built in.
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
-
Did you actually read him?... His haven't much more sense than yours :laugh: :laugh:
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
1. Looking at ProjectEuler and the OEIS website, it seems that some programming languages offer shorter methods of doing something (mathematical) (and I'm not just talking about the obfuscatory syntax). One language that comes to mind is J; another is Maple. It seems that you can do a lot with just a few short calls. Why isn't that added to most languages? Is there a repository that adds the most optimal method to do something into a library for that language so that it may be used? 2. What is the longest running program? I assume the programs developed for Voyager 1 and 2 are pretty much up there. What other types are there? Is there a never-ending program that is calculating all the primes and storing them in a library somewhere? 3. Happy January 9 = 1/9 = 3/33 = 3/27 = March 27!
- Apparently, it's MOCAS[^] - started running in 1958 and still going ... 3) Only in backwards colonies. The real world writes it 27/3/.... or ....-03-27
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Kent Sharkey wrote:
APL's matrix manipulation as another example
BASIC-PLUS -- which was my first introduction to programming, on a PDP-11 in 1983 -- also has matrix operations built in.
So has FORTRAN 90, the long-running vehicle :-D
-
- Apparently, it's MOCAS[^] - started running in 1958 and still going ... 3) Only in backwards colonies. The real world writes it 27/3/.... or ....-03-27
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
OriginalGriff wrote:
Perhaps the question should have been "running substantially unchanged, on the same hardware". The IBM 2098 E-10 was only first available in 2008, to say nothing of the upgrades to the interface etc.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
- Apparently, it's MOCAS[^] - started running in 1958 and still going ... 3) Only in backwards colonies. The real world writes it 27/3/.... or ....-03-27
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
#1. It is odd that some language-specific features don't spread more broadly (APL's matrix manipulation as another example). I guess that the general language users don't need them, so it doesn't migrate into the more common languages. Some stuff does migrate (quicksorts and whatnot), so I assume it's just need vs. experimental languages. #2. I know I had asked around when I worked at a different place, and Sabre (computer system) - Wikipedia[^] was listed as one of the oldest still running (albeit likely updated). #3. Need to work that into a x^3+Y^3+z^3 format ;)
TTFN - Kent
1. Makes you wonder what users are actually programming. Programming for the sake of programming or actually trying to solve problems through automation. 2. Cool. Never heard of it before. I know the IMDB website's data is based of the old newsgroup, but that's data. 3. Are you familiar with Euler's [Equal Sums Of Like Powers](http://euler.free.fr/)?
-
- Apparently, it's MOCAS[^] - started running in 1958 and still going ... 3) Only in backwards colonies. The real world writes it 27/3/.... or ....-03-27
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Millenium bug? A program storing dates either with 4 digit year (or actually anything else than 2 digit "mod 100" style) encountered no problems with the new millennium. Assuming, of course, that the OS didn't crash or deliver the wrong values. My guess is that the OS used in 1958 was so primitive that it had few if any built-in calendar-related functions beyond reporting the current date and time. As long as that report didn't use a mod 100 year value, you'd be fine. Related anecdote: The University of Copenhagen ran a huge Univac 1100 mainframe, from the days when CMOS and battery backed up real-time clocks had't been invented yet. So if the machine was rebooted (which could be due to normal maintenance), the operator had to set the current time manually. At one reboot, the operator happended to mistype the year, setting the machine 10 years into the future. It wouldn't be that dramatic, if they hadn't - before the mistake was discovered - run the program deleting all files that hadn't been accessed for six months. ("On a clear disk, you can seek forever"...) There is a second part to this story: The data wasn't actually deleted. Storage for large systems was heavily tape based in those days. Univac had a very compact format where all the metadata, the catalog information with pointers to the data blocks, were kept on disk. Only the data blocks themselves were written to tape ... without any metadata. So all the data blocks were there, but with no pointers to them. No indication of which data blocks belonged to which file. (This was a well known "real life" story in my student days - my U had two huge Univac 1100 mainframes; the operators loved to tell about this incident. I never saw any "hard" documentation. If anyone can point me to reliable sources, I'd be happy!)
-
Millenium bug? A program storing dates either with 4 digit year (or actually anything else than 2 digit "mod 100" style) encountered no problems with the new millennium. Assuming, of course, that the OS didn't crash or deliver the wrong values. My guess is that the OS used in 1958 was so primitive that it had few if any built-in calendar-related functions beyond reporting the current date and time. As long as that report didn't use a mod 100 year value, you'd be fine. Related anecdote: The University of Copenhagen ran a huge Univac 1100 mainframe, from the days when CMOS and battery backed up real-time clocks had't been invented yet. So if the machine was rebooted (which could be due to normal maintenance), the operator had to set the current time manually. At one reboot, the operator happended to mistype the year, setting the machine 10 years into the future. It wouldn't be that dramatic, if they hadn't - before the mistake was discovered - run the program deleting all files that hadn't been accessed for six months. ("On a clear disk, you can seek forever"...) There is a second part to this story: The data wasn't actually deleted. Storage for large systems was heavily tape based in those days. Univac had a very compact format where all the metadata, the catalog information with pointers to the data blocks, were kept on disk. Only the data blocks themselves were written to tape ... without any metadata. So all the data blocks were there, but with no pointers to them. No indication of which data blocks belonged to which file. (This was a well known "real life" story in my student days - my U had two huge Univac 1100 mainframes; the operators loved to tell about this incident. I never saw any "hard" documentation. If anyone can point me to reliable sources, I'd be happy!)
Trust me, back in those days, a mod 100 year would have been used - memory was small and damn expensive - you wouldn't waste a byte per date! (Your code might have worked with
year >= 50 == 1900 + year
,year < 50 == 2000 + year
but in the fifties that was very, very unlikely - that was a big part of the Millenium Bug) Bear in mind that in those days its was mostly punch cards - which had 12 rows so a month could be encoded in a single digit to save space! :laugh:Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
- ...and uses UTC... :-D
Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!
-
Trust me, back in those days, a mod 100 year would have been used - memory was small and damn expensive - you wouldn't waste a byte per date! (Your code might have worked with
year >= 50 == 1900 + year
,year < 50 == 2000 + year
but in the fifties that was very, very unlikely - that was a big part of the Millenium Bug) Bear in mind that in those days its was mostly punch cards - which had 12 rows so a month could be encoded in a single digit to save space! :laugh:Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!