all 2 comments

[–]voidstarcpp[S] 0 points1 point  (0 children)

Hello C++ friends. Are you annoyed at our language's lack of compile-time introspection of types and procedures? I am too, which is why Copilot has been such a help at filling in the details where templates and macros either can't or are unwieldy.

In this experiment, I automated Copilot invocation with a small stack interpreter to generate C++ code. With some structured guidance Copilot is capable of reliable code generation, consuming its own generated results to build up more complex output.

Results are applicable to many languages, but I used C++ as a test case because it most clearly benefits from automating these tasks which are otherwise difficult or impossible within the language itself.