r/AskComputerScience • u/No_Necessary_9267 • 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.
View all comments
Show parent comment
1
u/UncleMeat11 Jun 30 '26
No. It is a theoretical principle. There are 2N binary strings of length N. This larger than the number of binary strings of length 1..N-1. This means that you cannot have a compression scheme that shrinks all binary strings.
Lossless compression algorithms are extremely well understood. You can look up extremely basic ones online (run length encoding is what they typically teach students first).