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

2

u/Beregolas Jun 30 '26

Again, I don't see how that is in any way folding. It does sounds familiar and touches on well known (like first semester) parts of information theory though.

Look into variable length encoding for one, and look up how zip file encoding works.

1

u/No_Necessary_9267 Jun 30 '26

I’m not sure folding is actually how anyone else would describe the process; it’s the connection I made in my head. That commenter nuclear_splines’ reply is roughly how I was thinking about it. I think encoding might be what I’m trying to say instead of compression. Thanks for the tips