Go to Post Andy Baker told me this one: "Do what people wouldn't talk about when you win the nationals."- Nuff Said - Matt Attallah [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-03-2009, 17:01
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
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:
Originally Posted by DeepWater View Post
Each space = ~0.0001327 oz.


Is this accurate?... it seems like a bunch over what it should be... just wondering...
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
Reply With Quote
  #2   Spotlight this post!  
Unread 19-03-2009, 17:09
tim_reiher's Avatar
tim_reiher tim_reiher is offline
Cornell 2014!
FRC #0571 (Team Paragon)
Team Role: Mechanical
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Ithaca, NY
Posts: 413
tim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nice
Send a message via AIM to tim_reiher
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.
__________________


Today's words of advice- "don't try to broach through your finger". Nothing good can really come of it.
Check out our really new website!
Reply With Quote
  #3   Spotlight this post!  
Unread 19-03-2009, 17:12
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
Re: Dumb question...

Quote:
Originally Posted by tim_reiher View Post
Were you guys really that desperate on weight this year?


If so, when in doubt, more 0's and fewer 1's.

lol... ya thats a good idea

our weight wasn't an issue this year, i was just curious and bored
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
Reply With Quote
  #4   Spotlight this post!  
Unread 19-03-2009, 18:34
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 720
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
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.
__________________
Former Mentor Team 1771
Former mentor Team 4509
Reply With Quote
  #5   Spotlight this post!  
Unread 19-03-2009, 18:45
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
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
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #6   Spotlight this post!  
Unread 19-03-2009, 19:32
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Dumb question...

Quote:
Originally Posted by tim_reiher View Post
If so, when in doubt, more 0's and fewer 1's.
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.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
Reply With Quote
  #7   Spotlight this post!  
Unread 19-03-2009, 20:25
tim_reiher's Avatar
tim_reiher tim_reiher is offline
Cornell 2014!
FRC #0571 (Team Paragon)
Team Role: Mechanical
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Ithaca, NY
Posts: 413
tim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nicetim_reiher is just really nice
Send a message via AIM to tim_reiher
Re: Dumb question...

Quote:
Originally Posted by ay2b View Post
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.
Hmm... interesting point...

I think if we had to have computers requiring punch cards on our robots, we might have bigger weight issues to worry about, though.
__________________


Today's words of advice- "don't try to broach through your finger". Nothing good can really come of it.
Check out our really new website!
Reply With Quote
  #8   Spotlight this post!  
Unread 19-03-2009, 20:31
GaryVoshol's Avatar
GaryVoshol GaryVoshol is offline
Cogito ergo arbitro
no team
 
Join Date: Aug 2005
Rookie Year: 2000
Location: Royal Oak, MI
Posts: 5,747
GaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond reputeGaryVoshol has a reputation beyond repute
Re: Dumb question...

Zeros must weigh more - they're fatter.

(Hey, I resemble that shape)
__________________
(since 2004)
Reply With Quote
  #9   Spotlight this post!  
Unread 19-03-2009, 23:13
Creator Mat Creator Mat is offline
Registered User
FRC #2338 (Gear it Forward)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Aurora Illinois
Posts: 178
Creator Mat is a jewel in the roughCreator Mat is a jewel in the roughCreator Mat is a jewel in the roughCreator Mat is a jewel in the rough
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.
__________________

2010 Midwest Spirit award
2010 Midwest Quarterfinalists
2010 Wisconsin Quarterfinalists
2009 Midwest Finalists
2009 Wisconsin Quarterfinalists
2008 Midwest Rookie AllStars
Reply With Quote
  #10   Spotlight this post!  
Unread 19-03-2009, 23:20
Jibs Jibs is offline
Registered User
FRC #2506 (Saber Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Wisconsin
Posts: 8
Jibs is an unknown quantity at this point
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:
Originally Posted by Creator Mat View Post
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.
Just another thing we can blame programmers for
Reply With Quote
  #11   Spotlight this post!  
Unread 20-03-2009, 00:07
Doug G's Avatar
Doug G Doug G is offline
Coach / Teacher
FRC #0701 (Robovikes)
Team Role: Coach
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Fairfield, CA
Posts: 879
Doug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond repute
Re: Dumb question...

Quote:
Originally Posted by Jibs View Post
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

Just another thing we can blame programmers for
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.
__________________
Work Hard, Have Fun, Make a Difference!

Reply With Quote
  #12   Spotlight this post!  
Unread 20-03-2009, 00:23
Nate Laverdure's Avatar
Nate Laverdure Nate Laverdure is offline
Registered User
FRC #2363
Team Role: Coach
 
Join Date: Apr 2005
Rookie Year: 1999
Location: Newport News, VA
Posts: 832
Nate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond reputeNate Laverdure has a reputation beyond repute
Re: Dumb question...

Quote:
Originally Posted by martin417 View Post
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.
I remember enjoying that article immensely when I first read it. If you follow the figures published there, you'll find that data weighs 6.4 * 10^-31 oz per kilobyte. This means you'll need about 1.5 * 10^21 terabytes of 1s and 0s to have an ounce of data. Interestingly, this article provides further figures and even suggests that the entire internet weighs about two ounces.

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.
Reply With Quote
  #13   Spotlight this post!  
Unread 20-03-2009, 00:28
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Dumb question...

Quote:
Originally Posted by Doug G View Post
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.
But what happens if it's not actually a capacitor, but a piece of NAND Flash memory using quantum tunnel injection?

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
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
Reply With Quote
  #14   Spotlight this post!  
Unread 20-03-2009, 09:19
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Dumb question...

Quote:
Originally Posted by RyanCahoon View Post
But what happens if it's not actually a capacitor, but a piece of NAND Flash memory using quantum tunnel injection?

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
If you lose that much weight in electrons, you had better be prepared for one heluva static shock when you pick up the robot again.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
Reply With Quote
  #15   Spotlight this post!  
Unread 20-03-2009, 18:46
xnaut's Avatar
xnaut xnaut is offline
Team 79 KRUNCH
AKA: Patrick Thompson
FRC #0079 (TEAM KRUNCH)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: East Lake High School
Posts: 46
xnaut is a jewel in the roughxnaut is a jewel in the roughxnaut is a jewel in the rough
Send a message via AIM to xnaut
Re: Dumb question...

wow... i never expected this thread to pick up... but then again here it goes... first teams suprise me everyday...
__________________
Shirley you cant be serious...
Of course i am... and don't call me Shirley
_____________________________________________
TEAM KRUNCH 79
CLEARWATER FL
_____________________________________________
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 13:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi