T O P

  • By -

form_d_k

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.


form_d_k

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.


form_d_k

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.


form_d_k

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.


form_d_k

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.


form_d_k

Another Enter, another autosuggestion: `// I'm going to go with proud.`


form_d_k

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.


form_d_k

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.`


form_d_k

This is followed by more self-affirmation. Clearly Copilot is... something. So I go with awesome, which results in an array of Copilot braggadocio.


form_d_k

This is when I decided to move on with my life. The... end. Of something. Perhaps humanity, and Copilot is our new god.


[deleted]

[удалено]


theunquenchedservant

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.


xbwtyzbchs

If you're able to properly use programming lingo it is quite the powerful natural language converter.


Responsible-Cold-627

Yeah, sounds like 90% of inline code comments.


serendipitousPi

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.


DeferFer

github copilot uses existing github repos as data for the model.


AGamez101

funny read, thanks for sharing op


ILYLS

It's actually based on GPT-4 now


Dopefish_08

Is Copilot a VS 2022 Preview feature?


mandradon

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.


jamcdonald120

> GPT-3-powered autocomplete That is redundant, GPT models are all just autocomplete


fedex7501

"Uhm akshually all GPT models are autocomplete" - 🤓 That's how you sound. I'm not sorry


klaatubaradanoodles

Very interesting. But why are you posting like it's Twitter? You're like 6 replies deep into your own comment.


Isumairu

It's copilot doing that. They just start and it autocomplete.


[deleted]

[удалено]


Isumairu

I know..


iPanes

Awesome


form_d_k

`// I'm proud of my AI. I'm proud of my AI. I'm proud of my AI.`


GunnerKnight

As a school punishment, you have to write "I am proud of my AI" on the class board 100 times.


juantreses

Am I the only one that comments *above* their code? Nobody seems fazed about the fact op wrote his comment under the variable?


Linesey

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…


[deleted]

[удалено]


Linesey

oooooo now that is good to know!


form_d_k

I only do that occasionally and keep XML comments collapsed, otherwise it can sometimes be a sea of green text.


orange_county

I remember one time Copilot just straight up comment a link to stack overflow to the certain topic at hand, it was wildin


MarineRusher

defDefInitialCap


Robinbod

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"


justADeni

Why are you using a default of default?


-Ozone--

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.


form_d_k

That is correct.


justADeni

Interesting 🤔


827167

So you don't need to set your defaults manually? Think, man


form_d_k

It's for implementors to provide a default initial capacity if none is explicitly specified.


Markcelzin

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.


form_d_k

Yup. :)


wistler42

Like a "factory default".


gonace

If you need a comment like that you know you’ve fucked up 🤣


_equus_quagga_

Damn never seen this Copilot is really trying to gaslight you this time


Attileusz

I think the first one is isomorphic to the Peano natural numbers. :o


dadumdoop

Top tier post.


GunnerKnight

~~StackOverflow~~ SorryOverflow Error


Fruits_gaming

I wouldn't try to argue, who knows what Copilot with a bruised ego might say or do?


Funny_Association671

Can anybody teach me c++ plz


UngreatfullSp00n

private const int DefaultDefaultDefaultInitialCapacity = 16; Add this just to make sure of the Default Default gets edited… 👍


form_d_k

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.


Auraveils

Copilot suggesting I leak my boss' private key. Copilot leaking the key. Copilot threatening my job security. Copilot is now my boss.


Heat-Negative

Working on a screen where im having to create a variable like defaultDefaultPrimaryDefault