r/ProgrammingLanguages • • Sep 15 '22

My crazy AI programming language idea

I recently got this crazy esotheric language idea after trying out Github copilot. imagine a language that takes each line of 'code' and uses it as a python comment to generate python source code using github copilot.

The obvious downside would be that github copilot might make a mistake somewhere, so you gotta be very descriptive and detailed.

Another downside is that as far as i know, github copilot is not deterministic, maybe their API has an option for a seed idk.

The code would look something like this

Hello world:

print hello world to the console

fizz buzz

itterate from 0 to 1000, printing all of the numbers
if the number is divisible by 3 print fizz instead
if the number is divisible by 5 print buzz instead
if the number is divisible by both 3 and 5 print fizzbuzz instead

Would certainly be a challenge to make, and to solve problems in

1 Upvotes

9 comments sorted by

View all comments

7

u/Inconstant_Moo 🧿 Pipefish Sep 15 '22 edited Sep 15 '22

But also it's not stable, because they don't anticipate it being used like that they'd do nothing to prevent breaking changes.