Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Simplicity does not precede complexity, but follows it.


devel / comp.lang.cobol / Re: COBOL deserves modern, easy to read error messages as well!

SubjectAuthor
* COBOL deserves modern, easy to read error messages as well!KTSnowy (The Web Dev Fox)
`* Re: COBOL deserves modern, easy to read error messages as well!Kerry Liles
 `- Re: COBOL deserves modern, easy to read error messages as well!KTSnowy (Otterkit Core Dev)

1
COBOL deserves modern, easy to read error messages as well!

<e9a83080-a6e8-4f43-865d-48f2a5623fc3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=442&group=comp.lang.cobol#442

  copy link   Newsgroups: comp.lang.cobol
X-Received: by 2002:a37:6357:0:b0:746:b87c:e2f1 with SMTP id x84-20020a376357000000b00746b87ce2f1mr721423qkb.6.1679679797281;
Fri, 24 Mar 2023 10:43:17 -0700 (PDT)
X-Received: by 2002:a05:6870:1256:b0:17a:d52e:77de with SMTP id
22-20020a056870125600b0017ad52e77demr1310388oao.5.1679679796967; Fri, 24 Mar
2023 10:43:16 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.cobol
Date: Fri, 24 Mar 2023 10:43:16 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=191.241.68.106; posting-account=MAg5ZAoAAAD8Q7cJUD43bRNV0eD9B9Wi
NNTP-Posting-Host: 191.241.68.106
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e9a83080-a6e8-4f43-865d-48f2a5623fc3n@googlegroups.com>
Subject: COBOL deserves modern, easy to read error messages as well!
From: keithtlsf@gmail.com (KTSnowy (The Web Dev Fox))
Injection-Date: Fri, 24 Mar 2023 17:43:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4121
 by: KTSnowy (The Web Dev - Fri, 24 Mar 2023 17:43 UTC

Although the language was created more than 60 years ago, it has evolved a lot since then and today COBOL can be just as capable as other modern object oriented languages. The latest 2023 standard supports advanced object oriented features and asynchronous messaging, making it just as powerful for backend development as C# and Java!

I know that some developers might disagree with how useful object oriented COBOL is, but in reality, there are certain things that are difficult, if not impossible to express well in procedural only code. An example of this is a generic class with overloaded methods, attempting to express that in procedural code would require a ton of unnecessary code duplication, which is specially bad considering that the language already supports generic classes and overloaded methods just like C# and Java.

But unlike C# and Java, it's not as easy to use COBOL's more advanced features without freely accessible teaching resources for those, but also the compiler frontend infrastructure needed to display useful and readable error messages for these features.

Because of that, we made a new modern error message system for Otterkit, which should still display useful information to experienced developers, while also being easy to read and understand for new developers. This new format was inspired by Rust's error messages, and both the Errata NuGet package and Ariadne Rust crate.

Otterkit's frontend is built using a handwritten recursive descent parser (which is the industry standard for production-level compilers), this allows us very precise control over exactly where and when to display an error, and also the exact error message that it should display to the developer.

Below is an example of how these errors look like with the new error message system:

https://i.imgur.com/z99Wq3V.png

We're looking for feedback on both the format and the contents of the error messages, as well as help writing more of these to provide useful error messages to users.

The new error message system is modular, and allows us to add or remove parts of the message as needed for different scenarios, it also allows us to expand the format by implementing more parts in the future that can be composed together. Currently, the "Note" part is optional, and the error message can still work without it:

https://i.imgur.com/5v9QVF5.png
Same error message, but without the Note.

We'll start replacing our previous error messages with new ones that take advantage of the new system soon! This should hopefully help the overall COBOL development experience, and should help new developers learn COBOL more easily.

Note: Otterkit is still in prerelease and is not yet complete, any feedback is welcome. We're looking to improve the COBOL ecosystem and we hope COBOL developers also agree with the need to modernize through open source and freely accessible tooling.

https://github.com/otterkit/otterkit

Re: COBOL deserves modern, easy to read error messages as well!

<tvksk7$1pnv6$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=443&group=comp.lang.cobol#443

  copy link   Newsgroups: comp.lang.cobol
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From: kerry.liles@gmail.com (Kerry Liles)
Newsgroups: comp.lang.cobol
Subject: Re: COBOL deserves modern, easy to read error messages as well!
Date: Fri, 24 Mar 2023 15:11:04 -0400
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <tvksk7$1pnv6$1@dont-email.me>
References: <e9a83080-a6e8-4f43-865d-48f2a5623fc3n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Mar 2023 19:11:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="102db17bb087808b64b9cbd3b51cca23";
logging-data="1892326"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/b2Pk3b5n0pKJdW1AtfhBS"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.9.0
Cancel-Lock: sha1:ny9sy79QoQeP4pf9oWsFBwahWw4=
In-Reply-To: <e9a83080-a6e8-4f43-865d-48f2a5623fc3n@googlegroups.com>
Content-Language: en-US
 by: Kerry Liles - Fri, 24 Mar 2023 19:11 UTC

On 3/24/2023 1:43 PM, KTSnowy (The Web Dev Fox) wrote:
> Although the language was created more than 60 years ago, it has evolved a lot since then and today COBOL can be just as capable as other modern object oriented languages. The latest 2023 standard supports advanced object oriented features and asynchronous messaging, making it just as powerful for backend development as C# and Java!
>
> I know that some developers might disagree with how useful object oriented COBOL is, but in reality, there are certain things that are difficult, if not impossible to express well in procedural only code. An example of this is a generic class with overloaded methods, attempting to express that in procedural code would require a ton of unnecessary code duplication, which is specially bad considering that the language already supports generic classes and overloaded methods just like C# and Java.
>
> But unlike C# and Java, it's not as easy to use COBOL's more advanced features without freely accessible teaching resources for those, but also the compiler frontend infrastructure needed to display useful and readable error messages for these features.
>
> Because of that, we made a new modern error message system for Otterkit, which should still display useful information to experienced developers, while also being easy to read and understand for new developers. This new format was inspired by Rust's error messages, and both the Errata NuGet package and Ariadne Rust crate.
>
> Otterkit's frontend is built using a handwritten recursive descent parser (which is the industry standard for production-level compilers), this allows us very precise control over exactly where and when to display an error, and also the exact error message that it should display to the developer.
>
> Below is an example of how these errors look like with the new error message system:
>
> https://i.imgur.com/z99Wq3V.png
>
> We're looking for feedback on both the format and the contents of the error messages, as well as help writing more of these to provide useful error messages to users.
>
> The new error message system is modular, and allows us to add or remove parts of the message as needed for different scenarios, it also allows us to expand the format by implementing more parts in the future that can be composed together. Currently, the "Note" part is optional, and the error message can still work without it:
>
> https://i.imgur.com/5v9QVF5.png
> Same error message, but without the Note.
>
> We'll start replacing our previous error messages with new ones that take advantage of the new system soon! This should hopefully help the overall COBOL development experience, and should help new developers learn COBOL more easily.
>
> Note: Otterkit is still in prerelease and is not yet complete, any feedback is welcome. We're looking to improve the COBOL ecosystem and we hope COBOL developers also agree with the need to modernize through open source and freely accessible tooling.
>
> https://github.com/otterkit/otterkit

I very much like the proposed error message format and layout. When I
can find some time I intend to poke around with your Otterkit prerelease
compiler and look forward to driving it around...

Re: COBOL deserves modern, easy to read error messages as well!

<46a53d06-99a5-42f0-9c65-a9c2965d1562n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=444&group=comp.lang.cobol#444

  copy link   Newsgroups: comp.lang.cobol
X-Received: by 2002:a05:622a:1a8c:b0:3e0:c1c:71bc with SMTP id s12-20020a05622a1a8c00b003e00c1c71bcmr1726958qtc.2.1679698585426;
Fri, 24 Mar 2023 15:56:25 -0700 (PDT)
X-Received: by 2002:a05:6871:e86:b0:17e:d9e2:a55c with SMTP id
vl6-20020a0568710e8600b0017ed9e2a55cmr1292137oab.11.1679698585192; Fri, 24
Mar 2023 15:56:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.cobol
Date: Fri, 24 Mar 2023 15:56:24 -0700 (PDT)
In-Reply-To: <tvksk7$1pnv6$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=191.241.68.106; posting-account=MAg5ZAoAAAD8Q7cJUD43bRNV0eD9B9Wi
NNTP-Posting-Host: 191.241.68.106
References: <e9a83080-a6e8-4f43-865d-48f2a5623fc3n@googlegroups.com> <tvksk7$1pnv6$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <46a53d06-99a5-42f0-9c65-a9c2965d1562n@googlegroups.com>
Subject: Re: COBOL deserves modern, easy to read error messages as well!
From: keithtlsf@gmail.com (KTSnowy (Otterkit Core Dev))
Injection-Date: Fri, 24 Mar 2023 22:56:25 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5082
 by: KTSnowy (Otterkit Co - Fri, 24 Mar 2023 22:56 UTC

On Friday, March 24, 2023 at 4:11:06 PM UTC-3, Kerry Liles wrote:
> On 3/24/2023 1:43 PM, KTSnowy (The Web Dev Fox) wrote:
> > Although the language was created more than 60 years ago, it has evolved a lot since then and today COBOL can be just as capable as other modern object oriented languages. The latest 2023 standard supports advanced object oriented features and asynchronous messaging, making it just as powerful for backend development as C# and Java!
> >
> > I know that some developers might disagree with how useful object oriented COBOL is, but in reality, there are certain things that are difficult, if not impossible to express well in procedural only code. An example of this is a generic class with overloaded methods, attempting to express that in procedural code would require a ton of unnecessary code duplication, which is specially bad considering that the language already supports generic classes and overloaded methods just like C# and Java.
> >
> > But unlike C# and Java, it's not as easy to use COBOL's more advanced features without freely accessible teaching resources for those, but also the compiler frontend infrastructure needed to display useful and readable error messages for these features.
> >
> > Because of that, we made a new modern error message system for Otterkit, which should still display useful information to experienced developers, while also being easy to read and understand for new developers. This new format was inspired by Rust's error messages, and both the Errata NuGet package and Ariadne Rust crate.
> >
> > Otterkit's frontend is built using a handwritten recursive descent parser (which is the industry standard for production-level compilers), this allows us very precise control over exactly where and when to display an error, and also the exact error message that it should display to the developer..
> >
> > Below is an example of how these errors look like with the new error message system:
> >
> > https://i.imgur.com/z99Wq3V.png
> >
> > We're looking for feedback on both the format and the contents of the error messages, as well as help writing more of these to provide useful error messages to users.
> >
> > The new error message system is modular, and allows us to add or remove parts of the message as needed for different scenarios, it also allows us to expand the format by implementing more parts in the future that can be composed together. Currently, the "Note" part is optional, and the error message can still work without it:
> >
> > https://i.imgur.com/5v9QVF5.png
> > Same error message, but without the Note.
> >
> > We'll start replacing our previous error messages with new ones that take advantage of the new system soon! This should hopefully help the overall COBOL development experience, and should help new developers learn COBOL more easily.
> >
> > Note: Otterkit is still in prerelease and is not yet complete, any feedback is welcome. We're looking to improve the COBOL ecosystem and we hope COBOL developers also agree with the need to modernize through open source and freely accessible tooling.
> >
> > https://github.com/otterkit/otterkit
> I very much like the proposed error message format and layout. When I
> can find some time I intend to poke around with your Otterkit prerelease
> compiler and look forward to driving it around...

Here's another example of the format: https://i.imgur.com/t6kMAEU.png

I started replacing the previous messages with the new system.

This can be amazing at providing useful diagnostics, specially with the extra fine tuning that the handwritten recursive descent gives us.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor