Deutsch English Français Italiano |
<vrt2o3$27c13$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.lang.c Subject: Re: Suggested method for returning a string from a C program? Date: Mon, 24 Mar 2025 19:00:34 -0700 Organization: A noiseless patient Spider Lines: 68 Message-ID: <vrt2o3$27c13$1@dont-email.me> References: <vrd77d$3nvtf$2@dont-email.me> <20250319115550.0000676f@yahoo.com> <vreuj1$1asii$4@dont-email.me> <vreve4$19klp$2@dont-email.me> <20250319201903.00005452@yahoo.com> <86r02roqdq.fsf@linuxsc.com> <vrh1br$35029$2@dont-email.me> <LRUCP.2$541.0@fx47.iad> <vrh71t$3be42$1@dont-email.me> <874izntt5t.fsf@nosuchdomain.example.com> <vrhviu$h5c$1@dont-email.me> <87ecyrs332.fsf@nosuchdomain.example.com> <vri9t1$a29t$1@dont-email.me> <20250320171505.221@kylheku.com> <vrif1v$c9ev$3@dont-email.me> <8734f7rw7z.fsf@nosuchdomain.example.com> <vrjjvb$1esjh$1@dont-email.me> <87tt7mqk7w.fsf@nosuchdomain.example.com> <vrkvt5$2k04q$2@dont-email.me> <87cye9afl0.fsf@nosuchdomain.example.com> <vrmckn$114k$1@dont-email.me> <871puoag2q.fsf@nosuchdomain.example.com> <vrnoft$15f6n$1@dont-email.me> <vrspls$1ut9i$1@dont-email.me> <vrsur4$22oc6$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 25 Mar 2025 03:00:35 +0100 (CET) Injection-Info: dont-email.me; posting-host="5e2174216670af0d17933d91728d06f2"; logging-data="2338851"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/p1Eyz8eOConoZkSR+LhL0ZaUROixSt0A=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:GaKrOG+mXbjDWO2/VIYVwQwIMew= In-Reply-To: <vrsur4$22oc6$1@dont-email.me> Content-Language: en-US Bytes: 4789 On 3/24/2025 5:53 PM, bart wrote: > On 24/03/2025 23:25, James Kuyper wrote: >> On 23/03/2025 02:34, bart wrote: >> >>> It's strange: in one part of the computing world, the speed of building >>> software is a very big deal. All sorts of efforts are going on to deal >>> with it. Compilation speed for developers is always an issue. There is a >>> general movement away from LLVM-based backends /because/ it is so slow. >>> >>> And yet in another part (namely comp.lang.c) it appears to be a total >>> non-issue! >> >> Throughout my career, far less time was spent compiling my programs than >> was spent executing them. > > Whose time, yours, or the people that ran your programs? > > (I had 100s of customers some of whom were running my programs all day. > One of my programs was run daily for 23 years.) > > The overwhelming majority of the code I wrote >> was executed 24/7 on at least one machine, and usually hundreds, for >> several months at a time, for each version delivered. > > I don't think I mentioned execution time. My remarks are about the > developer experience. Yes, if you're going to make a production version > or a long-running program, then it is worthwile optimising it to the hilt. The end consumer build should be able to run for as long as the computer(s) can run it for? Are you talking about client, server, workstation builds? > > I just find compile times of even seconds annoying: imagine if you > clicked on something (after clicking 100 buttons with instant response) > and nothing happens ... maybe it turns out to be 7 seconds, or 17, but > you don't know that while waiting, as no progress bar is shown. > > It's a very frustrating delay that breaks your concentration and > destroys fluency. > > (There used to be a bug in Thunderbird where it would hang for seconds > at a time while you were typing, and you had to pause until it caught > up. Don't tell me you wouldn't find it annoying because it's only a 'few > seconds'. > > You don't expect just 'typing' to take a lot of computation, and I don't > expect a simple translation which I know can be done in T time, to take > one to two magnitudes longer.) > > >> A single delivery >> might involve development and testing that might require a few dozen >> compilations. Thanks to effective use of makefiles, most compilations >> were of only a few modules at a time, > > I used to do that without makefiles! If you've been working on a project > for a year, then you know exactly what the dependencies are. And when I > did have to compile everything, it [my IDE that invoked the compiler] > would show what it was up to. Not that it took that long anyway, as it > zoomed through the displayed list of files. > > I considered it part of my job to get a workable edit-build-run cycle on > any project. > >