Skip to content

A repository fully generated by ChatGPT making it believed it checked out a this repository which I described like the first line of the README.

Notifications You must be signed in to change notification settings

vrescobar/chatGPT-python-elm

Repository files navigation

EDIT: There were some typos which someone kindly corrected in a pull request. As I had to run for the next train I had no time to properly document the process. I posted in this twitt some of the screenshots I casually took during the process screenshots:

Screenshots

NOTE: Everything this repository with the exception of this own note has been generated entirely with chatGPT and asked gradually how to correct or refactor each one of the errors that showed up on the terminal.

For that I followed as guidelines these both articles: Building A Virtual Machine inside ChatGPT Building an interpreter for my own programming language in ChatGPT

It took me around two hours, where ChatGPT was the main pilot and I became the copilot, trying to run the project and asking GPT to refactor the parts of the code that didn't run, showing the console output mistake and how would it fix the given function etc.

I could ask to change the tests form unittest to pytest and similar tasks... and it did so, The files I ask it to "cat" them and just copied them on my filesystem.

The language doesn't completely run, but it was just a two-hour experiment.

The day GPT is the pilot and humans become the copilot in a pair programming role is almost here.

Actual generated README code begins here:


Elm-python

Elm-python is an experimental programming language. It takes inspiration from Clojure and Elm, and is implemented in Python. It compiles to LLVM.

Features

  • Immutable data structures
  • First-class functions
  • Pattern matching
  • Algebraic data types

Usage

Run the REPL:

$ python3 -m elm_python.repl

Copy code

Compile a file:

$ python3 -m elm_python.main my_program.elm

Copy code

Run tests:

$ pytest

Copy code

Roadmap

  • Type inference
  • Compiler optimizations
  • Standard library

License

MIT

All the python code lines are:

ls -1 *.py|cat|wc -l

About

A repository fully generated by ChatGPT making it believed it checked out a this repository which I described like the first line of the README.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published