Thought Y2k was bad ? Wait till 2038

OT: anything goes!

Moderator: Edi

User avatar
Sarevok
The Fearless One
Posts: 10681
Joined: 2002-12-24 07:29am
Location: The Covenants last and final line of defense

Thought Y2k was bad ? Wait till 2038

Post by Sarevok »

If you are a C/C++ programmer like me chances are you already know this. Regardless I will repeat it for folks who do not know.

The C Runtime uses the time_t structure which is actualy a long integer that stores the number of seconds passed since midnight Jan 1st, 1970. Since an long int is 32 bits time_t maxes out at 2147483643 seconds. That is 68 years or in other words added to 1970 in the year 2038. That means we will be in big trouble if the C runtime library is not updated before that.
Good luck and see you in 2038 !
I have to tell you something everything I wrote above is a lie.
User avatar
BoredShirtless
BANNED
Posts: 3107
Joined: 2003-02-26 10:57am
Location: Stuttgart, Germany

Post by BoredShirtless »

Don't panic, they will be updated.
User avatar
Sarevok
The Fearless One
Posts: 10681
Joined: 2002-12-24 07:29am
Location: The Covenants last and final line of defense

Post by Sarevok »

BoredShirtless wrote:Don't panic, they will be updated.
Of course the C run time library will be be improved over time, it has been happening since the early eighties. However this particular bug was spotted around mid nineties. Those of you who use microsoft tools will be aware of several articles in developer magazines mentioning it. But so far
nothing has happened.

In reality C will inevitiably be replaced with something better by 2038 so there is a very good chance that no one will suffer from this bug.
I have to tell you something everything I wrote above is a lie.
User avatar
zombie84
Jedi Knight
Posts: 872
Joined: 2002-09-15 03:40pm
Location: toronto, Canada

Post by zombie84 »

isnt this the same problem that time travelling guy who claimed to be from the future was talking about?
I'll swallow your soul!
User avatar
Tribun
Jedi Council Member
Posts: 2164
Joined: 2003-05-25 10:02am
Location: Lübeck, Germany
Contact:

Post by Tribun »

Does it mean that all stuff, that is written in C ist then virually useless rubbish, to be kicked into the trash bin? Whow. All old Data is then lost forever, right?
User avatar
BoredShirtless
BANNED
Posts: 3107
Joined: 2003-02-26 10:57am
Location: Stuttgart, Germany

Post by BoredShirtless »

Tribun wrote:Does it mean that all stuff, that is written in C ist then virually useless rubbish, to be kicked into the trash bin? Whow. All old Data is then lost forever, right?
The problem is in the time.h library. If your program uses this library, all you gotta do is install the new library and recompile.
User avatar
Andrew J.
Sith Marauder
Posts: 3508
Joined: 2002-08-18 03:07pm
Location: The Adirondacks

Post by Andrew J. »

Does anyone even use C/C++ anymore? :?
Don't hate; appreciate!

RIP Eddie.
User avatar
BoredShirtless
BANNED
Posts: 3107
Joined: 2003-02-26 10:57am
Location: Stuttgart, Germany

Post by BoredShirtless »

Andrew J. wrote:Does anyone even use C/C++ anymore? :?
Yes.
User avatar
Tribun
Jedi Council Member
Posts: 2164
Joined: 2003-05-25 10:02am
Location: Lübeck, Germany
Contact:

Post by Tribun »

BoredShirtless wrote:
Tribun wrote:Does it mean that all stuff, that is written in C ist then virually useless rubbish, to be kicked into the trash bin? Whow. All old Data is then lost forever, right?
The problem is in the time.h library. If your program uses this library, all you gotta do is install the new library and recompile.
Can you explain a bit, what this means, and what practically would fall under that?
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Tribun wrote:Can you explain a bit, what this means, and what practically would fall under that?
Most people don't bother writing their own code for getting time. They use a standard library (time.h) that is included with most compilers. An update of time.h and perhaps a bit of code editing is all that is needed to correct this, in theory.
User avatar
DPDarkPrimus
Emperor's Hand
Posts: 18399
Joined: 2002-11-22 11:02pm
Location: Iowa
Contact:

Post by DPDarkPrimus »

Andrew J. wrote:Does anyone even use C/C++ anymore? :?
*slaps Andrew J*

Sorry, I had to.
Mayabird is my girlfriend
Justice League:BotM:MM:SDnet City Watch:Cybertron's Finest
"Well then, science is bullshit. "
-revprez, with yet another brilliant rebuttal.
User avatar
Shinova
Emperor's Hand
Posts: 10193
Joined: 2002-10-03 08:53pm
Location: LOLOLOLOLOLOLOLOLOL

Post by Shinova »

Andrew J. wrote:Does anyone even use C/C++ anymore? :?
I believe IIRC that C/C++ is still THE language to use in game programming.
What's her bust size!?

It's over NINE THOUSAAAAAAAAAAND!!!!!!!!!
User avatar
Crayz9000
Sith Apprentice
Posts: 7329
Joined: 2002-07-03 06:39pm
Location: Improbably superpositioned
Contact:

Post by Crayz9000 »

It's also used in almost all application programming. Why, do you think that Microsoft would write Office in FORTRAN?
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
User avatar
Darth Wong
Sith Lord
Sith Lord
Posts: 70028
Joined: 2002-07-03 12:25am
Location: Toronto, Canada
Contact:

Post by Darth Wong »

Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
Image
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing

"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC

"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness

"Viagra commercials appear to save lives" - tharkûn on US health care.

http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
HemlockGrey
Fucking Awesome
Posts: 13834
Joined: 2002-07-04 03:21pm

Post by HemlockGrey »

Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
That's brilliant. You can rent some floorspace, I'll draw up the business cards, and we'll get someone else to tap out some random code-like shit.
The End of Suburbia
"If more cars are inevitable, must there not be roads for them to run on?"
-Robert Moses

"The Wire" is the best show in the history of television. Watch it today.
User avatar
Sea Skimmer
Yankee Capitalist Air Pirate
Posts: 37390
Joined: 2002-07-03 11:49pm
Location: Passchendaele City, HAB

Post by Sea Skimmer »

Darth Wong wrote:Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
It would probably sell better with a title like "Y2.038Kilo Protection Pro"
"This cult of special forces is as sensible as to form a Royal Corps of Tree Climbers and say that no soldier who does not wear its green hat with a bunch of oak leaves stuck in it should be expected to climb a tree"
— Field Marshal William Slim 1956
Jim Raynor
Sith Devotee
Posts: 2922
Joined: 2002-07-11 04:42am

Post by Jim Raynor »

Darth Wong wrote:Let's start selling some "Y2038 protection" software to scan systems for the outdated time.h library in order to rip off, er... "help protect" users.
Just wondering, what the hell was on that bogus software anyway? I remember right before 2000 came my parents got some of that crap, which I never bothered installing, not that I needed to. It had to be able to do something, right?
User avatar
Drooling Iguana
Sith Marauder
Posts: 4975
Joined: 2003-05-13 01:07am
Location: Sector ZZ9 Plural Z Alpha

Post by Drooling Iguana »

Andrew J. wrote:Does anyone even use C/C++ anymore? :?
For that, you must die.
Image
"Stop! No one can survive these deadly rays!"
"These deadly rays will be your death!"
- Thor and Akton, Starcrash

"Before man reaches the moon your mail will be delivered within hours from New York to California, to England, to India or to Australia by guided missiles.... We stand on the threshold of rocket mail."
- Arthur Summerfield, US Postmaster General 1953 - 1961
User avatar
The Cleric
BANNED
Posts: 2990
Joined: 2003-08-06 09:41pm
Location: The Right Hand Of GOD

Post by The Cleric »

Since we have 35 more years before we have to worry about this, I hope that MS will be able to fix what would be a real problem. BTW, did ANYTHING happen with Y2K? It just sort of went away.
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}
User avatar
Crayz9000
Sith Apprentice
Posts: 7329
Joined: 2002-07-03 06:39pm
Location: Improbably superpositioned
Contact:

Post by Crayz9000 »

StormTrooperTR889 wrote:BTW, did ANYTHING happen with Y2K? It just sort of went away.
Most of the problems were extremely minor. Only those people still running ancient 1970s-era mainframes had to worry about catastrophic failures, really.
A Tribute to Stupidity: The Robert Scott Anderson Archive (currently offline)
John Hansen - Slightly Insane Bounty Hunter - ASVS Vets' Assoc. Class of 2000
HAB Cryptanalyst | WG - Intergalactic Alliance and Spoof Author | BotM | Cybertron | SCEF
User avatar
The Cleric
BANNED
Posts: 2990
Joined: 2003-08-06 09:41pm
Location: The Right Hand Of GOD

Post by The Cleric »

What organization could possibly get away with 70's mainframes?
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}
User avatar
aphexmonster
Jedi Council Member
Posts: 1668
Joined: 2003-04-12 10:42pm
Location: Sacramento
Contact:

Post by aphexmonster »

DPDarkPrimus wrote:
Andrew J. wrote:Does anyone even use C/C++ anymore? :?
*slaps Andrew J*

Sorry, I had to.

Seriously, the baby jesus still rocks C++
-monster
my sig is totaly lonely now =(
User avatar
2000AD
Emperor's Hand
Posts: 6666
Joined: 2002-07-03 06:32pm
Location: Leeds, wishing i was still in Newcastle

Post by 2000AD »

StormTrooperTR889 wrote:What organization could possibly get away with 70's mainframes?
Pity it wasn't Microsoft.
Ph34r teh eyebrow!!11!Writers Guild Sluggite Pawn of Chaos WYGIWYGAINGW so now i have to put ACPATHNTDWATGODW in my sig EBC-Honorary Geordie
Hammerman! Hammer!
User avatar
The Cleric
BANNED
Posts: 2990
Joined: 2003-08-06 09:41pm
Location: The Right Hand Of GOD

Post by The Cleric »

Oh, that wouldn't have been pretty. The whole MS company crashing?
{} Thrawn wins. Any questions? {} Great Dolphin Conspiracy {} Proud member of the defunct SEGNOR {} Enjoy the rythmic hip thrusts {} In my past life I was either Vlad the Impaler or Katsushika Hokusai {}
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

StormTrooperTR889 wrote:What organization could possibly get away with 70's mainframes?
Major financial institutions.
Post Reply