4/6 I wonder how many bugs will come out once time hits 0xDEADBEEF?
\_ 0xFEEDFACE of 0xCAFEBEEF with 0xDEADBABE
\_ the fun one will be sep 9 2001. the ascii representation of
a time_t will roll from 999999999 to 1000000000, and thousands
of lazy perl hacker code will sort lexicographically and launch
the nukes. --aaron
\_ Damn, why the hell do people (like the guy below) like to tab
so far out. What I'm curious about is what will happen to
computers once 2^32 seconds have passed by since 1970 (which
should happen around the year 2106). What will happen then?
Will the world predict a Y2.106K bug that will end the world
again?
\_ I thought that time_t wraps around in 2037.
Anyway, if we are still alive we should all
be using 128 bit or larger processors if not
quantum computers, meaning that time_t won't
wrap for several billion years (?).
\_ you must have this much clue to post to the
motd...
Hey wait, how did you get there. Go back to
your basement or something and stop talking outta
your ass.
\_ It doesn't seem likely that lazy perl code would do this;
if you are using "<" and ">" perl will treat the scalars as
numbers. You'd have to be explicitly using "gt". -tom
\_ He said sort. Perl sort defaults to cmp, not <=>.
--dbushong
\_ (why does this keep getting deleted?) 0xdeadbeef is a negative number
for signed 32-bit ints. 0xdeadbeaf refers to sometime in 1952.
for signed 32-bit ints. 0xdeadbeef refers to sometime in 1952.
\_ What's so special about 1952? Was that the year dead beef
was invented?
\_ No, that's what you get when you take 0xdeadbeaf and convert it
to a signed decimal (-559038737), and add that many seconds to
Jan 1, 1970. That's about 17 years and change. Hence 1952.
\_ well duh. I got that part. I'm saying what's so special
about 1952? That's like saying that 0xF00DF00D will take
us back 1879961613 seconds putting us 59 years back from
1970. Who cares?
\_ So what was the question? Do you really believe that
there was some cosmic conspiracy to choose Jan 1 1970 so
that 0xdeadbeef would be sometime in 1952? What are you
asking then?
\_ What's so special about 1921? Was that the year food
food was invented? |