Powers of two
Jul. 3rd, 2008 11:41 pmI can't remember what made me think of this, but there's a bit in Snow Crash about powers of two, and I wondered if things had changed, and that people deal in higher level stuff than this these days. And it's just striking and a bit weird anyway that some people have had occasion to memorize this stuff, I wondered if you had...
[Poll #1217360]
Update: The "powers of two" are just 1+1 = 2, 2+2 = 4, 4+4 = 8, 8+8 = 16 and so on.
Update: it seems like it isn't clear from the above, so for the avoidance of doubt, no-one should feel that they should know this off by heart!
[Poll #1217360]
Update: The "powers of two" are just 1+1 = 2, 2+2 = 4, 4+4 = 8, 8+8 = 16 and so on.
Update: it seems like it isn't clear from the above, so for the avoidance of doubt, no-one should feel that they should know this off by heart!
It's easy
Date: 2008-07-03 10:55 pm (UTC)0x00000002
0x00000004
0x00000008
0x00000010
etc
;)
Re: It's easy
Date: 2008-07-04 02:42 am (UTC)?
Re: It's easy
From:no subject
Date: 2008-07-03 10:56 pm (UTC)no subject
Date: 2008-07-03 10:58 pm (UTC)no subject
Date: 2008-07-03 10:59 pm (UTC)no subject
Date: 2008-07-03 11:03 pm (UTC)(no subject)
From:(no subject)
From:no subject
Date: 2008-07-03 11:01 pm (UTC)no subject
Date: 2008-07-03 11:05 pm (UTC)no subject
Date: 2008-07-03 11:15 pm (UTC)no subject
Date: 2008-07-03 11:57 pm (UTC)no subject
Date: 2008-07-04 12:13 am (UTC)I note that right now the poll responses look like: 15, 7, 1. Which is nice.
But does anyone know 2^17?
no subject
Date: 2008-07-04 12:29 am (UTC)nota primeETA: arg, sorry, shouldn't make claims of (non) primality at 1h30AM.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2008-07-04 12:20 am (UTC)Textures for games usually have power-of-two resolutions, and that'd be at the silly end of the image-sizes I'm likely to touch.
(actually, 64x64 is a largish texture for the game I'm working on right now)
no subject
Date: 2008-07-04 12:24 am (UTC)no subject
Date: 2008-07-04 01:00 am (UTC)(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2008-07-04 03:04 am (UTC)1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 163oh dammit, 32768, 65536.
The others I can reel off like telephone numbers. Better change my vote.
no subject
Date: 2008-07-04 03:09 am (UTC)no subject
Date: 2008-07-04 09:04 am (UTC)no subject
Date: 2008-07-04 06:23 am (UTC)I was an oddity in high school - top sets for science (extra classes and everything!) and third set for maths. No one else was in anything less than top set for maths.
no subject
Date: 2008-07-04 09:06 am (UTC)(no subject)
From:(no subject)
From:no subject
Date: 2008-07-04 06:38 am (UTC)no subject
Date: 2008-07-04 07:52 am (UTC)no subject
Date: 2008-07-04 08:01 am (UTC)no subject
Date: 2008-07-04 08:22 am (UTC)But I do a lot more low-level stuff than most.
no subject
Date: 2008-07-05 12:34 am (UTC)(no subject)
From:no subject
Date: 2008-07-04 09:15 am (UTC)no subject
Date: 2008-07-04 09:30 am (UTC)no subject
Date: 2008-07-04 09:38 am (UTC)no subject
Date: 2008-07-04 09:40 am (UTC)no subject
Date: 2008-07-04 09:39 am (UTC)This leaves more room in my head for the important things, like what to have for breakfast.
no subject
Date: 2008-07-04 09:59 am (UTC)no subject
Date: 2008-07-04 11:56 am (UTC)Uploaded textures to Second Life are fitted by the system automatically into powers-of-two dimensions (128x512 and so on), so I do actually use them when making textures in graphics programs. But there's no way I'd need any bigger than 1024.
no subject
Date: 2008-07-04 12:52 pm (UTC)no subject
Date: 2008-07-04 12:57 pm (UTC)(no subject)
From: