Article View: comp.arch
Article #105Re: Optimization by programmers
From: Anton Ertl
Date: Wed, 14 Oct 2026 08:50
Date: Wed, 14 Oct 2026 08:50
21 lines
2523 bytes
2523 bytes
anton@mips.complang.tuwien.ac.at (Anton Ertl) writes: >What would have been more in line with >practice is to define a word 1950.0 which does what writing 1950.0 >without such a word does (if the BASE is right): to push a double-cell >number 19500. ... >EPOCH still might have been a better name, though. One possible reason for not calling it EPOCH would be that the programmer noticed that there were many uses of 1950.0 around the source code and then decided to save memory by defining a named word 1950.0. Calling that word EPOCH would have required to search and replace all occurences of 1950.0, and who knows what editing tools the programmers had at their disposal (probably the classic Forth block editor, which I have never used); in any case, calling the word 1950.0 avoided the need for this step. - anton -- 'Anyone trying for "industrial quality" ISA should avoid undefined behavior.' Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID:
<2026Oct14.105043@mips.complang.tuwien.ac.at>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<1177fdi$26ea4$1@dont-email.me> <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me> <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <11aiqc0$3kr94$3@dont-email.me> <2026Oct12.191033@mips.complang.tuwien.ac.at> <nj6aehFiusqU1@mid.individual.net> <2026Oct13.122712@mips.complang.tuwien.ac.at> <nj76d2FnesuU1@mid.individual.net> <2026Oct14.100238@mips.complang.tuwien.ac.at>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: anton@mips.complang.tuwien.ac.at (Anton Ertl) Newsgroups: comp.arch Subject: Re: Optimization by programmers Date: Wed, 14 Oct 2026 08:50:43 GMT Organization: Institut fuer Computersprachen, Technische Universitaet Wien Lines: 21 Message-ID: <2026Oct14.105043@mips.complang.tuwien.ac.at> References: <1177fdi$26ea4$1@dont-email.me> <11a6870$41j$1@reader2.panix.com> <11a6a6h$37i1n$1@dont-email.me> <1791742457-5857@newsgrouper.org> <11agm4p$2tfut$1@dont-email.me> <11ahs8q$38ir0$4@dont-email.me> <11aig3c$3hdcn$1@dont-email.me> <11aiqc0$3kr94$3@dont-email.me> <2026Oct12.191033@mips.complang.tuwien.ac.at> <nj6aehFiusqU1@mid.individual.net> <2026Oct13.122712@mips.complang.tuwien.ac.at> <nj76d2FnesuU1@mid.individual.net> <2026Oct14.100238@mips.complang.tuwien.ac.at> Injection-Date: Wed, 14 Oct 2026 08:56:59 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1317364"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ZnjVwjapeU955FHLuO2UN"; posting-host="4798f8a33d7cba4f1cfb66046bec21f9" Cancel-Lock: sha1:d7ATzfD9JjyLpC8HuIsCqYX8OSY= sha256:suQzPW1APGqcs21n1yXrZ6gDX11E7xmAs8I+anoC3/M= sha1:9ygbiOG8ikbppFIxa/DWSnOdvls= sha256:2eKLW+OkjlNxWvnJpAeLFYQ/sFZIkLwl1L1Gm94DEWM= X-newsreader: xrn 10.11