From: "Jerome H. Fine" <jhfinedp3k@dp3knospamcompsys.to>
Subject: Re: RT-11 Bug Fixes and Enhancements
Date: Thu, 20 Mar 2008 19:48:28 -0500 [thread overview]
Message-ID: <47e305ef$0$90270$14726298@news.sunsite.dk> (raw)
In-Reply-To: <m3d4ppf9oa.fsf@donnybrook.brouhaha.com>
>Eric Smith wrote:
>Howard S Shubs wrote:
>
>
>>That's known as the Y10K problem. That's why you're confusing people.
>>
>>
>
>Mark L Pappin wrote:
>
>
>>People including you, obviously.
>>Not supporting dates after 9999 CE is the Y10K problem.
>>Adding support for dates after 9999 CE would be the Y10k bug fix.
>>Adding support for up to but not after 9999 CE is the Y9K bug fix.
>>
>>
>
>According to whom?
>
>Logically, a "Y9K" bug fix would be a fix for a bug causing dates after
>the year 8999 to have problems. I've never heard of a system having a
>known problem of that nature.
>
>The next date problems that are most commonly expected are:
>
>Y2038 problem: 32-bit unix time goes negative.
>
>Y2069 problem (should really be Y2070): some systems use an RTC chip with
> a two-digit year, and offset that with an origin of 1970.
>
>Y2100 problem: there are STILL systems with two-digit years, that may
> fail after 2099. Also, 2100 is not a leap year, which will cause a
> problem for systems with poorly-written leap year code.
>
>Y2106 problem: 32-bit unix time wraps around completely (even if unsigned)
>
>Y3K (Y3000) problem: hypothetical, for systems with three-digit years. It
> would be nice to think that people wouldn't have solved the Y2K or Y2100
> problems by adding only a single digit to the year, but I wouldn't bet
> on it.
>
>
Jerome Fine replies:
Since your list starts with a unix problem followed by an RTC problem,
you might
consider looking more closely at RT-11 which is the target or goal of
the bug fixes
and enhancements that I have chosen.
If you completely accept the above paragraph, then please read further.
If not, then
I suggest that you do not bother since we will be looking at two
completely different
problems.
With regard to dates between 8999 and 9999, please carefully read (f)
below to
understand that changes to the Calendar may be required which probably
can't be
predicted at present - which is why you have not heard of any problems
for those
years - but it may be possible to define a range of possible solutions
so that a table
can be set up to allow for future changes to a modified Common Era
Calendar which
minimizes the drift just as changes between the Julian Calendar and the
Gregorian
Calendar minimized the drift in 1582 AD.
As I have noted before, I have not found anyone else interested in
fixing bugs and
making enhancements to RT-11, so I suggest that if it is not done now,
it may never
be done. As far a bug fixes are concerned, there are at least two which
cause RT-11
to crash and many others which are annoying. As for enhancements, there
are many
already available for hobby use, but it seems that most individuals
interested in the
PDP-11 just want to use the hardware as opposed to the software.
(a) Prior to V05.07 (released by Mentec almost 10 years ago in 1998),
most versions
of RT-11 (and specifically the official versions released by DEC) were
able to handle
years from 1973 to 1999. This included V05.06 released by DEC in 1992
even though
some other operating system for the PDP-11 were being made Y2K compliant
and the
extent of the effort to make V05.06 fully Y2K compliant would have been
much less
than the extra work to move from V05.05 of RT-11 to V05.06 of RT-11.
(b) Since I was requested to produce a Y2K compliant version from
V05.04G of RT-11,
I have a fairly good estimate of just how much effort was needed to make
V05.06 of RT-11
Y2K compliant. For example, MACRO.SAV requires about a dozen
instructions. Other
utilities require more, but the job is not that difficult.
(c) A Y2K compliant version of RT-11 easily handles all dates from 1972
to 2099 by using
2 extra bits in the date value to add an additional 96 years from 2003
to 2099 - which the
original RT-11 was able to handle, but did not have the code to display
from 2000 to 2003.
V05.07 of RT-11 is able to handle ALL years from 1972 to 2099 which
means that the
next date which requires changes is 2100.
(d) I have requested suggestions in respect of the extra capacity
required for dates in RT-11
beyond 2099, but have not received a response. The usual answer is that
we will not be
around to see the problem, so let someone else think about and fix it.
(e) As soon as there is even just one more bit allocated in RT-11 for
additional years beyond
2099 (and probably a complete 16 bit word is obviously far more
reasonable rather than doing
the job one step at a time), the storage location is the only serious
problem. Fortunately, RT-11
already has that aspect well in hand for file directories, the only real
question being how to notify
the programs that the storage location is being used. I propose to
address this question by using
a single bit in an appropriate location to specify that the required
storage location is present at a
pre-defined address (one address in the fixed offsets and a second
address or actually offset in
the words used for each file label in file directories) so that the year
field is then expanded from
7 bits to 23 bits. I further propose that the use of the extra 16 bits
be defined in a manner which
results in the current 7 bits being unchanged for the years 1972 to 2099
and that all current versions
of RT-11 be able to run as is for years for which they are designed with
the understanding that
a Y9K compliant version of RT-11 be able to handle dual or mixed use
(with regard to the date)
file directories.
(f) The other rather even more nasty problem is that the rule based
Common Era (aka Gregorian)
Calendar has a non-zero drift over the next few thousand years which may
dramatically increase
after about 4000 years around 6000 CE. Should there be adjustments to
the rules to keep the
drift to less than a day or two, then it is likely that within about
2000 years, the rules about which
years have a leap day are most likely to see 4000 CE NOT be a leap year
- all current data being
applicable. This assumes that global warming does not change the
rotational period of the Earth
sufficiently to cause significant (one day every 400 years would be
extremely significant) changes
in the number of days per year which is currently approximately 365.2422
days for the Mean
Northward Equinoctial Year (to specify just one of the many possible
average values for the
length of a year). The rule based (i.e. observations are not used)
Common Era Calendar is
exactly 365.2425 days per year (= 365 97/400) since every fourth year is
a leap year except
century years which are not evenly divisible by 400. This causes a
drift of about one day per
3000 years. How this problem will be resolved in the future need not be
addressed right now,
but perhaps it might be at least possible to consider the options before
there is the actual need
to address the problem. In any case, and whatever the solution, this
paragraph is the reason
that I see no point in a Y10K solution. Y9K will be more than
sufficient for RT-11 until the
questions addressed by this paragraph are considered and at least
partially resolved although
if the length of the year remains at least 365 days, it may be possible
to add the the rules and
set up a table for future years if the changes are clearly defined.
I would appreciate comments on these RT-11 proposals for a Y9K compliant
version of RT-11
which specifically address the above (a) through (f), but not limited to
them.
Sincerely yours,
Jerome Fine
--
To obtain the actual e-mail address, please remove
the ten characters immediately following the 'at'.
next prev parent reply other threads:[~2008-03-21 0:48 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-12 21:11 RT-11 Bug Fixes and Enhancements Jerome H. Fine
2008-03-15 0:16 ` Eric Smith
2008-03-16 12:35 ` Jerome H. Fine
2008-03-17 6:16 ` Howard S Shubs
[not found] ` <m3fxulalao.fsf@Claudio.Messina>
2008-03-20 20:00 ` Eric Smith
2008-03-21 0:48 ` Jerome H. Fine [this message]
2008-03-21 23:38 ` Eric Smith
2008-03-23 13:01 ` Jerome H. Fine
2008-03-31 21:28 ` Douglas A. Gwyn
2008-04-02 1:36 ` Jerome H. Fine
2008-03-25 3:17 ` Mark L Pappin
2008-03-26 1:49 ` Jerome H. Fine
2008-03-21 1:22 ` Douglas A. Gwyn
2008-03-21 3:45 ` Jerome H. Fine
2008-03-22 2:29 ` Douglas A. Gwyn
2008-03-23 13:02 ` Jerome H. Fine
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox