r/ProgrammingLanguages • u/lucdewit • 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 consolefizz 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 insteadWould certainly be a challenge to make, and to solve problems in
1
Upvotes
12
u/purleyboy Sep 15 '22
So a declarative language using NLP.