Experimentally Inventing a Programming Language Using Chat GPT

#108 · ✸ 34 · 💬 6 · one year ago · smaller.fish · smallerfish · 📷
I read a post on HN about somebody who used ChatGPT to invent the rules for a new human language. I thought it would be interesting to see if ChatGPT could also be used to create a new programming language. In my first attempt, I started by attempting to build a language from the ground up. Building a language from the ground up in this way was quite tedious, and after about an hour ChatGPT appeared to have forgotten some rules that we'd decided on. Then I asked it about major features that Scala had which Kotlin did not, and we adopted a few into our language. Can you write two example programs using this language? first, show an efficient way to calculate the fibonacci sequence up to 1000. My language modifications were fairly ad hoc; if you approached this in a more deliberate way, you might get better results out of it.
Experimentally Inventing a Programming Language Using Chat GPT



Send Feedback | WebAssembly Version (beta)