• codeconvert.ai

    From Arnold Trembley@[email protected] to comp.lang.cobol on Sat Oct 10 22:25:04 2026
    From Newsgroup: comp.lang.cobol


    Found this in a thread in the GnuCOBOL forums. It's a link to a website
    for creating a COBOL program using AI prompts.

    https://www.codeconvert.ai/cobol-code-generator

    And here's a link to the forum thread: https://sourceforge.net/p/gnucobol/discussion/help/thread/3ce4db5d3e/?limit=25#b8d4/8ea5/1624
    --
    https://www.arnoldtrembley.com/


    --
    This email has been checked for viruses by Avast antivirus software. www.avast.com
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From docdwarf@[email protected] () to comp.lang.cobol on Sun Oct 11 15:54:22 2026
    From Newsgroup: comp.lang.cobol

    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:

    Found this in a thread in the GnuCOBOL forums. It's a link to a website
    for creating a COBOL program using AI prompts.

    MAIN-PARA. Ain't seen one of those in a while.

    DD
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Vincent Coen@[email protected] to Arnold Trembley on Sun Oct 11 19:48:55 2026
    From Newsgroup: comp.lang.cobol


    Hello Arnold!

    11 Oct 26 04:25, Arnold Trembley wrote to all:


    Found this in a thread in the GnuCOBOL forums. It's a link to a
    website
    for creating a COBOL program using AI prompts.

    https://www.codeconvert.ai/cobol-code-generator

    Pity it does not support Basic or CBasic etc.


    Vincent



    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Arnold Trembley@[email protected] to comp.lang.cobol on Sun Oct 11 20:56:19 2026
    From Newsgroup: comp.lang.cobol

    On 2026-10-11 1:48 PM, Vincent Coen wrote:

    Hello Arnold!

    11 Oct 26 04:25, Arnold Trembley wrote to all:


    > Found this in a thread in the GnuCOBOL forums. It's a link to a
    > website
    > for creating a COBOL program using AI prompts.

    > https://www.codeconvert.ai/cobol-code-generator

    Pity it does not support Basic or CBasic etc.


    Vincent




    If you scroll all the way to the bottom of the front page, you can see
    they support AI generation for 62 programming languages. Unfortunately,
    Basic and CBasic are not on the list, but VB.Net, VB6, VBA, and VBScript
    are supported.

    Some of the programming languages are completely unknown to me, like
    Julia, Kotlin, Scala, Clojure, Dart, Elixer, Elm, Erlang, Haskell, and Haxe.

    The Assembly language generator assumes the only assembly language in
    the world is X86-64.

    Popular programming languages like C, C++, Java, Javascript, Ada,
    Fortran, Python, and Rust are supported.
    --
    https://www.arnoldtrembley.com/

    --
    This email has been checked for viruses by Avast antivirus software. www.avast.com
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Arnold Trembley@[email protected] to comp.lang.cobol on Sun Oct 11 21:11:36 2026
    From Newsgroup: comp.lang.cobol

    On 2026-10-11 10:54 AM, [email protected] wrote:
    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:

    Found this in a thread in the GnuCOBOL forums. It's a link to a website
    for creating a COBOL program using AI prompts.

    MAIN-PARA. Ain't seen one of those in a while.

    DD

    I asked it to create a program that performs a credit card Mod 10 check
    digit validation using the Luhn algorithm, which is described in a
    Wikipedia article:

    https://en.wikipedia.org/wiki/Luhn_algorithm

    The check digit algorithm is intended to detect digit transposition or substitution when a credit card number is manually typed.

    In this case it generated a "MAIN-LOGIC" paragraph instead of
    "MAIN-PARA", but the generated COBOL looked pretty reasonable. I
    compiled it with GnuCOBOL 3.2 and it appeared to execute correctly, and
    I also tested it with different "card numbers" generated with difference
    check digit values.

    IDENTIFICATION DIVISION.
    PROGRAM-ID. LUHN-VALIDATOR.

    ENVIRONMENT DIVISION.
    CONFIGURATION SECTION.

    DATA DIVISION.
    WORKING-STORAGE SECTION.
    01 WS-INPUT.
    05 WS-CARD-NUMBER PIC X(16) VALUE "49927398716".

    01 WS-VARIABLES.
    05 WS-I PIC 9(2) COMP.
    05 WS-DIGIT PIC 9(2) COMP.
    05 WS-SUM PIC 9(4) COMP VALUE 0.
    05 WS-DOUBLED PIC 9(2) COMP.
    05 WS-REMAINDER PIC 9(2) COMP.
    05 WS-MOD-RESULT PIC 9(4) COMP.

    01 WS-TABLE.
    05 WS-TABLE-DIGITS PIC X OCCURS 16 TIMES.

    01 WS-OUTPUT-MSG.
    05 WS-RESULT-MSG PIC X(30).

    PROCEDURE DIVISION.
    MAIN-LOGIC.
    PERFORM INITIALIZATION
    PERFORM VALIDATE-LUHN
    PERFORM DISPLAY-RESULT
    STOP RUN.

    INITIALIZATION.
    MOVE WS-CARD-NUMBER TO WS-TABLE.
    MOVE 0 TO WS-SUM.

    VALIDATE-LUHN.
    PERFORM VARYING WS-I FROM 16 BY -1 UNTIL WS-I < 1
    MOVE WS-TABLE-DIGITS(WS-I) TO WS-DIGIT

    IF FUNCTION MOD(WS-I, 2) = 1
    COMPUTE WS-DOUBLED = WS-DIGIT * 2
    IF WS-DOUBLED > 9
    COMPUTE WS-DOUBLED = WS-DOUBLED - 9
    END-IF
    ADD WS-DOUBLED TO WS-SUM
    ELSE
    ADD WS-DIGIT TO WS-SUM
    END-IF
    END-PERFORM.

    DISPLAY-RESULT.
    COMPUTE WS-MOD-RESULT = FUNCTION MOD(WS-SUM, 10)
    IF WS-MOD-RESULT = 0
    DISPLAY "CREDIT CARD NUMBER IS VALID."
    ELSE
    DISPLAY "CREDIT CARD NUMBER IS INVALID."
    END-IF.

    Of course, this means the pointy-haired bosses will want all the new
    programs written by AI bots, so they can pay us less.

    Cheers,
    --
    https://www.arnoldtrembley.com/

    --
    This email has been checked for viruses by Avast antivirus software. www.avast.com
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From ram@[email protected] (Stefan Ram) to comp.lang.cobol on Mon Oct 12 09:34:17 2026
    From Newsgroup: comp.lang.cobol

    "Vincent Coen" <[email protected]> wrote or quoted:
    Pity it does not support Basic or CBasic etc.

    Nearly every chatbot can already convert most programs from
    one language into another, although the quality might be worse
    for languages that are less common. So, if you want to convert
    from a language called "Basic" to a language called "CBasic",
    I'd recommend to try it with some chatbot.


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From docdwarf@[email protected] () to comp.lang.cobol on Mon Oct 12 13:18:08 2026
    From Newsgroup: comp.lang.cobol

    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:
    On 2026-10-11 10:54 AM, [email protected] wrote:
    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:

    Found this in a thread in the GnuCOBOL forums. It's a link to a website >>> for creating a COBOL program using AI prompts.

    MAIN-PARA. Ain't seen one of those in a while.

    I asked it to create a program that performs a credit card Mod 10 check >digit validation using the Luhn algorithm, which is described in a
    Wikipedia article:

    https://en.wikipedia.org/wiki/Luhn_algorithm

    It was the style of the naming convention that caught my eye, Mr Trembley,
    and the wry grin brought by memories of hours of 'paragraph coding, paragraph-thru EXIT coding and SECTION' coding style arguments that
    resulted.

    DD
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From NOSPAM.Mike.Powell@[email protected] (Mike Powell) to Arnold Trembley on Mon Oct 12 13:40:34 2026
    From Newsgroup: comp.lang.cobol

    Some of the programming languages are completely unknown to me,
    like Julia, Kotlin, Scala, Clojure, Dart, Elixer, Elm, Erlang,
    Haskell, and Haxe.

    I have heard of Haskell, but not the rest. ;)

    Mike

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@[email protected] to comp.lang.cobol on Mon Oct 12 11:26:59 2026
    From Newsgroup: comp.lang.cobol

    On 10/11/2026 9:56 PM, Arnold Trembley wrote:
    Some of the programming languages are completely unknown to me, like
    Julia, Kotlin, Scala, Clojure, Dart, Elixer, Elm, Erlang, Haskell, and
    Haxe.
    Julia is high level language primarily used for scientific computing.
    Dynamic typed but AOT compiled to native. The language you want if
    Python is too slow and Fortran is too cumbersome. :-)

    Kotlin is a JVM language. Consider it how Java would have looked like
    if Java had been invented in the 2010's instead of 1990's.
    Widely used in Android development, but also some server side.

    Scala is also a JVM language. A language based on the "more features
    is better" philosophy. It is used some places for advanced stuff.
    Including some widely used frameworks: Akka, Spark and the core of Kafka.

    Clojure is a Lisp dialect for JVM. Pretty hot 15 years ago. Rarely
    used in real life.

    Dart is Google not so successful attempt to create what MS
    successfully did with TypeScript. A better language than
    JavaScript transpiled to JavaScript.

    Erlang is a weird language invented by Ericsson a long time
    ago for HA applications. Still used in telecom and a few
    very widely used applications including RabbitMQ.

    Elixir is a higher level language than Erlang but running
    on same platform. Hot but not widely used.

    Haskell is (together with OCaml) one of those finer
    FP languages taught at finer CS studies. And almost
    unused in the real world.

    Elm and Haxe I don't know.

    Arne


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From ram@[email protected] (Stefan Ram) to comp.lang.cobol on Mon Oct 12 15:36:05 2026
    From Newsgroup: comp.lang.cobol

    =?UTF-8?Q?Arne_Vajh=C3=B8j?= <[email protected]> wrote or quoted:
    Haskell is (together with OCaml) one of those finer
    FP languages taught at finer CS studies. And almost
    unused in the real world.

    I think before Haskell, there were many different functional
    languages like Miranda or Hope, and then Haskell became /the/
    mainstream/default functional language. It /is/ used for at
    least one application of high practical value: pandoc.


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Arnold Trembley@[email protected] to comp.lang.cobol on Wed Oct 14 04:14:45 2026
    From Newsgroup: comp.lang.cobol

    On 2026-10-12 8:18 AM, [email protected] wrote:
    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:
    On 2026-10-11 10:54 AM, [email protected] wrote:
    In article <[email protected]>,
    Arnold Trembley <[email protected]> wrote:

    Found this in a thread in the GnuCOBOL forums. It's a link to a website >>>> for creating a COBOL program using AI prompts.

    MAIN-PARA. Ain't seen one of those in a while.

    I asked it to create a program that performs a credit card Mod 10 check
    digit validation using the Luhn algorithm, which is described in a
    Wikipedia article:

    https://en.wikipedia.org/wiki/Luhn_algorithm

    It was the style of the naming convention that caught my eye, Mr Trembley, and the wry grin brought by memories of hours of 'paragraph coding, paragraph-thru EXIT coding and SECTION' coding style arguments that
    resulted.

    DD


    Good times!
    --
    https://www.arnoldtrembley.com/

    --
    This email has been checked for viruses by Avast antivirus software. www.avast.com
    --- Synchronet 3.22a-Linux NewsLink 1.2