[0/5] Fortran manual updates

Message ID 20211101235703.112341-1-sandra@codesourcery.com
Headers
Series Fortran manual updates |

Message

Sandra Loosemore Nov. 1, 2021, 11:56 p.m. UTC
  This series of patches addresses some areas of bit-rot in the GNU
Fortran manual, mainly relating to the state of standard compliance
and the recently-completed TS29113 work.  I also removed some material
that is primarily of historical interest; given that gfortran replaced
g77 almost 17 years ago now, relatively few users will be interested
in why or how they differ any more, for instance.  And I don't see the
point in the manual documenting extensions that aren't actually
implemented.  I also fixed some organization and copy-editing issues I
noticed while working on the relevant sections, although that wasn't
my primary purpose in this patch set.  The whole manual needs a lot
more of that, but with documentation it's fine to do incremental
improvements.

I'll wait a couple days before committing these patches, in case
anybody wants to give some feedback, especially on technical issues.

-Sandra


Sandra Loosemore (5):
  Fortran manual: Combine standard conformance docs in one place.
  Fortran manual: Revise introductory chapter.
  Fortran manual: Update section on Interoperability with C
  Fortran manual: Update miscellaneous references to old standard
    versions.
  Fortran manual: Remove old docs for never-implemented extensions.

 gcc/fortran/gfortran.texi  | 985 +++++++++++----------------------------------
 gcc/fortran/intrinsic.texi |  15 +-
 gcc/fortran/invoke.texi    |  48 ++-
 3 files changed, 288 insertions(+), 760 deletions(-)
  

Comments

Martin Liška Nov. 2, 2021, 8:51 a.m. UTC | #1
On 11/2/21 00:56, Sandra Loosemore wrote:
> I'll wait a couple days before committing these patches, in case
> anybody wants to give some feedback, especially on technical issues.

Hello.

Appreciate the work you did, but the patchset will cause quite some conflicts
in the prepared Sphinx migration patch I've sent to the mailing list :/
Anyway, I will rebase my patches. For the future, are you planning doing similar
documentation reorganization for a manual? Based on discussion with Gerald, I hope
we can finish the transition before the end of this year.

Thank you,
Martin
  
Sandra Loosemore Nov. 2, 2021, 2:48 p.m. UTC | #2
On 11/2/21 2:51 AM, Martin Liška wrote:
> On 11/2/21 00:56, Sandra Loosemore wrote:
>> I'll wait a couple days before committing these patches, in case
>> anybody wants to give some feedback, especially on technical issues.
> 
> Hello.
> 
> Appreciate the work you did, but the patchset will cause quite some 
> conflicts
> in the prepared Sphinx migration patch I've sent to the mailing list :/
> Anyway, I will rebase my patches. For the future, are you planning doing 
> similar
> documentation reorganization for a manual? Based on discussion with 
> Gerald, I hope
> we can finish the transition before the end of this year.

My understanding was that, if this conversion is indeed going to happen, 
it's going to be automated by scripts?  I hadn't seen any discussion of 
it on the list for months and thought the whole idea was on hold or 
scrapped, since it hasn't happened yet.  In any case it does not seem 
reasonable to freeze the current Texinfo docs for months while waiting 
for it to happen, especially as we are heading into the end of the 
release cycle and people are finishing up changes and new features they 
need to document.

-Sandra
  
Martin Liška Nov. 2, 2021, 3:20 p.m. UTC | #3
On 11/2/21 15:48, Sandra Loosemore wrote:
> On 11/2/21 2:51 AM, Martin Liška wrote:
>> On 11/2/21 00:56, Sandra Loosemore wrote:
>>> I'll wait a couple days before committing these patches, in case
>>> anybody wants to give some feedback, especially on technical issues.
>>
>> Hello.
>>
>> Appreciate the work you did, but the patchset will cause quite some conflicts
>> in the prepared Sphinx migration patch I've sent to the mailing list :/
>> Anyway, I will rebase my patches. For the future, are you planning doing similar
>> documentation reorganization for a manual? Based on discussion with Gerald, I hope
>> we can finish the transition before the end of this year.
> 
> My understanding was that, if this conversion is indeed going to happen, it's going to be automated by scripts?

Exactly, but the conversion needs some manual post-processing that I've already done.

>  I hadn't seen any discussion of it on the list for months and thought the whole idea was on hold or scrapped, since it hasn't happened yet.

There was almost no response, so that's why I contacted Gerald about help.

> In any case it does not seem reasonable to freeze the current Texinfo docs for months while waiting for it to happen, especially as we are heading into the end of the release cycle and people are finishing up changes and new features they need to document.

Sure, I can easily rebase normal changes, but you are suggesting a complete redesign/renaming. It's going to take me some time,
but I'll rebase my patches.

Thanks for understanding,
Martin

> 
> -Sandra
  
Sandra Loosemore Nov. 2, 2021, 3:56 p.m. UTC | #4
On 11/2/21 9:20 AM, Martin Liška wrote:
> On 11/2/21 15:48, Sandra Loosemore wrote:
>> On 11/2/21 2:51 AM, Martin Liška wrote:
>>> On 11/2/21 00:56, Sandra Loosemore wrote:
>>>> I'll wait a couple days before committing these patches, in case
>>>> anybody wants to give some feedback, especially on technical issues.
>>>
>>> Hello.
>>>
>>> Appreciate the work you did, but the patchset will cause quite some 
>>> conflicts
>>> in the prepared Sphinx migration patch I've sent to the mailing list :/
>>> Anyway, I will rebase my patches. For the future, are you planning 
>>> doing similar
>>> documentation reorganization for a manual? Based on discussion with 
>>> Gerald, I hope
>>> we can finish the transition before the end of this year.
>>
>> My understanding was that, if this conversion is indeed going to 
>> happen, it's going to be automated by scripts?
> 
> Exactly, but the conversion needs some manual post-processing that I've 
> already done.
> 
>>   I hadn't seen any discussion of it on the list for months and 
>> thought the whole idea was on hold or scrapped, since it hasn't 
>> happened yet.
> 
> There was almost no response, so that's why I contacted Gerald about help.

I have to admit that I was buried in technical work at the time of the 
previous discussion (in fact, the Fortran things I am now trying to 
document), and didn't have time to look at the proposed changes in any 
detail.  I have wondered, though, why it's necessary to do this 
change....  if people don't like the way Texinfo formats output, can't 
we fix Texinfo?  Or hack it to translate the sources to something like 
DocBook instead, and then adopt that as our source format?  I can write 
documentation in any markup format, but it seems to me that structured 
XML-based formats are a lot more amenable to scripted manipulation than 
either Texinfo or restructured text.  If the rest of the community is 
set on Sphinx, I'm fine with that, but I kind of don't see the point, 
myself.  :-S

>> In any case it does not seem reasonable to freeze the current Texinfo 
>> docs for months while waiting for it to happen, especially as we are 
>> heading into the end of the release cycle and people are finishing up 
>> changes and new features they need to document.
> 
> Sure, I can easily rebase normal changes, but you are suggesting a 
> complete redesign/renaming. It's going to take me some time,
> but I'll rebase my patches.

Well, what I've done is hardly a "complete" redesign/renaming of the 
Fortran manual -- I've barely scratched the surface on it.  My main goal 
was just to update the bit-rotten standards conformance sections, which 
were unfortunately spread among multiple places in the document.  I did 
consolidate those few sections, but I did not make any big-picture 
changes to the organization of the manual, and I have not even reviewed 
any other parts of it for accuracy or relevance.  I'd been thinking 
about making a pass to do some copy-editing things, like making sure all 
chapter/section titles use consistent title case capitalization, but I 
will hold off on that if it's going to cause problems.

-Sandra
  
Damian Rouson Nov. 2, 2021, 8:32 p.m. UTC | #5
On Tue, Nov 2, 2021 at 8:56 AM Sandra Loosemore <sandra@codesourcery.com>
wrote:

>
> ... I will hold off on that if it's going to cause problems.
>
> Thanks for taking on this task, Sandra.  I'm not aware of the technical
issues around mark-up formatting and the transition that's happening, but I
hope nothing holds up a long-needed update to the standards conformance
information.  Those are really important references that I've seen people
rely upon in decision-making that impacts projects.

Damian
  
Martin Liška Nov. 4, 2021, 10:04 a.m. UTC | #6
On 11/2/21 16:56, Sandra Loosemore wrote:
> On 11/2/21 9:20 AM, Martin Liška wrote:
>> On 11/2/21 15:48, Sandra Loosemore wrote:
>>> On 11/2/21 2:51 AM, Martin Liška wrote:
>>>> On 11/2/21 00:56, Sandra Loosemore wrote:
>>>>> I'll wait a couple days before committing these patches, in case
>>>>> anybody wants to give some feedback, especially on technical issues.
>>>>
>>>> Hello.
>>>>
>>>> Appreciate the work you did, but the patchset will cause quite some conflicts
>>>> in the prepared Sphinx migration patch I've sent to the mailing list :/
>>>> Anyway, I will rebase my patches. For the future, are you planning doing similar
>>>> documentation reorganization for a manual? Based on discussion with Gerald, I hope
>>>> we can finish the transition before the end of this year.
>>>
>>> My understanding was that, if this conversion is indeed going to happen, it's going to be automated by scripts?
>>
>> Exactly, but the conversion needs some manual post-processing that I've already done.
>>
>>>   I hadn't seen any discussion of it on the list for months and thought the whole idea was on hold or scrapped, since it hasn't happened yet.
>>
>> There was almost no response, so that's why I contacted Gerald about help.
> 
> I have to admit that I was buried in technical work at the time of the previous discussion (in fact, the Fortran things I am now trying to document), and didn't have time to look at the proposed changes in any detail.  I have wondered, though, why it's necessary to do this change....  if people don't like the way Texinfo formats output, can't we fix Texinfo?

That's a reasonable question. Well, I believe the technical dept (feature set) of Texinfo (compared to more modern tools) is significant and I don't want
to spend my time hacking a HTML, Javascipt and so on. Moreover, Sphinx is massively used: https://www.sphinx-doc.org/en/master/examples.html
and the tool is actively developed.


> Or hack it to translate the sources to something like DocBook instead, and then adopt that as our source format?  I can write documentation in any markup format, but it seems to me that structured XML-based formats are a lot more amenable to scripted manipulation than either Texinfo or restructured text.  If the rest of the community is set on Sphinx, I'm fine with that, but I kind of don't see the point, myself.  :-S

We think with David that DocBook is too complicated and a markup is a better choice (from that perspective, Texinfo is fine).

> 
>>> In any case it does not seem reasonable to freeze the current Texinfo docs for months while waiting for it to happen, especially as we are heading into the end of the release cycle and people are finishing up changes and new features they need to document.
>>
>> Sure, I can easily rebase normal changes, but you are suggesting a complete redesign/renaming. It's going to take me some time,
>> but I'll rebase my patches.
> 
> Well, what I've done is hardly a "complete" redesign/renaming of the Fortran manual -- I've barely scratched the surface on it.  My main goal was just to update the bit-rotten standards conformance sections, which were unfortunately spread among multiple places in the document.  I did consolidate those few sections, but I did not make any big-picture changes to the organization of the manual, and I have not even reviewed any other parts of it for accuracy or relevance.  I'd been thinking about making a pass to do some copy-editing things, like making sure all chapter/section titles use consistent title case capitalization, but I will hold off on that if it's going to cause problems.

I see, thanks for doing that.

Martin

> 
> -Sandra
  
Richard Biener Nov. 4, 2021, 11:16 a.m. UTC | #7
On Thu, Nov 4, 2021 at 11:05 AM Martin Liška <mliska@suse.cz> wrote:
>
> On 11/2/21 16:56, Sandra Loosemore wrote:
> > On 11/2/21 9:20 AM, Martin Liška wrote:
> >> On 11/2/21 15:48, Sandra Loosemore wrote:
> >>> On 11/2/21 2:51 AM, Martin Liška wrote:
> >>>> On 11/2/21 00:56, Sandra Loosemore wrote:
> >>>>> I'll wait a couple days before committing these patches, in case
> >>>>> anybody wants to give some feedback, especially on technical issues.
> >>>>
> >>>> Hello.
> >>>>
> >>>> Appreciate the work you did, but the patchset will cause quite some conflicts
> >>>> in the prepared Sphinx migration patch I've sent to the mailing list :/
> >>>> Anyway, I will rebase my patches. For the future, are you planning doing similar
> >>>> documentation reorganization for a manual? Based on discussion with Gerald, I hope
> >>>> we can finish the transition before the end of this year.
> >>>
> >>> My understanding was that, if this conversion is indeed going to happen, it's going to be automated by scripts?
> >>
> >> Exactly, but the conversion needs some manual post-processing that I've already done.
> >>
> >>>   I hadn't seen any discussion of it on the list for months and thought the whole idea was on hold or scrapped, since it hasn't happened yet.
> >>
> >> There was almost no response, so that's why I contacted Gerald about help.
> >
> > I have to admit that I was buried in technical work at the time of the previous discussion (in fact, the Fortran things I am now trying to document), and didn't have time to look at the proposed changes in any detail.  I have wondered, though, why it's necessary to do this change....  if people don't like the way Texinfo formats output, can't we fix Texinfo?
>
> That's a reasonable question. Well, I believe the technical dept (feature set) of Texinfo (compared to more modern tools) is significant and I don't want
> to spend my time hacking a HTML, Javascipt and so on. Moreover, Sphinx is massively used: https://www.sphinx-doc.org/en/master/examples.html
> and the tool is actively developed.
>
>
> > Or hack it to translate the sources to something like DocBook instead, and then adopt that as our source format?  I can write documentation in any markup format, but it seems to me that structured XML-based formats are a lot more amenable to scripted manipulation than either Texinfo or restructured text.  If the rest of the community is set on Sphinx, I'm fine with that, but I kind of don't see the point, myself.  :-S
>
> We think with David that DocBook is too complicated and a markup is a better choice (from that perspective, Texinfo is fine).
>
> >
> >>> In any case it does not seem reasonable to freeze the current Texinfo docs for months while waiting for it to happen, especially as we are heading into the end of the release cycle and people are finishing up changes and new features they need to document.
> >>
> >> Sure, I can easily rebase normal changes, but you are suggesting a complete redesign/renaming. It's going to take me some time,
> >> but I'll rebase my patches.
> >
> > Well, what I've done is hardly a "complete" redesign/renaming of the Fortran manual -- I've barely scratched the surface on it.  My main goal was just to update the bit-rotten standards conformance sections, which were unfortunately spread among multiple places in the document.  I did consolidate those few sections, but I did not make any big-picture changes to the organization of the manual, and I have not even reviewed any other parts of it for accuracy or relevance.  I'd been thinking about making a pass to do some copy-editing things, like making sure all chapter/section titles use consistent title case capitalization, but I will hold off on that if it's going to cause problems.
>
> I see, thanks for doing that.

Sandra - please go forward with improving the manual with the current
texinfo setup.  There's zero reason to hold
off on improving user level documentation.

Thanks,
Richard.

> Martin
>
> >
> > -Sandra
>