Monday, May 24, 2010

I am no wizz with coding, but I do have a new theory?

My theory is that, if you have a file, it is coded deep down in binary, and farther down, into electrical pulses and transmissions and what not. Now my theory is that, if say you had a song which its binary code was "101010000101010010" and made a completely new file out of that code, would it be a exact copy of that file?

I am no wizz with coding, but I do have a new theory?
Yes, it would. The binary code would be WAY longer than that though, I'm assuming you just put it there as an example...
Reply:yes. that's not really a theory. that's the basic principle of file transfer on computers.
Reply:YES!!!





The reason your computer works is because of several electrical "switches" called transistors (go ahead, wiki it). It is convenient to call "no voltage" 0 and "voltage" 1, and it is also simple to do arithmetic with these bits (Binary digITS, Binary meaning "two states"). The proccessor handles these bits and performs simple arithmetic on them, like ADD, SHIFT, STORE, and JUMP.





Files are collections of bits stored on your hard drive, which explains why they have sizes in MB, KB, and so on (a byte is usually 8 bits, a DECIMAL number range 0-255, a KILOBYTE (KB) is 1024 of those, a MEGABYTE (MB) is 1024 kilobytes, a GIGABYTE (GB) is 1024 megabytes, and a TERABYTE (TB) is 1024 gigabytes). When a copy operation is performed, an underlying DOS (Disk Operating System) copy.exe command is made, and the EXACT CONTENTS of the file are stored in a new location, along with a new FAT (File Allocation Table) enftry being made to designate the new file on your system.





There is one more place where these work. The web browser you're running right now, the program running behind this, and your OS itself all have one thing in common: they use RAM. This is a temoprary place that everything is loaded so that the proccessor can actually do operations on it. This includes all running programs and their data.





And all of this works together so you can see this :).





I've barely scratched the surface. You can look into this with a lot more detail. Just do your research.





(PS, 101010000101010010 is only a couple bytes, most songs are HUNDREDS OF THOUSANDS of bytes long.)
Reply:If you go deep enough then no, they are not IDENTICAL. On magnetic media the strength of the recording may vary a small amount , and on a cd or dvd there may be microscopic differnces in the laser engraving. Functionally though the sound you hear from a music file will be indistinguishable .


At the level of 1 or 0 it will be the same .


No comments:

Post a Comment