Path: csiph.com!xmission!usenet.csail.mit.edu!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: These days what percentage of a CPU's work involves doing arithmetic computations versus other, non-arithmetic computations? Date: Thu, 15 Jul 2021 22:02:58 +0200 Organization: Compilers Central Lines: 21 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <21-07-008@comp.compilers> References: <21-07-004@comp.compilers> <21-07-006@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="28306"; mail-complaints-to="abuse@iecc.com" Keywords: arithmetic, architecture Posted-Date: 15 Jul 2021 16:05:20 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <21-07-006@comp.compilers> Content-Language: de-DE Xref: csiph.com comp.compilers:2680 On 7/15/21 11:31 AM, gah4 wrote: > On Wednesday, July 14, 2021 at 12:42:37 PM UTC-7, Roger L Costello wrote: >> I look at what I now do on a daily basis with computers and it is primarily >> text processing. My guess is that "text processing" at the machine level >> mostly means doing comparisons and moving things into and out of >> memory/registers; that is, not much in the way of arithmetic computations. Is >> that correct? > > Good text processing is reasonably numeric intensive. TeX uses dynamic > programming to find the optimal line breaking points on a page. Much arithmetic is required for rendering glyphs on screen, depending on fonts, text attributes etc. That's true already for a browser, no need to ask for an editor or sophisticated text processing system. An editor does not much computation, it mostly fits together updated text snippets. Together with an Undo function this results in a list of changes that are fixed only when the text is saved to disk again. DoDi