|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 -- Is this accurate?... it seems like a bunch over what it should be... just wondering... |
|
#2
|
||||
|
||||
|
Re: Dumb question...
Were you guys really that desperate on weight this year?
If so, when in doubt, more 0's and fewer 1's. ![]() |
|
#3
|
||||
|
||||
|
Re: Dumb question...
Quote:
lol... ya thats a good idea our weight wasn't an issue this year, i was just curious and bored |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
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. --Ryan |
|
#6
|
||||
|
||||
|
Re: Dumb question...
Ah, but which actually weighs more, a 1 or a 0? If you go with historical precedence (i.e. back to the punchcard days), I believe a "0" was unpunched and a "1" was punched, which means that a 0 weighs more than a 1.
|
|
#7
|
||||
|
||||
|
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. ![]() |
|
#8
|
|||||
|
|||||
|
Re: Dumb question...
Zeros must weigh more - they're fatter.
(Hey, I resemble that shape) ![]() |
|
#9
|
|||
|
|||
|
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
. |
|
#10
|
|||
|
|||
|
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 ![]() Quote:
![]() |
|
#11
|
||||
|
||||
|
Re: Dumb question...
I can't help myself.... A CHARGED CAP WEIGHS THE SAME AS A DISCHARGED CAP!! I've heard the same logic used incorrectly to explain that a dead battery weighs less than a fresh battery. CAP's store PE by separating charge, not storing one type of charge!! Ok, I'll leave it alone and not return... the teacher has left the room.
|
|
#12
|
|||||
|
|||||
|
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. |
|
#13
|
||||
|
||||
|
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 |
|
#14
|
||||
|
||||
|
Re: Dumb question...
Quote:
|
|
#15
|
||||
|
||||
|
Re: Dumb question...
wow... i never expected this thread to pick up... but then again here it goes... first teams suprise me everyday...
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| so i have a dumb | ringo115 | Programming | 2 | 12-02-2009 23:31 |
| dumb question: Where do we get the gear tooth sensors from? | waialua359 | Programming | 6 | 30-01-2007 22:45 |
| Dumb (but important to me) Question! | cdennisxlx2 | Programming | 4 | 23-03-2006 14:18 |
| Dumb question about wiring custom controls | Adam Y. | Electrical | 1 | 18-02-2005 22:57 |
| A Truly Dumb Idea...or is it? | Ken Loyd | General Forum | 12 | 09-11-2002 21:15 |