|
|
|
 |

May 8th, 2001, 04:19 PM
|
 |
National Security Advisor
|
|
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
|
|
Re: Could someone explain:
Kilo,
If we assume that Lenny's first number (280Kb)is correct then the second number (70Mb) is also correct.
I'll admit it blew me away at first, but think of it like this. If 280Kb is correct for a galaxy with 255 systems, then simple division gives us a little more than 1Kb per system on average. If we then go to an 18-bit number that allows 65,000 systems  then simple multiplication of a 1Kb per system times 65k systems gives us 65Mb of memory.
What I would like to know is, in my ignorance of computer programming, are if an 8-bit number is too small, is 16-bit our next option? Is not there some number in between we could use? If not I am sure he could use a 16-bit number, and then hard code some logical limit to the number of systems, say 1000 or somethhing like that that would keep the mem usage to a reasonable level.
Geo
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
|

May 8th, 2001, 04:40 PM
|
Second Lieutenant
|
|
Join Date: Mar 2001
Location: Netherlands
Posts: 479
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Could someone explain:
quote: Originally posted by KiloOhm:
But we're not talking about combinations, we're talking about straight storage, right? Or did I miss the point entirely? 
in that i case i did mean combinations..
ok, i was a little vague when i posted this
quote:
...but suppose you use a 16 bit number for the systems instead of an 8 bit number...
what i meant was :
suppose you use a 16 bit number to define the number of systems instead of an 8 bit number...
you would then get 65536 systems max.
/ offtopic
quote: Posted by geoschmo:
If we assume that Lenny's first number
Lenny ??
[This message has been edited by LemmyM (edited 08 May 2001).]
[This message has been edited by LemmyM (edited 08 May 2001).]
__________________
[Boo!]
|

May 8th, 2001, 05:11 PM
|
 |
Sergeant
|
|
Join Date: Jan 2001
Location: Northern Virginia, United States
Posts: 203
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Could someone explain:
*zen reels from mathematical gymnastics*
I, um, like klausD's quadrant-jumping idea.
I wonder how hard it would be to code something like that?
zen
|

May 8th, 2001, 06:44 PM
|
 |
National Security Advisor
|
|
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
|
|
Re: Could someone explain:
Sorry Lemmy. Too many hours stuck in front of the screen playing Space Empires.
They say the eyes are the second thing to go, but I can't remember what the first was...
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
|

May 8th, 2001, 07:56 PM
|
Corporal
|
|
Join Date: Dec 2000
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Could someone explain:
Oh, I think it just clicked, you guys were talking about 16bits worth of systems (i.e. 8 bit = 256 systems and 16 bits = 65,000 systems which then makes sense to me on the exponential growth.
Thanks, I guess I just needed to read what you guys were saying but put in a differen't way.
I thought you meant keeping 256 systems constant, double the data word lengths used to keep track of all the variables in the system, which would only double the storage needed. Now I get it
quote: Originally posted by geoschmo:
Kilo,
If we assume that Lenny's first number (280Kb)is correct then the second number (70Mb) is also correct.
I'll admit it blew me away at first, but think of it like this. If 280Kb is correct for a galaxy with 255 systems, then simple division gives us a little more than 1Kb per system on average. If we then go to an 18-bit number that allows 65,000 systems then simple multiplication of a 1Kb per system times 65k systems gives us 65Mb of memory.
What I would like to know is, in my ignorance of computer programming, are if an 8-bit number is too small, is 16-bit our next option? Is not there some number in between we could use? If not I am sure he could use a 16-bit number, and then hard code some logical limit to the number of systems, say 1000 or somethhing like that that would keep the mem usage to a reasonable level.
Geo
__________________
Regards,
KiloOhm
|

May 8th, 2001, 08:21 PM
|
 |
General
|
|
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
|
|
Re: Could someone explain:
quote: What I would like to know is, in my ignorance of computer programming, are if an 8-bit number is too small, is 16-bit our next option? Is not there some number in between we could use? If not I am sure he could use a 16-bit number, and then hard code some logical limit to the number of systems, say 1000 or somethhing like that that would keep the mem usage to a reasonable level.
Since computers "think" in binary arithmetic, at the bit level everything is done in powers of 2. That's why a "kilobyte" is 1024 bytes rather than 1000, and a "megabyte" is 1048576 bytes (1024^2) rather than 1000000. I suppose in theory you could design hardware that used some intermediate value, but I don't know of any real-world examples where it's been done.
------------------
Cap'n Q
__________________
Cap'n Q
"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
|

May 8th, 2001, 09:58 PM
|
 |
Major
|
|
Join Date: Dec 2000
Location: Northern Virginia, USA
Posts: 1,048
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Could someone explain:
The reason we're stuck with either 8-bit or 16-bit numbers is that computers typically use either 1 byte or 2 byte registers to store numbers. 1 byte=8 bits, so 2 bytes=16 bits.
And, of course, those registers are independent of the actual programming language, since the higher-level programming language instructions are compiled into a set of machine instructions, which are based on the registers (and a few other things, but that's a different topic entirely).
As for why 1 byte = 8 bits, that's a matter for history buffs (hey, I'm only 31 years old, how should I remember the glory days of computing  ).
__________________
L++ Se+++ GdY $++ Fr C+++ Csc Sf Ai AuO M+ MpTM S Ss RRSHP+ Pw- Fq->Fq+ Nd+++ Rp G++ Mm++ Bb---
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|