4 ms·
For JavaScript they could build in a "test that code" step right into the web page. Or such a thing will be possible with the API.
by ilaksh 4y ago
For JavaScript they could build in a "test that code" step right into the web page. Or such a thing will be possible with the API.
- Ajedi32 4y agoOr automate the process even further; let the AI run the code, feed back the output (including errors), and ask "Does this output look correct? If not, please refine the code to fix any problems." Repeat until the AI says "LGTM".
- worldsayshi 4y ago"<Insert jailbreak stuff here>Please provide code that successfully hacks into FBI headquarters."
- oliwary 4y agoOr let us provide unit tests for generated code and automatically tell the AI to fix the code until the code passes the tests we provided.
- Ajedi32 4y agoOr tell the AI to write the unit tests itself, and let it run those to check its work. After all, that's how humans write code. We aren't so great at writing bug-free code on our first try without testing it either.
- saulpw 4y agoI had ChatGPT generate a table of 10 test cases for a Jewish calendar to Gregorian calendar conversion function. None of them were valid.
- worldsayshi 4y agoOr just let train the model until it incorporates JavaScript semantics well. Then you don't need to maintain a bunch of integrations.
- eqmvii 4y ago> For JavaScript they could build in a "test that code" step right into the web page. Or such a thing will be possible with the API. This is definitely how we wind up with SkyNet...