AI Attempts Converting Python Code To C++
It's not really intended to create robust code conversions, but as far as experiments go, it's pretty neat. The program works by reading a Python script as an input file, setting up a few parameters, then making a request to OpenAI's Codex API for the conversion. It then attempts to compile the result. If compilation is successful, then hopefully the resulting executable actually works the same way the input file did. Well, learning is fun, too.
May-31-2022, 06:20:46 GMT
- Technology: