Google Bard can now program in over 20 languages

Jan

Who's the Boss?
Staff member
Joined
May 24, 2010
Messages
14,768
Reaction score
13,408
Location
The Rabbit Hole
Google's AI tool can now code in more than 20 languages

Google’s AI-powered generative text rival for ChatGPT, Bard, is now capable of code generation, debugging, and code explanation in more than 20 programming languages, says Google.

“With new coding capabilities, we’re excited to apply generative AI to accelerate software development, inspire innovation, and help people solve complex engineering challenges.”
 
This might be a good replacement for the ageing COBOL developers.
 
This might be a good replacement for the ageing COBOL developers.
Not really a replacement but it would help speed up existing devs on any COBOL work they might need to do. I doubt whether anyone will be re-architecting a cobol system. It would either be adding new business logic, or getting it to play nicely with a new interface.

Code:
IDENTIFICATION DIVISION.
PROGRAM-ID. QUERY-OPENAI-API.

DATA DIVISION.
WORKING-STORAGE SECTION.
01  RESPONSE-LENGTH PIC S9(4) COMP.
01  RESPONSE-DATA PIC X(1000).
01  API-KEY PIC X(100) VALUE "YOUR_API_KEY_HERE".
01  QUESTION PIC X(100) VALUE "how to slice a cake".

PROCEDURE DIVISION.
    CALL "CBL_OC_GET" USING
        BY REFERENCE "https://api.openai.com/v1/engines/davinci-codex/completions"
        BY REFERENCE API-KEY
        BY REFERENCE "application/json"
        BY REFERENCE QUESTION
        BY REFERENCE RESPONSE-LENGTH
        BY REFERENCE RESPONSE-DATA.

    DISPLAY RESPONSE-DATA.
    STOP RUN.
 
Great, now companies can save costs and get rid of all those Javascript, PHP, RoR and other developers. Computerization is the way to go and replace normal emotional workers.
 
Top
Sign up to the MyBroadband newsletter
X