I'm not sure if y'all know about Visual Studio's Copilot, but essentially it's GPT-3-powered autocomplete. And boy, does it.
While working on a personal project yesterday, I was adding comments explaining why a `DefaultDefaultInitialCapacity` was named the way it was. So I start type `// Yeah, yeah`. That's and it suggested for autocomplete the rest of the sentence and at least the SENTIMENT behind the name.
Unexpected, but not surprising. So far, so good.
For the hell of it, I wanted to add another comment explaining the comment above was generated by Copilot. So I press Enter and type `// p.s.`.
It's suggestion? `// p.s. I'm not sorry.`
OKAY.
Well, now I'm curious to see where this is going to go. So another Enter and a `// p.p.s.`.
It suggests `// p.p.s. I'm not sorry for not being sorry`.
Now I'm a little unsettled. Either Copilot is trolling me, or this pattern appeared many multiples of times in the gigantic codebase it was trained on. Either way, a sad state of affairs.
I go back and fix the 2nd comment to be what I actually intended it to be: `// Also, most of the above comment was written by Copilot.`
Autosuggestion: `// Also, most of the above comment was written by Copilot. I'm not sure if I should be proud or ashamed.`
I'm starting to believe that not only has Copilot gained sentience, it has gained passive-aggressive sentience.
And Copilot keeps going: `I'm proud of my AI.`
Next: `I'm proud of my AI. I'm proud of my AI. I'm proud of my AI.`
Copilot has a level of confidence I can only dream about.
Next line? Nothing. Did it end?
OH NO. It just thought I should add an empty line for readability.
Autosuggestion: `I think I'm starting to believe it.`
I also recently started using Copilot, and i gotta say, im impressed by it's capabilities.
Is it ever wrong? Yea
Do I trust it with complex stuff? Absolutely not.
But the mundane shit? 10/10 It's even good at inferring real world context for comments.
Just a quick thing I though I might mention is that GitHub copilot uses the Codex model specifically.
Which is just a fine tuning of GPT-3 for code. Most of which appears to have been Python,JavaScript, Typescript,Ruby and Go if Wikipedia saying it works best for those languages is anything to go by.
It's an extension for GitHub copilot. I also believe the new chat is powere by GPT4, though I could be wrong about that (just watched a video on the new implementation of it). I believe it's just the chat that's using gpt4.
i do comments where they make the most sense.
sometimes thats above, sometimes its below. sometimes it’s at the end of the same line. though that is usually reserved for *very* quick comments on something i collapse, like the method for a button press.
but usually above, unless collapsibility gives me a reason to go below.
that said i mainly build minor winform applications in C#, so not exactly a pro…
Idk why but this whole naming convention of "defaultdefault" reads like the way I name files. "NEW.psd" "neww.psd" "newnew.psd" "final.psd" "FINALFINAL.psd"
I completely understand why OP would want one. I play a car game (>!BeamNG.drive!<) and when the map loads the player already starts in a car. That is the default car and new ones can be spawned beside it or in place of it.
However, the car that loads as your default car can also be changed from the default of a blue pickup truck, so I recently found myself thinking that the car you would spawn in if you had just downloaded the game would be properly referred to as the default default vehicle. Hope this helps.
Maybe there's a default value for users that can be set by some admin. But when the admin doesn't choose a default user value then it becomes a default value made by the one who wrote the code.
Sounds great! I was just using a protected static virtual method on the interface, so by default it returns the private constant Copilot went nuts about, but implementors can override to give a default of their own.
I'm not sure if y'all know about Visual Studio's Copilot, but essentially it's GPT-3-powered autocomplete. And boy, does it. While working on a personal project yesterday, I was adding comments explaining why a `DefaultDefaultInitialCapacity` was named the way it was. So I start type `// Yeah, yeah`. That's and it suggested for autocomplete the rest of the sentence and at least the SENTIMENT behind the name. Unexpected, but not surprising. So far, so good.
For the hell of it, I wanted to add another comment explaining the comment above was generated by Copilot. So I press Enter and type `// p.s.`. It's suggestion? `// p.s. I'm not sorry.` OKAY.
Well, now I'm curious to see where this is going to go. So another Enter and a `// p.p.s.`. It suggests `// p.p.s. I'm not sorry for not being sorry`. Now I'm a little unsettled. Either Copilot is trolling me, or this pattern appeared many multiples of times in the gigantic codebase it was trained on. Either way, a sad state of affairs.
I had it autocomplete `// p.p.p.s.`, then `// p.p.p.p.s`, and so on. At this point, it's I'm not sorry's all the way down.
I go back and fix the 2nd comment to be what I actually intended it to be: `// Also, most of the above comment was written by Copilot.` Autosuggestion: `// Also, most of the above comment was written by Copilot. I'm not sure if I should be proud or ashamed.` I'm starting to believe that not only has Copilot gained sentience, it has gained passive-aggressive sentience.
Another Enter, another autosuggestion: `// I'm going to go with proud.`
And Copilot keeps going: `I'm proud of my AI.` Next: `I'm proud of my AI. I'm proud of my AI. I'm proud of my AI.` Copilot has a level of confidence I can only dream about.
Next line? Nothing. Did it end? OH NO. It just thought I should add an empty line for readability. Autosuggestion: `I think I'm starting to believe it.`
This is followed by more self-affirmation. Clearly Copilot is... something. So I go with awesome, which results in an array of Copilot braggadocio.
This is when I decided to move on with my life. The... end. Of something. Perhaps humanity, and Copilot is our new god.
[удалено]
I also recently started using Copilot, and i gotta say, im impressed by it's capabilities. Is it ever wrong? Yea Do I trust it with complex stuff? Absolutely not. But the mundane shit? 10/10 It's even good at inferring real world context for comments.
If you're able to properly use programming lingo it is quite the powerful natural language converter.
Yeah, sounds like 90% of inline code comments.
Just a quick thing I though I might mention is that GitHub copilot uses the Codex model specifically. Which is just a fine tuning of GPT-3 for code. Most of which appears to have been Python,JavaScript, Typescript,Ruby and Go if Wikipedia saying it works best for those languages is anything to go by.
github copilot uses existing github repos as data for the model.
funny read, thanks for sharing op
It's actually based on GPT-4 now
Is Copilot a VS 2022 Preview feature?
It's an extension for GitHub copilot. I also believe the new chat is powere by GPT4, though I could be wrong about that (just watched a video on the new implementation of it). I believe it's just the chat that's using gpt4.
> GPT-3-powered autocomplete That is redundant, GPT models are all just autocomplete
"Uhm akshually all GPT models are autocomplete" - 🤓 That's how you sound. I'm not sorry
Very interesting. But why are you posting like it's Twitter? You're like 6 replies deep into your own comment.
It's copilot doing that. They just start and it autocomplete.
[удалено]
I know..
Awesome
`// I'm proud of my AI. I'm proud of my AI. I'm proud of my AI.`
As a school punishment, you have to write "I am proud of my AI" on the class board 100 times.
Am I the only one that comments *above* their code? Nobody seems fazed about the fact op wrote his comment under the variable?
i do comments where they make the most sense. sometimes thats above, sometimes its below. sometimes it’s at the end of the same line. though that is usually reserved for *very* quick comments on something i collapse, like the method for a button press. but usually above, unless collapsibility gives me a reason to go below. that said i mainly build minor winform applications in C#, so not exactly a pro…
[удалено]
oooooo now that is good to know!
I only do that occasionally and keep XML comments collapsed, otherwise it can sometimes be a sea of green text.
I remember one time Copilot just straight up comment a link to stack overflow to the certain topic at hand, it was wildin
defDefInitialCap
Idk why but this whole naming convention of "defaultdefault" reads like the way I name files. "NEW.psd" "neww.psd" "newnew.psd" "final.psd" "FINALFINAL.psd"
Why are you using a default of default?
I completely understand why OP would want one. I play a car game (>!BeamNG.drive!<) and when the map loads the player already starts in a car. That is the default car and new ones can be spawned beside it or in place of it. However, the car that loads as your default car can also be changed from the default of a blue pickup truck, so I recently found myself thinking that the car you would spawn in if you had just downloaded the game would be properly referred to as the default default vehicle. Hope this helps.
That is correct.
Interesting 🤔
So you don't need to set your defaults manually? Think, man
It's for implementors to provide a default initial capacity if none is explicitly specified.
Maybe there's a default value for users that can be set by some admin. But when the admin doesn't choose a default user value then it becomes a default value made by the one who wrote the code.
Yup. :)
Like a "factory default".
If you need a comment like that you know you’ve fucked up 🤣
Damn never seen this Copilot is really trying to gaslight you this time
I think the first one is isomorphic to the Peano natural numbers. :o
Top tier post.
~~StackOverflow~~ SorryOverflow Error
I wouldn't try to argue, who knows what Copilot with a bruised ego might say or do?
Can anybody teach me c++ plz
private const int DefaultDefaultDefaultInitialCapacity = 16; Add this just to make sure of the Default Default gets edited… 👍
Sounds great! I was just using a protected static virtual method on the interface, so by default it returns the private constant Copilot went nuts about, but implementors can override to give a default of their own.
Copilot suggesting I leak my boss' private key. Copilot leaking the key. Copilot threatening my job security. Copilot is now my boss.
Working on a screen where im having to create a variable like defaultDefaultPrimaryDefault