Working with Bits


#1

I have a question concerning computer logic, that is not necessarily attached to any one exercise. I know that binary is the sole language of computers, and that higher-level languages like Python or Ruby or HTML, or really any language taught here is compiled into binary. Does that mean that when we do these bit operators, because we are working directly with the bytes, it is universal? Could we enter these same codes into HTML, CSS, Ruby, and Python and get the same exact same result? Of course we would have to change the Python specific information with the other languages cognates, but are the actual parts with bits universal?


#2

If the other language is able to interpret the information in the same way, yes.


#3

Well, my question is "Can the other languages interpret the information the same way?"


#4

Most of them, yes, in my (though fairly limited) experience. The syntax to specify that the program should interpret them as bits changes by language, but the result is usually the same.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.