## 2^x vs y*10^x

Post all other topics which do not belong to any other category.

## Which number system do you prefer to see in Factorio?

Power of 2 (2, 4, 8, 16, 32, 64, 128, 256, 512, etc.)
45
38%
Multiples of 10 (10, 20, 30, 40, 50, 100, 200, 300, 400, 500)
72
62%

Inserter
Posts: 43
Joined: Mon Apr 21, 2014 5:45 am
Contact:

### Re: 2^x vs y*10^x

Ohlmann wrote:
torham wrote:I am sure that nowadays the ^2 system is the basis of the arithmetic in the schools
it should be.

base ten is a stupid system when everything we do is in base 2, and is only converted to base 10, because us stupid humans understand it 'better'.

kinda like imperial in the USA. stupid.

ssilk
Global Moderator
Posts: 12262
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

### Re: 2^x vs y*10^x

Really?

I dont see any advantage in multiplying decimal 8 * 10 to binary 1000 * 1010. And with large numbers this gets really stupid.

decimal: 4984 * 29127 = 145168968

binary: 1001101111000 * 111000111000111 = 1000101001110001101001001000

I would kill every teacher, which forces me to write such long numbers.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

drs9999
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

### Re: 2^x vs y*10^x

pbhead wrote:base ten is a stupid system when everything we do is in base 2, and is only converted to base 10, because us stupid humans understand it 'better'.
Oh, I have missed something.

btw. after all the complains about the new y*10^x stacksizes I saw no post that suggests the complete conversion from decimal into binary or hexadecimal. I mean I expected at least one post if so many people love their "0's" and "1's"...

Ohlmann
Long Handed Inserter
Posts: 67
Joined: Tue Jun 10, 2014 11:22 am
Contact:

### Re: 2^x vs y*10^x

pbhead wrote: base ten is a stupid system when everything we do is in base 2, and is only converted to base 10, because us stupid humans understand it 'better'.
Since when we do anything in base 2 on a common basis ? That's only for thoses who deal with drivers or who realize processors. They are highly qualified but very few of them are needed.

The base 10 have an enormous advantage : the base is big enough to keep number short enough, but small enough to remember all digits easily. Other good options would be base 11 (primer number, useful for fractions) or 12 (because it's easily to divide by 2 and 3)

ssilk
Global Moderator
Posts: 12262
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

### Re: 2^x vs y*10^x

The story of the base systems is quite interesting. For example the octal: http://en.wikipedia.org/wiki/Octal

8 is also nice to calculate, some say a bit better like decimals. Babylonian had base 12.

But non ever came to the idea to use base 2 for numerations or calculations.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Gammro
Filter Inserter
Posts: 357
Joined: Wed Oct 09, 2013 1:45 pm
Contact:

### Re: 2^x vs y*10^x

ssilk wrote:But non ever came to the idea to use base 2 for numerations or calculations.
Well, someone did. Otherwise we wouldn't have binary or functional computers today

It just didn't become the mainstream standard.
Ignore this

MaxStrategy
Inserter
Posts: 49
Joined: Wed Feb 19, 2014 11:20 am
Contact:

### Re: 2^x vs y*10^x

The change to green, red, blue circuit boards is going to get some getting used to. And the new inserter colors are too close to one another, I feel. The original colors made the different inserter types stand more apart from each other. And speaking of colors, the new copper plates now look like slabs of meat now, for some reason, lol. I guess that's another thing I will just have to get used to. Ah well, sorry for the tangent!
Not counting some issues with trains my only complaint is the lack of unity between colors, as it seems a bit random now. Science packs go Red, Green, Blue, Purple in order of difficulty, while electronics go Green, Red, Blue, Belts go Yellow, Red, Blue, and inserters and other things also vary randomly. I feel like color coding should be in order of power with one or two colors set aside for unique attributes for example smart inserters and long-arm inserters.

Inserter
Posts: 43
Joined: Mon Apr 21, 2014 5:45 am
Contact:

### Re: 2^x vs y*10^x

Ohlmann wrote:
pbhead wrote: base ten is a stupid system when everything we do is in base 2, and is only converted to base 10, because us stupid humans understand it 'better'.
Since when we do anything in base 2 on a common basis ? That's only for thoses who deal with drivers or who realize processors. They are highly qualified but very few of them are needed.

The base 10 have an enormous advantage : the base is big enough to keep number short enough, but small enough to remember all digits easily. Other good options would be base 11 (primer number, useful for fractions) or 12 (because it's easily to divide by 2 and 3)
Since when do we do anything in base 2?!?!?

Your computer probably did more calculations in base 2 during the time over which you wrote that post than you have and will ever do in base 10 in your entire life!

Id wager that >99.9% of all calculations on this planet are done in base 2.

and yes, writing things out in binary would be kinda annoying and hard to read, thankfully, we have a shorthand, its called hexadecimal (base 16).

converting from hexadecimal to binary and back again is so amazingly easy it is not even funny.

Rahjital
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

### Re: 2^x vs y*10^x

It's kinda pointless to argue that a computer does calculations in base 2 when this thread is about calculations done by humans. Your computer won't care if stacks are base 2 or base 10. People, on the other hand, are the fastest in base 10 since it's the most commonly used system for counting, money transactions and other things done on daily basis.

drs9999
Filter Inserter
Posts: 831
Joined: Wed Mar 06, 2013 11:16 pm
Contact:

### Re: 2^x vs y*10^x

(The gesture is NOT meant offensive in any point)

torham
Fast Inserter
Posts: 187
Joined: Sun May 25, 2014 1:40 pm
Contact:

### Re: 2^x vs y*10^x

Since when do we do anything in base 2?!?!?

Your computer probably did more calculations in base 2 during the time over which you wrote that post than you have and will ever do in base 10 in your entire life!

Id wager that >99.9% of all calculations on this planet are done in base 2.

and yes, writing things out in binary would be kinda annoying and hard to read, thankfully, we have a shorthand, its called hexadecimal (base 16).

converting from hexadecimal to binary and back again is so amazingly easy it is not even funny.
Excellent. Well since you are so proficient with numbers and calculations in various base systems including hexa, it should be no problem for you to adapt to the new decimal stacks. I don't even know why you seem upset about the whole thing.

starxplor
Fast Inserter
Posts: 164
Joined: Sun May 18, 2014 11:25 pm
Contact:

### Re: 2^x vs y*10^x

Rahjital wrote:It's kinda pointless to argue that a computer does calculations in base 2 when this thread is about calculations done by humans. Your computer won't care if stacks are base 2 or base 10. People, on the other hand, are the fastest in base 10 since it's the most commonly used system for counting, money transactions and other things done on daily basis.
Not sure if it helps or hurts the arguement, but I do daily things in base 2... like chewing food...

I also used to get 2-dollar bills from the bank every so often. It confused a lot of cashiers who had to call over their managers.

Ric
Long Handed Inserter
Posts: 50
Joined: Tue May 13, 2014 8:49 am
Contact:

### Re: 2^x vs y*10^x

starxplor wrote:Not sure if it helps or hurts the arguement, but I do daily things in base 2... like chewing food...

I also used to get 2-dollar bills from the bank every so often. It confused a lot of cashiers who had to call over their managers.
You're just odd

I can't believe this topic is still going...lol..
"To the optimist, the glass is half full. To the pessimist, it's half empty. To the engineer, the glass is twice the size it needs to be"

hoho
Filter Inserter
Posts: 675
Joined: Sat Jan 18, 2014 11:23 am
Contact:

### Re: 2^x vs y*10^x

I'm a computer programmer both by profession and as a hobbyist and have been doing it for about 17 years or nearly 2/3'rds of my life so base2 is quite familiar to me.
Reading this thread it seems like pretty much all the complaints against base10 stack sizes boil down to people not liking the fact that stacks aren't exactly dividable by two.

I've never really seen a particular reason where I would have missed the ability to divide things exactly. Vast majority of the time I don't have full stacks of items in my inventory anyway so it doesn't matter how large the stack can be in the first place.

Someone mentioned earlier they needed to divide coal between 8 boilers. I'd like to know what is so bad about it if some boiler gets more or less coal than others? I would assume the person would try to get it automated ASAP anyway or at least go find some more fuel to insert there. Assuming this is early-game it's also more than likely that the player does not have a full stack of coal anyway. Not to mention it takes special planning to have 2^x inventories to split things between of.

TL:DR - seems like it's a problem only for OCD people but they can only come up with highly improbable scenarios where the stack size change would make any sense
Gammro wrote:
ssilk wrote:But non ever came to the idea to use base 2 for numerations or calculations.
Well, someone did. Otherwise we wouldn't have binary or functional computers today
Binary is used in computers only because it's significantly harder to implement anything else.

Though Intel did come up with tri-state transistor used inside their CPUs not too long ago so I guess for some parts they use ternary system

EDI
Inserter
Posts: 21
Joined: Thu Jun 12, 2014 11:38 am
Contact:

### Re: 2^x vs y*10^x

Unless base two has a significant advantage on filesize / RAM (such that 256 different values can be stored in a single byte only, rather than the 4(?) bytes of an unsigned int ranging up to almost 4.2 billion - so stack sizes won't really matter, since most players probably have yet to harvest 4.2 billion ores), I'd go with base ten, since everyone learns base ten in primary school. Yes, I do have a computer science background, and I'm fond of base two (binary watch, anyone?), but base ten is still easier on the eyes.

Summing up: If it helps performance, choose base 2. If it doesn't (and I think it doesn't, since it was quite easy for devs to edit the stacksize), I'd go with base 10.

hoho
Filter Inserter
Posts: 675
Joined: Sat Jan 18, 2014 11:23 am
Contact:

### Re: 2^x vs y*10^x

EDI wrote:Summing up: If it helps performance, choose base 2. If it doesn't (and I think it doesn't, since it was quite easy for devs to edit the stacksize), I'd go with base 10.
Fun fact:
performance-wise full register-sized variables (4 or 8 bytes on 32 or 64bit CPUs respectively) are generally faster to process than smaller ones. Only place where smaller-sized variables could be faster are in SIMD calculations but I'm almost certain those aren't used in Factorio.

Also using smaller variables could make getting data from RAM to cache/registers faster due to less cache misses but I would assume that active working set for average Factorio playthrough is minuscule and can fit entirely to cache on most CPUs.

I'm also almost certain that stack size was already stored as 4 byte integer and original stack size limitation of 256 was just a cosmetic choice.

Only place where optimizing for smaller variables could make sense is for network communications but I don't think it would make too big difference there either.

TL:DR
performance-wise there shouldn't be any difference what so ever.

Rahjital
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

### Re: 2^x vs y*10^x

starxplor wrote:Not sure if it helps or hurts the arguement, but I do daily things in base 2... like chewing food...
"Oh no, I forgot how to calculate the chewing position of my mouth, how am I going to eat now?"

"Simple, just repeatedly set the position of your mouth to the inverse bit of what it currently is!"
Ric wrote:I can't believe this topic is still going...lol..
Same here. At first, I avoided commenting here after my initial vote not to incite an argument, but, aside from hoho's educated guesswork, the thread has pretty much devolved into making fun of the issue. Chances are it's going to get a lock soon, much like the piracy thread did.
Last edited by Rahjital on Thu Jun 12, 2014 3:58 pm, edited 1 time in total.

ssilk
Global Moderator
Posts: 12262
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

### Re: 2^x vs y*10^x

pbhead wrote:Id wager that >99.9% of all calculations on this planet are done in base 2.
just wrong, cause 100% of all financial calculations are made with decimal numbers. http://en.wikipedia.org/wiki/Binary-coded_decimal
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

hoho
Filter Inserter
Posts: 675
Joined: Sat Jan 18, 2014 11:23 am
Contact:

### Re: 2^x vs y*10^x

ssilk wrote:
pbhead wrote:Id wager that >99.9% of all calculations on this planet are done in base 2.
just wrong, cause 100% of all financial calculations are made with decimal numbers. http://en.wikipedia.org/wiki/Binary-coded_decimal
Technically not all of the financial calculations are run on Power CPUs that have BCD in hardware so on hardware level most stuff is still done in binary

Sander Buruma
Fast Inserter
Posts: 100
Joined: Mon Jun 02, 2014 9:55 am
Contact:

### Re: 2^x vs y*10^x

hoho wrote:
ssilk wrote:
pbhead wrote:Id wager that >99.9% of all calculations on this planet are done in base 2.
just wrong, cause 100% of all financial calculations are made with decimal numbers. http://en.wikipedia.org/wiki/Binary-coded_decimal
Technically not all of the financial calculations are run on Power CPUs that have BCD in hardware so on hardware level most stuff is still done in binary
Technically maybe you should be a lawyer!