4 ms·
How does using GPT-3 make the types more visible? Feels futuristic but also incomprehensible to me. > As a shortcut, I used GPT-3 to generate a basic typescrip
by pantojax45 4y ago
How does using GPT-3 make the types more visible? Feels futuristic but also incomprehensible to me.
> As a shortcut, I used GPT-3 to generate a basic typescript function for me. This let me look at TS type definitions and get a better idea of what’s available so I could get developing.
- lelandfe 4y agoHope the author responds, because that stuck out to me too! My assumption was that their prompt was something like "typescript cloudflare function" and they just used the resultant code to see types in action inside their IDE.
- wilg 4y agoGitHub Copilot is GPT-3 under the hood, so maybe that way?
- tarasglek 4y agoI use copilot, but not for this. I find raw gpt-3 conversational interface to be much more useful for getting over various small programming puzzles.
- Filligree 4y agoPrompted correctly, I find that Copilot can do pretty much everything GPT-3 can except generating long-form prose. You're probably right that it's more flexible, but then again I don't want to constantly switch out of IDEA.
- tarasglek 4y agoI think we need work in conversational interfaces into IDEs. Tab-completion is insufficient
- tarasglek 4y agoAuthor here. I just got access to OpenAI codex. I used edit function and asked it to modify the JS hello world, to add typescript annotations. This is the git commit following that gpt conversation :) -export async function onRequest(context) { +export async function onRequest(context: { + request: Request; + env: { [key: string]: string }; + params: { [key: string]: string }; + waitUntil: (promise: Promise<any>) => void; + next: () => Promise<void>; + data: { [key: string]: any }; +}) { Not as minimal as the code I posted, but it got me over the stumbling block.
- jopsen 4y agolol, I was 50% sure that you were being sarcastic about using GPT-3, hehe But if anyone is edgy enough to use AI as a shortcut, I guess it would be the guy who did telemetry ingestion on a t2.micro :D Regards Jonas,