Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Mark Carroll Newsgroups: comp.programming Subject: Re: 64-bit bytes Date: Mon, 12 Jan 2015 12:36:55 +0000 Organization: none Lines: 28 Message-ID: <874mrwmazc.fsf@ixod.org> References: <1d1b426e-452d-43ac-a15d-31dff9833370@googlegroups.com> <442bffa5-0e87-4924-a8e2-19dc69236183@googlegroups.com> <07379e64-43df-4e01-9506-fee7d5f56c80@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="1b3e5cba9e4d07a53741e6f3d1717925"; logging-data="11348"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GjK7oKSw14zzioZHzcreI" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:O2ecWc/tUFR8b60QPzppB6ZtC4I= sha1:cPafKNjVop7Ik3U06XXNnslcz/o= Xref: csiph.com comp.programming:5096 BartC writes: > On 12/01/2015 11:59, Richard Heathfield wrote: (snip) >> and (b) hampers our ability to describe alternative computer architectures. >> What advantage does this restriction give us that compensates for the loss >> of flexibility? > > We already have 'word' for that, where you generally need to qualify its > size, outside of a specific context such as a language. (snip) Exactly. For instance, Erlang, being designed to run on various odd computer architectures, lets one ask, erlang:system_info(wordsize) which is documented as, ] Returns the size of Erlang term words in bytes as an integer, i.e. on ] a 32-bit architecture 4 is returned, and on a pure 64-bit architecture ] 8 is returned. which clearly implies 8-bit bytes. (Erlang's other memory queries tend to be in terms of words.) -- Mark