It Made Sense in 1978
Programming in the 21st Century - James Hague - March 04, 2010Whenever I see this list of memory cell sizes, it strikes me as antiquated:
BYTE = 8 bits WORD = 16 bits LONG = 32 bits
Those names were standard for both the Intel x86 and Motorola 68000 families of processors, and it’s easy to see where they came from. “Word” isn’t synonymous with a 16-bit value; it refers to the fundamental data size that a computer architecture is built to operate upon. On a 16-bit CPU like the 8086, a word is naturally 16-bits.
Now it’s 2010, and it’s silly to think of a 16-bit value as a basic enough unit of data to get to the designation “word.” “Long” is similarly out of place, as 32-bit microprocessors have been around for over 25 years, and yet the standard memory cell size is still labeled in a way that makes it sound abnormally large.
The PowerPC folks got this right back in the early 1990s with this nomenclature:
BYTE = 8 bits HALFWORD = 16 bits WORD = 32 bits
That made sense in 1991, and it’s still rational today. (64-bit is now common, but the jump isn’t nearly as critical as it was the last time memory cell size doubled. The PowerPC name for “64-bits” is “doubleword.”)
Occasionally you need to reevaluate your assumptions and not just cling to something because it’s always been that way.
Categories: Blogs Programming in the 21st Century
Comments
На сайте компании “АВЕРС” http://www.aversnpk.ru/ представлена информация о фототерапевтических устройствах компании “АВЕРС”. Физиотерапевтические приборы компании: соска “Доктор Свет”, “АВЕРС-Душ”, “АВЕРС-Лайт”, “АВЕРС-Сан”. Соска “Доктор свет” - лечение ОРЗ, лечение ОРВИ у детей раннего возраста. Физиотерапевтический прибор “Доктор Свет” (патент № 55293) эффективен при лечении и профилактики ОРЗ, ОРВИ, лечении кашля.
Posted by avers on 05 Mar 2010 at 18:47http://www.web-bpro.ru/ Веб-студия “Бизнес-Профессионал” - создание интернет сайтов, создание интернет магазина по разумным ценам, быстро, качественно, профессионально. Создание интернет сайтов с индивидуальным дизайном сайта. Поддержка и продвижение сайта в интернете.
Компания Бизнес-Профессионал оказывает риэлторские услуги в сфере коммерческой недвижимости: аренда офисов, складов, магазинов в Москве. http://www.business-pro.ru/
I always just thought of a “word” as whatever the word size of a specific machine’s word was. So, machine specific, rather than being “right” or “wrong” if it’s different between machines.
Posted by Paul Bonser on 07 Mar 2010 at 01:32I agree that word size is machine specific, but it becomes language-specific once it’s in a language definition. In Java an int is defined as 32 bits, and a long as 64 bits. But now the computers I use most often are 64 bit machines, and so there is a case for considering an int 64 bits and for introducing a longlong type, though there is BigInteger. Changing the definition of int would introduce incompatibilities such as the C and C++ folks are used to. This isn’t an issue on planet Erlang, though, because the coupling between the integer type and the underlying architecture is weaker.
Posted by Jeff Martens on 09 Mar 2010 at 16:25
Add comment
Erlang on Twitter
» sugamasao (すがまさお): RT @higepon: Mio は Erlang で書きました。Erlang って実際どうよ?という方はコードを見てみると面白いかも。
» higepon (higepon): Mio は Erlang で書きました。Erlang って実際どうよ?という方はコードを見てみると面白いかも。
» repeatedly (tama (就職活動なう)): mio is a KVS written by Erlang…
» achonkgroup (M. Riza maulana): Dia anjing bukan? RT @dodiuchiha: erlang yg mata 3 cong RT @achonkgroup: Saya anjing donk?*sialan Haha” RT @dodiuchiha: siap dewa erlang hha
» dodiuchiha (dodi meidian k): erlang yg mata 3 cong RT @achonkgroup: Saya anjing donk?*sialan Haha” RT @dodiuchiha: siap dewa erlang hha RT @achonkgroup: Kalo panglima
» random_oracle (TELL): RT @higepon: Cybozu Open Source: Released ordered KVS Mio 0.0.1alpha http://ow.ly/2AlIR #erlang #kvs
» achonkgroup (M. Riza maulana): Saya anjing donk?*sialan Haha” RT @dodiuchiha: siap dewa erlang hha RT @achonkgroup: Kalo panglima tien feng berulah, bilang saya kakak2 sek
» dodiuchiha (dodi meidian k): siap dewa erlang hha RT @achonkgroup: Kalo panglima tien feng berulah, bilang saya kakak2 sekalian. Nanti saya laporkan dia ke khayangan RT
» takemaru_jp (Takeru INOUE): RT @higepon: Cybozu Open Source: Released ordered KVS Mio 0.0.1alpha http://ow.ly/2AlIR #erlang #kvs
» tnnrg (YAMAMOTO Hirotaka): RT @higepon: Cybozu Open Source: Released ordered KVS Mio 0.0.1alpha http://ow.ly/2AlIR #erlang #kvs
Statistics
Number of aggregated posts: 10081
Number of comments: 554
Most recent article: September 03, 2010
Latest comments
» Nissan Frontier Superchager on Erlang Doesn’t Fit The JVM: I don’t believe it is the silver bullet that fixes all the problems that required you to do your JVM tuning….Nissan Frontier Superchager
» Nissan Frontier Superchager on What to do About Erlang's Records?: The general solution is to delete all the keys that should have new values, then insert the new key/value pairs…
» videomob on Java And Threads (Jetty): Хватит спамить, накинулись