News for hackers. Stuff that matters.
Re:A Minecraft server written in COBOL by 082349872349872 on Thursday December 26, 2024 @07:27AM (#42514788)
One of the rumoured stigma is that the object-oriented flavour of COBOL goes by the unwieldy name of ADD ONE TO COBOL YIELDING COBOL.

At least it doesn't have the unrumoured stigma of older FORTRANs, which ignored whitespace, allowing:

    DO 10 I=1.10
to silently compile an assignment:

    DO10I = 1.10
instead of signalling an error for the syntax of the loop the flight software programmer had intended:

    DO 10 I=1,10
Re:A Minecraft server written in COBOL by kjs3 on Thursday December 26, 2024 @01:33PM (#42516838)
If you have to go to 1977 or prior to slag a language, there are tons of languages that will disappoint you.
Re:A Minecraft server written in COBOL by PaulHoule on Thursday December 26, 2024 @03:38PM (#42517620)
PL/I
Re:A Minecraft server written in COBOL by pjmlp on Thursday December 26, 2024 @05:49PM (#42518464)
I would assess C++ has already outpaced PL/I complexity, and I do enjoy using C++.
Re:A Minecraft server written in COBOL by PaulHoule on Thursday December 26, 2024 @07:56PM (#42519104)
You can get a C++ compiler which is (more or less) correct, I'm not sure that was ever quite true of PL/I.
Re:A Minecraft server written in COBOL by pjmlp on Friday December 27, 2024 @04:41AM (#42521029)
It was for IBM and Unisys, I imagine.

And then there is the whole DoD security assessment of Multics versus UNIX, where PL/I did play a major role versus C, so the compiler did work correctly enough.

Just this week we're discussing a VC++ miscompilation on Reddit.

Re:A Minecraft server written in COBOL by shakna on Friday December 27, 2024 @07:11AM (#42521552)
IBM are still building and maintaining their PL/I compiler for z/OS, today. Though it is only compliant with specs up to 1979. The '87 ISO is only partially adopted.
Re:A Minecraft server written in COBOL by kjs3 on Monday December 30, 2024 @07:22PM (#42555111)
I get the distinct feeling it's been a long time since IBM wrote PL/I compilers considering anyone but IBM. So 'correct' here might be 'what IBM needs'. YMMV.
Re:A Minecraft server written in COBOL by Konohamaru on Sunday December 29, 2024 @11:18PM (#42546442)
I think Programming Language One is the same type as Eureka Seven.
Re:A Minecraft server written in COBOL by userbinator on Thursday December 26, 2024 @06:21PM (#42518643)
No one seems to have written a Minecraft server in FORTRAN yet... but I think your comment just gave some people here ideas.
Re:A Minecraft server written in COBOL by shiroiushi on Friday December 27, 2024 @01:58AM (#42520411)
Instead of FORTRAN, someone should try writing a Minecraft server in something like ALGOL or FORTH.
Re:A Minecraft server written in COBOL by superdisk on Friday December 27, 2024 @08:02AM (#42521764)
Algol 68 actually isn't too bad of a language to work with, and there's a modern interpreter easily available. Unfortunately it lacks all support for reading and manipulating binary data so I think a Minecraft server would be nearly impossible.
Re:A Minecraft server written in COBOL by quuxplusone on Friday December 27, 2024 @05:25PM (#42526627)
Or APL.
Re:A Minecraft server written in COBOL by skissane on Thursday December 26, 2024 @10:54PM (#42519812)
> One of the rumoured stigma is that the object-oriented flavour of COBOL goes by the unwieldy name of ADD ONE TO COBOL YIELDING COBOL.

Which is a joke. Rather than an extension, the COBOL standard itself incorporates OO support, since COBOL 2002. The COBOL standards committee began work on the object-oriented features in the early 1990s, and by the mid-1990s some vendors (Micro Focus, Fujitsu, IBM) were already shipping OO support based on drafts of the COBOL 2002 standard. Unfortunately, one problem with all the COBOL standards since COBOL 85 (2002, 2014 and 2023), is no vendor ever fully implements them. In part that is due to lack of market demand, in part it is because NIST stopped funding its freely available test suite after COBOL 85, which removed a lot of the pressure on vendors to conform to the standard.