Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #2853
| From | Kaz Kylheku <480-992-1380@kylheku.com> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Re: Are compiler developers light-years ahead of other software development? |
| Date | 2022-01-22 03:01 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <22-01-083@comp.compilers> (permalink) |
| References | <22-01-059@comp.compilers> |
On 2022-01-16, Roger L Costello <costello@mitre.org> wrote: > Are compiler developers light-years ahead of other software development? I'd say it's pretty impressive how, say, the Google Assistant can speak completely naturally (and in multiple languages). I mean, details like intonation across entire sentences and such; nothing "robot-like". Fantastic advances have been done in computer graphics in the last 30 years. Compilers don't all use fancy algorithms, or not all of them. Fancy algorithms are specialized, optimized (in particular ways) solutions to problems that have other solutions that are pedestrian. Sometimes the other solutions are actually faster on your input cases. None of the buzzwords you mentioned related to parsing are needed in building a compiler: grammars, LL, LR, first() function, following() function, parsing tables, etc. All that goes away if you write recursive descent parser. The grammar is then in the documentation and code comments only, and somewhat expressed in its code structure. There is no LR, first or follow, no tables. The GNU C++ compiler, undeniably a production compiler and a major/known/widely-used one, has a big recursive-descent parser maintained by hand: over a megabyte of code. In other words, a major compiler for probably the programming language with the most complicated syntax ever, eschews pretty much all that we have learned and accumulated about parsing between around 1968 and now. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal [In principle a r-d parser recognizes an LL(1) grammar, in practice people often cheat a little. -John]
Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar
Are compiler developers light-years ahead of other software development? Roger L Costello <costello@mitre.org> - 2022-01-16 14:36 +0000
Re: Are compiler developers light-years ahead of other software development? Philipp Klaus Krause <pkk@spth.de> - 2022-01-16 22:13 +0100
Re: Are compiler developers light-years ahead of other software development? gah4 <gah4@u.washington.edu> - 2022-01-17 07:14 -0800
Re: Are compiler developers light-years ahead of other software development? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2022-01-19 21:33 +0000
Re: Are compiler developers light-years ahead of other software development? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-01-22 03:01 +0000
Re: Are compiler developers light-years ahead of other software development? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2022-01-22 10:43 +0000
Re: Are compiler developers light-years ahead of other software development? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-01-22 21:38 +0000
Re: Are compiler developers light-years ahead of other software development? Roger L Costello <costello@mitre.org> - 2022-01-22 12:50 +0000
Re: Are compiler developers light-years ahead of other software development? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-01-22 21:22 +0000
Re: Are compiler developers light-years ahead of other software development? Ian Lance Taylor <ianlancetaylor@gmail.com> - 2022-01-22 15:40 -0800
Re: Are compiler developers light-years ahead of other software development? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-01-23 06:17 +0000
csiph-web