From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems Date: Tue, 24 May 2011 07:36:23 -0700 Organization: Update Computer Club Message-ID: References: <4d99c3b6$0$23756$14726298@news.sunsite.dk> <4dc1e27c.40366475@news.tpgi.com.au> <93vbcaF3luU1@mid.individual.net> <940bm5Fcc3U1@mid.individual.net> <941ob1Fre1U1@mid.individual.net> NNTP-Posting-Host: c-67-180-198-1.hsd1.ca.comcast.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1306247784 3330 67.180.198.1 (24 May 2011 14:36:24 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Tue, 24 May 2011 14:36:24 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <941ob1Fre1U1@mid.individual.net> Xref: g2news2.google.com alt.sys.pdp11:2194 comp.sys.dec:3528 vmsnet.pdp-11:622 On 2011-05-24 05.58, Bill Gunshannon wrote: > In article, > Johnny Billquist writes: >> On 2011-05-23 17.16, Bill Gunshannon wrote: >>> In article, >>> Johnny Billquist writes: >>>> >>>> In a way, a reimplementation of the PDP-11 OSes might be interesting. >>>> But I doubt many people today would see the point in using anything that >>>> didn't follow the Unix programming paradigms, >>> >>> I was waiting for this to come up. I think most people think that >>> there are really only two OSes left in the world. MS and Unix. >>> BUt, actually, thre are a lot of others out there including some >>> that predate MS and might even predate Unix and still have loyal >>> followings. (And I am not talking about VMS. :-) >> >> Well, Windows more or less allows you to follow the Unix paradigm as >> well, when it comes to writing programs for the net. > > Minus the security model. :-) True. But the security model of Unix itself isn't exactly something to boast about. :-) >> And so do VMS. > > Minus little things like fork(); :-) Good point. There are some things that are more of an headache to emulate. Still, lots of Unix programs can be compiled and run on VMS systems with little, or no change. And Unix programmers can write programs on a VMS system without really having to go outside their comfort zone for most of the time. It might not be programs that really take any advantage of VMS, but then again, they don't care. >> And >> all other OSes that I know of. [List of other OSes...] I don't know for sure how any of those OSes look from a programming point of view, but if any work's been done on the core system the last 20 years, I wouldn't be surprised if it was to make it more Unix-like. >> (Hello select(), synchronous I/O, getting errors back which basically >> just means that you need to retry, because nothing is wrong, but we just >> got interrupted, and random dynamically allocated file descriptors, and >> all files are just streams of bytes.) > > Lot's of systems where that is not necessarily the case. Definitely not > the case with VMS. It's definitely the case with VMS. Yes, the above statements are not *neccesarily* true for VMS, but a programmer *can* program with this approach on VMS, and almost all programmers today implicitly assumes that these statements are truths. So, even though you have an OS that offers you other possibilities, noone knows, or can use them. (Ok, noone is an oversimplification, but you get the idea.) >>>> no matter if a lot of >>>> coding problems would be much easier to solve using some other paradigm. >>> >>> And if the paradigm actually made things better? One has to wonder >>> how many of the people who eventually moved off of RSTS and RSX did >>> so because the hardware it ran on was not capable of keeping up with >>> the demands of their business. Remember, no one buys an OS for the >>> OS, "It's the applications!!" >> >> Many moved off just because of demands for more computing power, cheaper >> hardware, > > I agree up to here. Since it was more or less what you wrote. ;-) >> and perhaps even more because the software they needed to run >> didn't run on PDP-11s any more. > > I would imagine the majority were running applications that were stable > and met their corporate needs just fine as they had been running them > for decades. The problem was the need to have additional functionality > that the hardware (primarily memory) limitations made impossible. If > it had been possible to add that functionality I would bet most would > have stayed with the OS they were familiar with. And, avoided the cost > of not only moving to a new platform but re-writting all their unique > application or changing their business model to match some other piece > of software's idea of how a business should be run. Well, in many cases, new requests for more functions, new features, or additional applications do come in. And that's when systems get replaced. So yes, the current applications are stable and working. But that is not enough. If that was all there is, then there wouldn't be any need for more computing power either. If the current setup already fulfills the needs, that would imply that the current computing power also is sufficient, no? >> It all have very little to do with technical competence of the >> underlying OS. > > Oh, I can agree with that. As I said, "It's the applications!!" > But, by the same token, the move to a new OS was not because of > a shortcoming in the old OS. Unisys has been very successful by > making systems that still allow old code to continue to run only > with greater resources available (I remember a particular problem > I had to solve in my Univac COBOL days that was eventually tracked > down specifically to memory availability!! That same code would > run on OS2200 today without ever exhibiting the problem I had to > fix by modifying the supporting ECL.) IBM has had great success > by doing the same for SYSTEM-360 programs. Yes. It's the typical question of being able to run the applications. Rewriting, and porting applications can be both expensive and difficult. Cheaper to continue running on the old systems, when possible. I guess we forgot about one reason why people move off old OSes. Cost of running and maintaining old hardware. At some point it might just become impractical to continue running on the old machines. The PDP-11 was in that aspect perhaps a bit unfortunate, in that there was a long gap between when DEC more or less wanted (forced?) people to to migrate to VAXen, and before commercial emulators became available. Thus forcing a lot of migration to take place, because to viable options existed. >>>> (Then again, a lot of programming today takes place in HLL, which have >>>> also adopted to the Unix paradigms, which makes it even harder to use >>>> any other OS, not to mention that you'd need to develop compilers and so >>>> on, for this reimplemented OS.) >>> >>> Once you moved to a mchine without the memory limitations of the PDP-11 >>> you could use any of the GNU Compilers. Or pretty much anything else >>> out there today. >> >> No. You already failed right there. The GNU compilers them self assumes >> a whole lot of Unixy things. > > Hmmm.... Not so sure about that, but even if true I would imagine it > would not be a major undertaking to make the needed modifications. The horrors! I have peeked under the hood of gcc. It's not a piece of code I would ever consider easy to modify. :-) > And, > there are other options. Again, all of it depends on the model that > needs to be used. If all the original code were to be released with a > commercial friendly license one could modify the back-end to support > the new architecture. If you have to start from scratch then you need > to start by finding a suitable compiler (and language). And, speaking > of language, even if the original code was released much of it is in > PDP-11 Macro and would need to be re-written using the original only > as a model. That adds the question of what language do you write it > in? Don't get me wrong, I like C. I am good at C. I do not make a > lot of the mistakes that C is famous for. But...... I would probably > not choose C as the language to use for reasons I should not have to > deliniate here!! :-) Good question. I have no idea what I would write in. I love MACRO-11, but I'm not sure people in general would want to fool around in assembler. And I also agree that C is not always ideal. But I don't know what language I would recommend. >>> All you would really need to develop would be the >>> support libraries. I am still trying to find the time to dig out an >>> old version of GCC with the PDP-11 support in it to play with, just >>> lack the time. >> >> Support libraries are also an issue, yes. We need all the Unixy >> functions, > > Eventually. They open up a lot of possibilities. But then, if > you are re-writting from scratch it makes it a good time to make > the needed changes and additions. Yes. If we do something from scratch, all the options are there. But other programmers will probable have a hard time to understand how to use it all. They'd try to write the Unix way, I'm afraid. :-) >> or else it's pretty useless. :-/ > > Do your current RSX users find it useless? Current RSX users do not have gcc. :-) Very few RSX users even program in C (on RSX). But the DEC C compiler for RSX does its best to present something that is Unix-y, including as much of the standard C libraries as possible. Things that are missing is mainly fork(), select() and pipes. And anything socket related. But skipping that, you can write a program in RSX pretty much the same way as on any Unix system. Not that you take any advantage of anything that RSX is good at, but that was my point. If you provide a C compiler, you pretty much have to provide something that smells like Unix, or else it gets pretty useless, since people expect any C environment to also work like a Unix environment. > Then why are they > still there? Same goes for all those OSes I mentioned above. > Again, as much as I like Unix (and I have been doing it since > 1980) it is not the only answer to any problem. It definitely is not, but that was not my point. >> Heck, gcc even have its built-in versions for a bunch of library >> functions, in order to inline them. Making everything even more exciting. > > Depending on the function, that's probably not really a problem. > It is likely that in the long run those same functions might be > wanted under RSTS and RSX as well. They are very Unix-y and C-y. But sure, they are useful. Most functions in the C library are useful. They just might not match the paradigms of a non-Unix environment. Most typically, that would be such a simple concept as strings for example. >>>> However, RSTS/E with a Unix RTS would be cool. :-) >>> >>> Had that 30 years ago. Like so many ideas it was too far ahead of its >>> time and, withered on the vine, all the work was lost and now we will >>> have to re-invent the wheel once again. >> >> Cool. I didn't know that anyone had actually done this, even though it's >> such an obvious thing to do. > > OK, to be honest, it was not what you would call an RTS. :-) I was > refering to one of my pet peeves. The Software Tools Virtual Operating > System which was probably more of a POSIX-like API than an RTS. But > the idea was there. Let Unix software run on non-Unix systems. And > the list of supported systems is mind-boggling!! Ah. Darn. I was thinking of a real RTS. Just copy your Unix binary onto your RSTS/E system, set it to use the right RTS, and then just run it. That should be very doable (maybe even easy), with the RSTS/E RTS design. It's a really cool concept. Johnny