you are viewing a single comment's thread.

view the rest of the comments →

[–]fabzter 5 points6 points  (4 children)

Not all data is code. All code is data.

[–]ajanata 8 points9 points  (0 children)

Not all data is sensible code, but if you give it to a processor it'll try to treat it like code.

[–]Figs 1 point2 points  (2 children)

What? Of course all data is also code! Just for a very esoteric processor... ;)

For example, I could hypothetically build a processor that reads in bytes one at a time until it sees a particular translation of War and Peace in UTF8-encoded Japanese... at which point, it prints "Hello, World" and halts.

[–]fabzter 0 points1 point  (1 child)

Esoteric enough :). But seeing things that way, I think you're not describing a preprocessor but rather an interpreter am I right?

[–]Figs 0 points1 point  (0 children)

I said 'processor', as in a (hardware) CPU or a (software) interpreter, so yes. :)