afunms

My Software,My Dream—Forge a more perfect NMS product.

bit&byte

在工作中遇到一些概念模糊的地方, 需要记住:

bit 为“位”或“比特”,是计算机运算的基础;
byte 为“字节”,是计算机文件大小的基本计算单位;
octet 为八位组,八比特组。

因此:
1 byte = 8 bits
octet = byte

-------------

I did not receive much feedback on this issue, and what I did receive
went both ways.

I've given it a lot of thought and have decided to stick to *-byte in
the names as there is simply no advantage in changing to octet.  In
this day and age "byte" is universally accepted as being 8 bits and
any argument that it could be misinterpreted is simply not realistic.
"octet" on the other hand is a less well known term used primarily by
network engineers and in RFCs, and could be confusing to those not
familiar with it who may wonder how you intend to pull eight musicians
out of a port.  Programming libraries and APIs almost universally use
"byte" and so newcomers are likely to be more comfortable with this.

In a nutshell, you could argue forever either way, but as this is a
library for programmers and the most well known programming term is
"byte," including specific precedence in Lisp and Scheme functions of
the same name, I'm going to stick with "byte."

posted on 2008-05-04 13:14 afunms 阅读(178) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

My Links

News

留言簿(18)

随笔档案

相册

搜索

最新评论

阅读排行榜