![]() |
Dumb question...
Does anyone know the actual comparative weight of lines of code?
yes i mean the weight of the little electrons and such i heard someone else say in another thread -- Quote:
|
Re: Dumb question...
Were you guys really that desperate on weight this year? :rolleyes:
If so, when in doubt, more 0's and fewer 1's. :P |
Re: Dumb question...
Quote:
lol... ya thats a good idea our weight wasn't an issue this year, i was just curious and bored |
Re: Dumb question...
Discover magazine did an article several years ago, called "How much does the internet weigh?". In the article, they assumed that a zero weighed nothing, and a one weighed however many electrons it took to store that value on a mempry chip. If I remember correctly, all the data on the internet weighed way less than one billionth of an ounce.
OH look, here's the article! Forgive any misrepresentations, I didn't re-read the article, and I may have mis-remembered the facts. |
Re: Dumb question...
Perhaps getting a bit more technical than is necessary, it's interesting to note that spaces themselves have no effect on 'weight' in compiled code. Whitespace characters [spaces, tabs, newlines (except in certain circumstances/languages)], along with comments, are thrown away by the Lexer, the part of the compiler that is responsible for taking the source code and turning it into a sequence of tokens, which is basically each word or symbol that appears in the source file. (Unless of course you're actually programming in White Space) Extra lines of code, however, may (in most cases yes, but they may actually get optimized away by the compiler) add 'weight' to the final compiled program. In order to control what may be written as 0s or 1s, however, you'll have to go to a lower level, in assembly code.
But seeing as each electron is 9.109 E−31 kg, you'd probably get more benefit with one pass of a metal file somewhere discrete. :rolleyes: --Ryan |
Re: Dumb question...
Quote:
|
Re: Dumb question...
Quote:
I think if we had to have computers requiring punch cards on our robots, we might have bigger weight issues to worry about, though. :rolleyes: |
Re: Dumb question...
Zeros must weigh more - they're fatter.
(Hey, I resemble that shape) :p |
Re: Dumb question...
so hypothetically speaking what would you do if your robot was so close to weight and everything physical was done away with until it was just structurally stable. And the weight of your code mattered:eek:.
|
Re: Dumb question...
Actually I believe 1s are heavier since a one represents a charged capacitor.
*read the article that was linked above* I'm not THAT geeky :p Quote:
|
Re: Dumb question...
Quote:
|
Re: Dumb question...
Quote:
Now, if you consider that the entire universe is made of math, then you can imagine how much data we're all messing with every day. |
Re: Dumb question...
Quote:
Actually I have no idea what the answer is. Here's an interesting concept however: If you pick up enough static from the regolith, can you get enough weight in extra electrons to give you a significant advantage over the competition? That all assumes you're not actually losing electrons to the floor instead... --Ryan |
Re: Dumb question...
Quote:
|
Re: Dumb question...
wow... i never expected this thread to pick up... but then again here it goes... first teams suprise me everyday...
|
Re: Dumb question...
I calculated the weight of our code which ended up being 2.4164*10 ^ -18 pound according to the above article. And yes I had to do it.
|
Re: Dumb question...
What they should take into account is the weight of all of the storage devices for all of that data!!! Hard drives and such!!!! we might come up with a tiny bit of a bigger number!!!!:rolleyes:
|
Re: Dumb question...
Quote:
Believe me --- on this I'm not clueless ![]() |
Re: Dumb question...
Check it out. I've hit virtual wonderland.
A very happy unbirthday to you all. I'm going to open some bills now and get back in touch with reality now.... |
Re: Dumb question...
Quote:
Quote:
![]() |
Re: Dumb question...
Quote:
|
| All times are GMT -5. The time now is 13:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi