Comment on “All files are numbers” by Eric

I mean, that's one way to interpret a collection of bits. But why limit yourself to just that one? If you're concerned about leading zeroes then incorporate them in your numbering scheme:

Number | Bits 0 | 0 1 | 1 2 | 00 3 | 01 4 | 10 5 | 11 6 | 000 7 | 001 8 | 010 9 | 011 10 | 100 ...

Now every time you add a 0 to either side it's a different number, so 1 != 01 != 001.

I happen to like the idea that all files are numbers and wrote an article about it as well:github.com/ThePoetCoder/EssenceAndExpre...blob/main/Essence and Expression.ipynb

The truth is these bits are just as much numbers as they are files as they are whatever any one of us sees of significance inside them.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论