Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: bart Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Tue, 22 Apr 2025 02:24:22 +0100 Organization: A noiseless patient Spider Lines: 35 Message-ID: References: <87ecxmv4t4.fsf@nosuchdomain.example.com> <20250420200823.908@kylheku.com> <20250421113640.839@kylheku.com> <20250421125957.29@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 22 Apr 2025 03:24:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="d044c27b80dbbae3d03ebae8688adc0f"; logging-data="3587799"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4q2f/oJ+1m8YwkxUkbwAo" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:6iWbRVZYTLh9xj7+DcHEC7Q3RaA= Content-Language: en-GB In-Reply-To: Bytes: 2932 On 22/04/2025 02:06, Waldek Hebisch wrote: > bart wrote: >> On 21/04/2025 21:25, Kaz Kylheku wrote: >>> On 2025-04-21, bart wrote: >>>> On 21/04/2025 19:43, Kaz Kylheku wrote: >>>>> On 2025-04-21, bart wrote: >>>>>> On 21/04/2025 04:16, Kaz Kylheku wrote: >>>>>>> - Because they are not gathered in one place, not only is it less> >>>>>> readable, but we cannot use while write a macro such as: >>>>>>> >>>>>>> for_sqlite_hash (p, &pSchema->trigHash) { >>>>>>> if (some_condition_over(p)) >>>>>>> continue; // doesn't stupidly repeat for the same p! >>>>>>> } >>>>>> >>>>>> I can't write such macros at all. I'm not even sure what this does. >>>>> >>>>> Have you never worked with a large codebase written by someone other >>>>> than you? >>>> >>>> How large are we talking about? >>> >>> Several 100K to millions. >> >> Characters, lines or files of source code, or bytes of binary? > > I would say lines of code. In modern time 1 million characters > codebase is not big. I hope that we are not in era of 1 million > files codebases, but who knows, we may be there in few years. I think it was 20 years ago that I read somewhere that the MS Visual Studio codebase was 1.5 million files. IIRC, it took 11 hours to build, non-optimised, and 60 hours optimised.