Harvey (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
December 05, 2011, 09:33:40 PM |
|
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
What is a signed int and why should they be unsigned, according to Satoshi?
|
|
|
|
btc_artist
Full Member
Offline
Activity: 154
Merit: 102
Bitcoin!
|
|
December 05, 2011, 09:37:16 PM |
|
A signed integer can be either negative or positive (- or +), such as 55 and -55. An unsigned int can only be positive. If you only need to deal with positive numbers, you should use unsigned ints because the maximum integer number the type can hold will be twice as much as a signed int.
|
BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
|
|
|
theymos
Administrator
Legendary
Offline
Activity: 5348
Merit: 13336
|
|
December 05, 2011, 11:54:26 PM |
|
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.
Am I the only one who finds this quote funny? Maybe it needs more context.
|
1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
|
|
|
dree12
Legendary
Offline
Activity: 1246
Merit: 1077
|
|
December 06, 2011, 12:06:02 AM |
|
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.
Am I the only one who finds this quote funny? Maybe it needs more context.
I found it funny, but that's because I have background in Unix timekeeping and C jargon. I assume the average person doesn't have this knowledge, and therefore it would not make sense to them.
|
|
|
|
dark_st3alth
Newbie
Offline
Activity: 33
Merit: 0
|
|
December 06, 2011, 02:50:06 AM |
|
A signed integer can be either negative or positive (- or +), such as 55 and -55. An unsigned int can only be positive. If you only need to deal with positive numbers, you should use unsigned ints because the maximum integer number the type can hold will be twice as much as a signed int.
Correct. We could get into the amount of values it can hold, but that maybe a little more advanced (like a 64 bit unsigned integer).
|
|
|
|
BTCurious
|
|
December 06, 2011, 03:20:34 AM |
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+ Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4= =scw1 -----END PGP SIGNATURE-----
|
|
|
|
btc_artist
Full Member
Offline
Activity: 154
Merit: 102
Bitcoin!
|
|
December 06, 2011, 04:55:39 AM |
|
@BTCurious It took me 2 full seconds to get it. I can't believe it took that long! Good job. Would buy again.
|
BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
|
|
|
ineededausername
|
|
December 07, 2011, 12:04:25 AM |
|
It's the "within the next 25 years" part that makes the quote funny. Representing time with a signed int doesn't become a problem for a long time, so Satoshi was being sarcastic.
Am I the only one who finds this quote funny? Maybe it needs more context.
I found it funny, but that's because I have background in Unix timekeeping and C jargon. I assume the average person doesn't have this knowledge, and therefore it would not make sense to them. I also found it funny. Doesn't need more context right now, but maybe when "commoners" adopt Bitcoin...
|
(BFL)^2 < 0
|
|
|
antihexe
Newbie
Offline
Activity: 18
Merit: 0
|
|
December 08, 2011, 02:57:32 AM |
|
I wonder if he'll ever become more public about his identity. Certainly, at the very least, he's a funny guy.
|
|
|
|
finway
|
|
December 08, 2011, 08:16:45 AM |
|
I don't get it
|
|
|
|
SomeoneWeird
|
|
December 08, 2011, 08:18:04 AM |
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+ Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4= =scw1 -----END PGP SIGNATURE-----
hahahaahahahahah
|
|
|
|
JusticeForYou
VIP
Sr. Member
Offline
Activity: 490
Merit: 271
|
|
December 08, 2011, 08:30:16 AM |
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+ Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4= =scw1 -----END PGP SIGNATURE-----
Theymos a little humorous, but (±1) for BTCurious
|
|
|
|
. ..1xBit.com Super Six.. | ▄█████████████▄ ████████████▀▀▀ █████████████▄ █████████▌▀████ ██████████ ▀██ ██████████▌ ▀ ████████████▄▄ ███████████████ ███████████████ ███████████████ ███████████████ ███████████████ ▀██████████████ | ███████████████ █████████████▀ █████▀▀ ███▀ ▄███ ▄ ██▄▄████▌ ▄█ ████████ ████████▌ █████████ ▐█ ██████████ ▐█ ███████▀▀ ▄██ ███▀ ▄▄▄█████ ███ ▄██████████ ███████████████ | ███████████████ ███████████████ ███████████████ ███████████████ ███████████████ ███████████▀▀▀█ ██████████ ███████████▄▄▄█ ███████████████ ███████████████ ███████████████ ███████████████ ███████████████ | ▄█████ ▄██████ ▄███████ ▄████████ ▄█████████ ▄██████████ ▄███████████ ▄████████████ ▄█████████████ ▄██████████████ ▀▀███████████ ▀▀███████ ▀▀██▀ | ▄▄██▌ ▄▄███████ █████████▀ ▄██▄▄▀▀██▀▀ ▄██████ ▄▄▄ ███████ ▄█▄ ▄ ▀██████ █ ▀█ ▀▀▀ ▄ ▀▄▄█▀ ▄▄█████▄ ▀▀▀ ▀████████ ▀█████▀ ████ ▀▀▀ █████ █████ | ▄ █▄▄ █ ▄ ▀▄██▀▀▀▀▀▀▀▀ ▀ ▄▄█████▄█▄▄ ▄ ▄███▀ ▀▀ ▀▀▄ ▄██▄███▄ ▀▀▀▀▄ ▄▄ ▄████████▄▄▄▄▄█▄▄▄██ ████████████▀▀ █ ▐█ ██████████████▄ ▄▄▀██▄██ ▐██████████████ ▄███ ████▀████████████▄███▀ ▀█▀ ▐█████████████▀ ▐████████████▀ ▀█████▀▀▀ █▀ | . Premier League LaLiga Serie A | . Bundesliga Ligue 1 Primeira Liga | | . ..TAKE PART.. |
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
|
December 08, 2011, 12:33:30 PM |
|
int prob_of_overflow ( myAge , actuarial.lifeTable )
|
|
|
|
payb.tc
|
|
December 08, 2011, 12:53:19 PM |
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJO3YnoAAoJEFonJil8Kq9nW50H/RXpag1ZM9Yz9w1l/JDBa+tc vA/VyZFRQbo2f+H+6TuQ7iFjgCraOuT6CUkRwpkXMw2cJ0ofD87ftnayLM7SxKH+ Xey8APQV7Vm3yXYKH7tDGcXuo9DrQLpT0pKkTuWmoOwH884evhDOVHPm1ev/lGot lXARdBb6Jf1ANdaeOP22RxWL97UxZWF0ePvN0z3bPNehza/sHqmOlXdiETAjkiKy juaQ6TdfhBFuhNY0QY50R9HEItkwG+69H2dguV3B472cjHcHvv5bUCTrK8wPCwhw up/5WEsW56lv6e06mU4r0XNGTkAzQ5B5AgTLHTdMvUMabZ4Lfygzy7+5jU/QhJ4= =scw1 -----END PGP SIGNATURE-----
i found another one:
|
|
|
|
BTCurious
|
|
December 08, 2011, 12:55:14 PM |
|
i found another one:
|
|
|
|
btc_artist
Full Member
Offline
Activity: 154
Merit: 102
Bitcoin!
|
|
December 08, 2011, 01:42:35 PM |
|
I found another one too!
|
BTC: 1CDCLDBHbAzHyYUkk1wYHPYmrtDZNhk8zf LTC: LMS7SqZJnqzxo76iDSEua33WCyYZdjaQoE
|
|
|
deepceleron
Legendary
Offline
Activity: 1512
Merit: 1036
|
|
December 08, 2011, 02:05:46 PM |
|
I don't get it It's a lame joke, to use an alternate meaning of "signed" integers, besides "to include the negatives of non-zero natural numbers".
|
|
|
|
terrytibbs
|
|
December 08, 2011, 02:14:18 PM |
|
I found another one too!
pic
No! That's a framed int.!
|
|
|
|
notme
Legendary
Offline
Activity: 1904
Merit: 1002
|
|
December 08, 2011, 08:03:14 PM |
|
I don't get it It's a lame joke, to use an alternate meaning of "signed" integers, besides "to include the negatives of non-zero natural numbers". If only signed ints included the negatives of all non-zero natural numbers.....
|
|
|
|
notme
Legendary
Offline
Activity: 1904
Merit: 1002
|
|
December 08, 2011, 08:03:57 PM |
|
I found another one too!
pic
No! That's a framed int.! It's signed too.
|
|
|
|
|