Negative v. Positive numbers in debug panel

Hi There,

Is there a reason why positive numbers are handled differently than negative number:

Screen Recording 2025-12-08 at 11.56.54

Here I could still have a negative hexadecimal, a negative date makes no sense. Howabout adding binary and octadecimal represenation to the toggling?

Just wondering whether that would be useful.

Cheers!

+1 from me.

Yes, because a positive number of a certain size could be a Date, a negative number could not (well, probably isn't anyway).

But I agree, it would be better to be consistent.

for a negative hex number do you assume 16, 32 or 64 bit etc. How many F's do you want :slight_smile:

"-" + abs(NUM).toHex().toString()

I'm sure that somewhere, in some obscure corner of someones developer mind, an implementation was created were a negative number are the milliseconds BEFORE epoch - how do we represent dates before 1.1.1970? asked the product manager .... it was late on a Friday evening .... it was dark and stormy ... well the rest is history.

EDIT: Well I guess it was once dark and stormy at IBM :wink:

Screen Recording 2025-12-08 at 15.26.23

having commented out a few minor restrictions on integer values .... -1 suddenly becomes 1969-12-31 23:59:59 - for those born before epoch, a happy day! :slight_smile:

1 Like

On September 9, 1947, at 15:45 Eastern Daylight Saving Time, Grace Hopper debugged the Harvard computer.

I think the timestamp for this moment is -252457650000
Or possibly not, since I asked AI to work it out.

It is believed that other things happened prior to 1st Jan 1970 too.

1 Like

If you allow -ve dates, are you not causing the world to end after only half of its intended lifetime.

Screen Recording 2025-12-08 at 15.37.00

apparently not.

No, before that date, everything was in black and white and computers were merely lots of well-trained ants inside a case! :rofl: That's what my kids think anyway.

I did caveat that statement though. Anyway, I did also agree that they should be the same.

I thought the world DID actually end when the first AI was turned on - we are all just a simulation of our previous selves now which is why the world no longer makes any sense! :wink:

couple days ago, there was an article over at HN that physicists just proved that we are not living in a simulation. So in the words of Douglas Adams: "We have reality. I repeat, we have reality. Anything you still can't cope with is therefore your own problem."

Anyway got what I wanted - binary & octa:

Screen Recording 2025-12-08 at 16.03.11

LMFTFY
a simulation of our previous slaves now

Ah, but that's what the AI's WANT you to think! :rofl:

Thin ice, very thin ice ---> Roko's basilisk :wink: