r/AskComputerScience • • Jun 30 '26

Machine language binary folding?

Been learning a bit about basic foundational computer hardware’s interactions with instruction data. Like, machine language instructions.

More specifically, I came across this whole rabbithole about data compression. Theoretically, there shouldn’t be a limit to how much we can compress data; accepting that quality may be lost… etc, etc.. Also at some point it will probably cost more energy to decode super heavy compressed data than is relatively necessary.

Right, so unrelated, a little while back, I was looking into the concept of protein folding and how instructions are encoded into proteins relating to biology.

My question is: hypothetically, theoretically, could we “fold” binary machine language instructions like nature does with proteins? Would it even be practical?

Can anyone provide any resources related?

(If relevant: Kindly, I won’t click links. If it’s a paper, tell me the name and author please.) thanks.

0 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/WoodyTheWorker Jul 05 '26

Suppose you're compressing messages N bit long. There are 2N of such distinct messages. If you compress without loss (can always recover the original source from the compressed message), it means there are also 2N of such distinct compressed messages. This means that every compressed message cannot be less than N bits long. If some messages are shorter than N bits, there must be some that are longer than N bits.