Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #2607
| Path | csiph.com!xmission!news.alt.net!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end |
|---|---|
| From | gah4 <gah4@u.washington.edu> |
| Newsgroups | comp.compilers |
| Subject | Re: Algorithm Optimization |
| Date | Tue, 15 Sep 2020 22:25:33 -0700 (PDT) |
| Organization | Compilers Central |
| Lines | 42 |
| Sender | news@iecc.com |
| Approved | comp.compilers@iecc.com |
| Message-ID | <20-09-036@comp.compilers> (permalink) |
| References | <20-09-032@comp.compilers> <20-09-035@comp.compilers> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Injection-Info | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="69485"; mail-complaints-to="abuse@iecc.com" |
| Keywords | optimize, comment |
| Posted-Date | 16 Sep 2020 11:14:01 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 | <20-09-035@comp.compilers> |
| Xref | csiph.com comp.compilers:2607 |
Show key headers only | View raw
On Tuesday, September 15, 2020 at 7:24:11 PM UTC-7, Derek M. Jones wrote: > > I've been pursuing the idea of what I call algorithm optimization. It's > > the idea that algorithms coded by individuals may not be optimal, and > > may require refactoring / re-engineering to be made optimal based on > > what's trying to be achieved. > Compilers had done to death figuring out how best to optimize what > the developer wrote. The future is optimizing what they intended to write. (snip) > A while back I had the idea of trying to figure out what floating-point > calculation was being attempted, e.g., using a Taylor series when a Chebyshev > series would be more efficient. I think I remember this being discussed many years ago. One thought was that someone codes bubblesort, and the compiler generates quicksort. Small complication that bubblesort is stable, and quicksort isn't. (Add an array with the original position to break ties.) Now, say someone is doing their CS project for class, where they are supposed to write, and time, bubblesort? I suppose you can find a Chebyshev series that closely approximates the series coded, but takes fewer terms. But what about the person who wants to compare two series'? If you replace one or both, then the comparison will be wrong. Not that there haven't been problems since the beginning of optimizing compilers, where the results were different than expected. This is also reminding me of the optimizing compilers that figure out the whole result at compile time, much slower than it would be at run time. That one was from a benchmark program. [Back when people cared about Whetstone and Dyrystone benchmarks, compilers recognized code sequences from those benchmarks for, uh, special processing. But it doesn't generalize very well. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Algorithm Optimization "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2020-09-13 13:00 -0400
Re: Algorithm Optimization Elijah Stone <elronnd@elronnd.net> - 2020-09-14 20:47 -0700
Re: Algorithm Optimization "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2020-09-15 00:42 -0400
Re: Algorithm Optimization "Derek M. Jones" <derek@_NOSPAM_knosof.co.uk> - 2020-09-15 14:29 +0100
Re: Algorithm Optimization gah4 <gah4@u.washington.edu> - 2020-09-15 22:25 -0700
Re: Algorithm Optimization "Derek M. Jones" <derek@_NOSPAM_knosof.co.uk> - 2020-09-16 20:11 +0100
Re: Algorithm Optimization Richard Harnden <richard.nospam@gmail.com> - 2020-09-16 22:45 +0100
Re: Algorithm Optimization Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2020-09-17 06:35 +0200
Re: Algorithm Optimization "A. K." <minforth@arcor.de> - 2020-09-21 02:12 -0700
Re: Algorithm Optimization "Johann 'Myrkraverk' Oskarsson" <johann@myrkraverk.com> - 2021-04-21 16:29 +0000
Re: Algorithm Optimization "mwmarkland@gmail.com" <mwmarkland@gmail.com> - 2020-09-16 07:57 -0700
Re: Algorithm Optimization "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2020-09-16 11:44 -0400
Re: Algorithm Optimization gah4 <gah4@u.washington.edu> - 2020-09-16 13:59 -0700
Re: Algorithm Optimization Thomas Koenig <tkoenig@netcologne.de> - 2020-09-17 06:39 +0000
Re: Algorithm Optimization Hans-Peter Diettrich <DrDiettrich1@netscape.net> - 2020-12-13 23:13 +0100
Re: Algorithm Optimization gah4 <gah4@u.washington.edu> - 2020-12-20 22:45 -0800
csiph-web