https://github.com/vrescobar/chatgpt-python-elm
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.
https://github.com/vrescobar/chatgpt-python-elm
Last synced: 1 day ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/vrescobar/chatgpt-python-elm
- Owner: vrescobar
- Created: 2022-12-04T15:40:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T21:31:14.000Z (over 2 years ago)
- Last Synced: 2025-03-28T07:51:12.696Z (19 days ago)
- Language: Python
- Size: 18.6 KB
- Stars: 119
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chatGPT-python-elm - 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. (Others)
README
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](https://twitter.com/nudpiedo/status/1599444651462733824?s=20&t=r4OSZwzNu9GOI4XYPqi8Wg)
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](https://www.engraved.blog/building-a-virtual-machine-inside/)
[Building an interpreter for my own programming language in ChatGPT](https://6502.is-a.dev/posts/aoc-2022/)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 typesUsage
-----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 libraryLicense
-------MIT
All the python code lines are:
ls -1 *.py|cat|wc -l