Article View: comp.lang.fortran
Article #133Re: “The end of software secrecy is almost upon
From: Johann 'Myrkraverk' Oskarsson
Date: Thu, 22 Oct 2026 08:40
Date: Thu, 22 Oct 2026 08:40
78 lines
4778 bytes
4778 bytes
On 10/22/2026 3:31 PM, Steven G. Kargl wrote: > On Thu, 22 Oct 2026 14:34:20 +0800, Johann 'Myrkraverk' Oskarsson wrote: > >> On 10/22/2026 12:56 PM, Steven G. Kargl wrote: >>> On Thu, 22 Oct 2026 04:50:10 -0000 (UTC), Lawrence D’Oliveiro wrote: >>> >>>> On Thu, 22 Oct 2026 04:33:04 -0000 (UTC), Steven G. Kargl wrote: >>>> >>>>>>> >>>>>>> Sure, what is the EXACT clean up that you envision? >>>>>> >>>>>> “Storage allocations”. >>>>> >>>>> There isn't any "storage allocation" to cleanup. >>>> >>>> Not in your example. Which is why it was irrelevant. >>> >>> Then give a Fortran 77 example that requires cleanup. >>> You can't, can you? >>> >>> Using GOTO to jump out of do-loop in Fortran 77 does >>> not lead to some mysterious "storage allocation" to >>> cleanup. >>> >>> PS: a smart compiler would actually not generate code >>> to execute the do-loop for the code in my example. >>> >> >> Open Watcom Fortran 77 has /allocate/ and /deallocate/ according to a >> quick glance at the manual, but I have never used them. > > Dynamic memory management via allocate/deallocate was introduce > in Fortran 90. Open Watcom Fortran 77 may have added those as > an extension. The Fortran 77 standard does have a dynamic memory > feature. But, this seems irrelevant to Lawrence, who has coined > the term "storage allocation", which is not Fortran terminology. > We are now waiting for a definition for this term. Lawrence, in my experience, pretends to be a much more experienced pro- grammer than he is. In my opinion, he's just a Python influencer. So we keep waiting. > >> I guess the point is we don't want to allocate in a loop? > > I allocate memory in do-loops all time. It would be a significant > pessimization to write something like > > integer, allocatable :: i(:) > i = [0] ! A 1-element array. > do j = 1, 9 > i = [i,j] ! Re-allocate i on assignment > end do > 10 print *, i > end > > Note, there is no clean up of 'storage allocation' when the > loop terminates. The Fortran standard does not mandate when > memory that may have been freed during the re-allocation is > actually garbaged collected. The program could return memory > to the system during the re-allocation or when the program > terminates. > Thanks. I admit some lacking in understanding of Fortran, 77 and other- wise, so I'll read better upon this stuff before I start to use it. In other news, I have no problem understanding the Fortran 77 code snip- pets in my /Digital Image Processing/ (1993) by Gonzales and Woods. Sometimes code literacy is sufficient. Best wishes, and happy Fortran! -- Johann | email: invalid -> com | http://www.myrkraverk.com/blog/ I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:; Federated at https://fed.brid.gy/bsky/myrkraverk.bsky.social
Technical Details
Message-ID:
<XZjCS.215772$WzI1.52039@fx15.ams4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!news.bawue.net!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx15.ams4.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> <11bc3m0$hnan$1@dont-email.me> <11bc4m2$i1rd$1@dont-email.me> <11bc516$i37l$1@dont-email.me> <O7iCS.3141$K1P4.1508@fx14.ams4> <11bce53$k9ji$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!weretis.net!feeder8.news.weretis.net!news.bawue.net!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!fx15.ams4.POSTED!not-for-mail MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: “The end of software secrecy is almost upon Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers 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> <11bc3m0$hnan$1@dont-email.me> <11bc4m2$i1rd$1@dont-email.me> <11bc516$i37l$1@dont-email.me> <O7iCS.3141$K1P4.1508@fx14.ams4> <11bce53$k9ji$1@dont-email.me> Content-Language: en-US From: Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> Organization: Watcom Pro Ltd. In-Reply-To: <11bce53$k9ji$1@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 78 Message-ID: <XZjCS.215772$WzI1.52039@fx15.ams4> X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Thu, 22 Oct 2026 16:40:21 +0800 X-Received-Bytes: 4514