Article View: comp.lang.c++
Article #476Re: “The end of software secrecy is almost upon
From: James Kuyper
Date: Wed, 28 Oct 2026 01:35
Date: Wed, 28 Oct 2026 01:35
63 lines
5004 bytes
5004 bytes
Thanks to my killfile, I don't see messages posted by Chris M. Thomasson, just other people's responses to them. > On 2026-10-25 20:42, Lawrence D’Oliveiro wrote: >> On Sun, 25 Oct 2026 16:16:26 -0700, Chris M. Thomasson wrote: >> >>> Even analogous, to say, an API that says read n bytes and store into >>> buffer. Well, the caller has lifetime of said buffer. The caller makes >>> the buffer, calls into the function. >> >> So how is the caller supposed to manage that memory? That's the oldest message I can find on this sub-thread, and also the very last message I can find preceding the one quoted below, and it's clearly describing an fread()-like interface, not a function that returns objects of sizes unknown to the caller. If the messages I don't see gave some other context to this sub-thread, I had no way of knowing about it. On 2026-10-27 18:22, Lawrence D’Oliveiro wrote: > On Tue, 27 Oct 2026 11:00:08 -0400, James Kuyper wrote: > >> On 2026-10-26 17:45, Lawrence D’Oliveiro wrote: >>> >>> On Mon, 26 Oct 2026 13:26:38 -0700, Chris M. Thomasson wrote: >>>> >>>> On 2026-10-25 23:39, Lawrence D’Oliveiro wrote: >>>>> >>>>> On Sun, 25 Oct 2026 19:11:48 -0700, Chris M. Thomasson wrote: >>>>> >>>>>> A caller provided buffer is normal with a lot of API's out there. >>>>> >>>>> No it isn’t. It’s not a good way to manage things, anyway: >>>>> instead of solving the resource-allocation problem once and for >>>>> all in the library API, you are pushing the burden onto all the >>>>> client code, each one of which has to solve it for itself. >>>>> >>>>> That’s a dumb way to design things. >> >>>> HUH? How do you call say, fread without a user provided buffer? >>> >>> Relevance being? >> >> fread() uses a caller-provided buffer, which, according to your previous >> comment, "push[es] the burden onto all the client code, each one of >> which has to solve it for itself", so according to you, "That's a dumb >> way to design things".. > > Not even paying attention to what’s being said in the parts you > quoted, never mind the parts you didn’t. Note my remark above about > “solving the resource allocation problem”; elsewhere I asked: “What if > you’re building an object that needs to be returned to the caller?” Yes, and without the context that applies elsewhere, your comment about resource allocation comes off as a non-sequitur. > Not clear yet what we’re talking about here? We’re not talking about > random API calls, we’re talking about libraries that need to create > and manage abstract objects that encapsulate the function they are > providing! I can find no mention of that topic anywhere on this sub-thread. It might be in the parts of Chris's messages that I didn't see and you didn't quote.
Technical Details
Message-ID:
<11brjgd$21rhi$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6vc4$2npqv$1@dont-email.me> <11b87jg$37b7t$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b94he$3hdo3$2@dont-email.me> <11b9qd6$pq4i$1@dont-email.me> <11b9r5r$3nppf$1@dont-email.me> <11baekk$3v7n1$1@dont-email.me> <11bbl4f$du80$2@dont-email.me> <11bbo58$ek3q$1@dont-email.me> <11bbqns$fe31$1@dont-email.me> <11bbron$fmi2$1@dont-email.me> <11bc09b$gsv1$1@dont-email.me> <11bd6ed$ttau$1@dont-email.me> <11bejnh$1eab6$1@dont-email.me> <11berc9$1ge43$1@dont-email.me> <11bm2kg$2d3a$1@dont-email.me> <11bm7mf$3thd$1@dont-email.me> <11bmctb$5l5h$1@dont-email.me> <11bmi1p$78mo$1@dont-email.me> <11bod1u$ugib$2@dont-email.me> <11bohmi$10aqu$2@dont-email.me> <11bqe9q$1k0hc$1@dont-email.me> <11br86k$1uehc$2@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: James Kuyper <jameskuyper@alumni.caltech.edu> Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers Subject: Re: “The end of software secrecy is almost upon Date: Tue, 27 Oct 2026 21:35:09 -0400 Organization: A noiseless patient Spider Lines: 63 Message-ID: <11brjgd$21rhi$1@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11b5tdb$2cs5l$1@dont-email.me> <11b64cp$end$1@panix2.panix.com> <11b64hj$2faos$1@dont-email.me> <11b679m$6dl$1@panix2.panix.com> <11b6vc4$2npqv$1@dont-email.me> <11b87jg$37b7t$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b94he$3hdo3$2@dont-email.me> <11b9qd6$pq4i$1@dont-email.me> <11b9r5r$3nppf$1@dont-email.me> <11baekk$3v7n1$1@dont-email.me> <11bbl4f$du80$2@dont-email.me> <11bbo58$ek3q$1@dont-email.me> <11bbqns$fe31$1@dont-email.me> <11bbron$fmi2$1@dont-email.me> <11bc09b$gsv1$1@dont-email.me> <11bd6ed$ttau$1@dont-email.me> <11bejnh$1eab6$1@dont-email.me> <11berc9$1ge43$1@dont-email.me> <11bm2kg$2d3a$1@dont-email.me> <11bm7mf$3thd$1@dont-email.me> <11bmctb$5l5h$1@dont-email.me> <11bmi1p$78mo$1@dont-email.me> <11bod1u$ugib$2@dont-email.me> <11bohmi$10aqu$2@dont-email.me> <11bqe9q$1k0hc$1@dont-email.me> <11br86k$1uehc$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 28 Oct 2026 01:35:10 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2158130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18oePKvo0DI1tPQ5qNYSm9e4C0NMR0bO9A="; posting-host="be7d11f9ed1c07f50d9d5deefef02134" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:cCnB2GSH4ScpxV/yzaHfpM2NThY= sha256:YaL4HlMZI+Otf9swi/mGJf3Zc+/O0vEUw9nRatNr70c= sha1:RPwKDvgorBzXaD/Ey88EgbGeGJA= sha256:QO7UhiWPuYN7U4TvIr2hEdp6+NsjHmH33GdSrWPr2BM= In-Reply-To: <11br86k$1uehc$2@dont-email.me> Content-Language: en-US