| Deutsch English Français Italiano |
|
<66ea8196$1@news.ausics.net> View for Bookmarking (what is this?) Look up another Usenet article |
Date: Wed, 18 Sep 2024 17:30:30 +1000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Avoid treating the stack as an array [Re: "Back & Forth" is back!] Newsgroups: comp.lang.forth References: <nnd$61e0ad9a$48ed61c2@b4d945e456041481> <vasqjd$icjm$1@dont-email.me> <66d26c4b$1@news.ausics.net> <vaubf7$tbke$1@dont-email.me> <nnd$04cff141$0193ba04@301336b8dd8ed69a> <vbfqnd$v4c4$1@dont-email.me> <nnd$26b4d59b$27bdb181@ce638e508b04426e> <87bk0vbvgk.fsf@nightsong.com> <66e0fa58$1@news.ausics.net> <66e11d64$1@news.ausics.net> <877cbh4b6z.fsf@nightsong.com> <2024Sep12.105526@mips.complang.tuwien.ac.at> <87seu01zbj.fsf@nightsong.com> <2024Sep16.182651@mips.complang.tuwien.ac.at> <66ea4436$1@news.ausics.net> <874j6d1pw8.fsf@nightsong.com> Content-Language: en-GB From: dxf <dxforth@gmail.com> In-Reply-To: <874j6d1pw8.fsf@nightsong.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit NNTP-Posting-Host: news.ausics.net Message-ID: <66ea8196$1@news.ausics.net> Organization: Ausics - https://newsgroups.ausics.net Lines: 29 X-Complaints: abuse@ausics.net Path: ...!news.misty.com!weretis.net!feeder9.news.weretis.net!news.bbs.nz!news.ausics.net!not-for-mail Bytes: 2872 On 18/09/2024 3:39 pm, Paul Rubin wrote: > dxf <dxforth@gmail.com> writes: >> ...Moore has never changed his position, switched his tune, introduced >> locals and mega-compilers - as the latter do today in an attempt to >> maintain the interest, maintain a following. > > Weren't we just quibbling about small (few percent) efficency > differences between using locals and using stack words? You get far > greater efficiency gains by using optimizing compilers. If you feel > like the optimizing compiler is needless bloat and want to use an > interpreter instead, that's fine, it just means that (like most of us), > you've found that code speed isn't that important for whatever you're > doing. Stephen Pelc posted a few days ago that in the past decade, his > customers have stopped asking for faster code. > > I think that is a better takeaway than "well we can give up the > optimizing compiler, because using stack words instead of locals > recovers a few percent of the lost speed". I think we're retreading old ground. Orders of 30% reduction in code size were in respect of optimizing compilers (VFX). It's consistently the case. There may be less to gain for floating point but even there locals don't have much over globals. Can't speak for MPE customers but neither can I ignore what I see. I can assure you I don't find using stack operators a burden. Indeed I find them reassuring as it puts me in control. Forth is a niche language. If there's success to be had, it will be on its own merits and not ideas imported from other languages.