User: Password:
|
|
Subscribe / Log in / New account

Of bytes and encoded strings

Of bytes and encoded strings

Posted Jan 23, 2014 7:45 UTC (Thu) by dgm (subscriber, #49227)
In reply to: Of bytes and encoded strings by HelloWorld
Parent article: Of bytes and encoded strings

Text and bytes are different in the same sense that numbers and digits are. One is an abstract idea, the other a representation.

That doesn't preclude that you can manipulate digits to reach numerical results that are correct. Indeed, there's a science behind the manipulation of digital representations that is the base for the _power_ of our digital computers.


(Log in to post comments)

Of bytes and encoded strings

Posted Jan 23, 2014 10:16 UTC (Thu) by Jonno (subscriber, #49613) [Link]

> Text and bytes are different in the same sense that numbers and digits are. One is an abstract idea, the other a representation.

Not quite. Text and *characters* share an equivalent relationship as numbers and digits.

However, as computers can only really work with numbers, each *character* is encoded using one or more *code points*, which in turn is encoded by one or more *bytes*.

> That doesn't preclude that you can manipulate digits to reach numerical results that are correct.

Well, the equivalent here would be to manipulating *characters* to reach textual results that are correct. And while it is certainly possible to go down even further (to code points, or even bytes), that would be more like doing math by describing how to move the ink on the paper.

Of bytes and encoded strings

Posted Jan 24, 2014 10:49 UTC (Fri) by jezuch (subscriber, #52988) [Link]

> Well, the equivalent here would be to manipulating *characters* to reach textual results that are correct. And while it is certainly possible to go down even further (to code points, or even bytes), that would be more like doing math by describing how to move the ink on the paper.

Or at least all the way to the axioms of the set theory.

{∅, {∅}} + {∅, {∅}}, anyone? ;)

Of bytes and encoded strings

Posted Jan 24, 2014 13:43 UTC (Fri) by HelloWorld (guest, #56129) [Link]

> {∅, {∅}} + {∅, {∅}}
{∅, {∅}, {∅, {∅}}, {∅,{∅},{∅, {∅}}}}

:-)


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds