4 ms·
This is very cool. Two uses come to mind: 1. Alternative variable name suggestions. I am writing code, and I try to figure out what to name a variable that abo
by 6keZbCECT2uB 4y ago
This is very cool.
Two uses come to mind:
1. Alternative variable name suggestions. I am writing code, and I try to figure out what to name a variable that about a data frame which is my performance data which takes the maximum of random samples and batch size leaving data size and thread count, and all I can come up with is unbatched_speed or something. I can think of a lot of scenarios where a context sensitive thesaurus / autocomplete would help. If it's obvious to an AI, maybe it'll be obvious to a junior dev?
2. I expect there are a lot of cases where not technical people could understand code, but get intimidated because it looks like code. An AI to say what the code for the business logic that they care about, but using prose.
- goodside 4y ago#1 is feasible now for short (<4K chars or so) blocks of code. Just paste the code in an indented block as you would in a comment, then after the block ask in English for a list of suggestions for what the variable could be renamed to.
- bilsbie 4y ago2. Is a great idea! I bet that could be useful. Maybe a way to do the same with formulas. I always get hung up on the odd notation and the symbols that aren’t defined anywhere.
- bobbylarrybobby 4y ago2 sounds like auto-generated long-form documentation? That would be a major win for devs and non-devs alike.
- simonw 4y agoI tried writing a tutorial with GPT-3 a few months ago with quite impressive results: https://simonwillison.net/2022/May/31/a-datasette-tutorial-written-by-gpt-3/ https://simonwillison.net/2022/May/31/a-datasette-tutorial-w...