🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.fortran
Article #335

Re: “The end of software secrecy is almost upon

#335
From: Chris M. Thomasson
Date: Mon, 26 Oct 2026 02:11
19 lines
2582 bytes
On 10/25/2026 5:42 PM, 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?

Ummm, say we wanted to have a buffer and use it.

Say:

{
     char buf[2048] = { '\0' };
     size_t bytes= foo_read(self, buf, 1024);
}

A caller provided buffer is normal with a lot of API's out there.
Technical Details
Message-ID: <11bmctb$5l5h$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-mail
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>

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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
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: Sun, 25 Oct 2026 19:11:48 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <11bmctb$5l5h$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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 26 Oct 2026 02:11:56 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="185521"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19xuGzGj4pAG79RcS/NhemSTOBHDNSTS8I="; posting-host="49da529de1e605d0c2cf1bd5b7b86f4a"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YtY4wevb5Yeo0smvCTYUvmvB4WA= sha256:eRtddDCspwO3C0G7fAyWq4NryZgBwcw9rKk0ZI1/JpQ=
	sha1:bmQcXX2M7Ra93HnpUihAOD5pJg0= sha256:nKCvDdUN9k4D/HcfgaPFIA6yAj8nQdeuM5sf0QXSPpk=
Content-Language: en-US
In-Reply-To: <11bm7mf$3thd$1@dont-email.me>