this post was submitted on 13 Mar 2024
866 points (99.8% liked)

Programmer Humor

32572 readers
118 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 47 comments
sorted by: hot top controversial new old
[–] [email protected] 214 points 8 months ago (1 children)

Oh! I can do better than the LLM to write code:

// TODO (Linus Torvalds) write this app for me, kthxbye.
[–] [email protected] 133 points 8 months ago (2 children)
[–] [email protected] 36 points 8 months ago* (last edited 8 months ago)
[–] [email protected] 14 points 8 months ago

Well, nVidia just got told.

[–] CaptDust 96 points 8 months ago (2 children)

Copilot isn't wrong, they are the best person for the task. 🤷

[–] [email protected] 66 points 8 months ago (1 children)

AI: "Can I copy your work?"

Phil: "Just don't make it obvious."

AI:

[–] [email protected] 1 points 8 months ago

Copilot has become sentient

[–] [email protected] 69 points 8 months ago (1 children)
[–] [email protected] 13 points 8 months ago

Oh nice! Does this exist for EU as well?

[–] [email protected] 54 points 8 months ago (3 children)

Can someone explain why April is nervous about having the username April? I don't get it

[–] [email protected] 79 points 8 months ago (1 children)

Other people reading ToDo(April) will probably assume that feature is slated for April, the month.

[–] [email protected] 9 points 8 months ago

Thank you, that makes sense.

[–] [email protected] 40 points 8 months ago

Because if you didn’t know better, someone seeing “TODO(April)” would probably assume it means “do this sometime in April.” Especially since we’re in the middle of March, with April just around the corner. She’s probably about to get e-mail bombed by git requests.

[–] [email protected] 11 points 8 months ago (1 children)

Apathetically Program Ruthless International Launches

might start a war.

[–] [email protected] 4 points 8 months ago

Oh so it's like C.O.O.K.S.!

[–] [email protected] 34 points 8 months ago (1 children)

lol, did you post Xcrement of a post from Bluesky.

[–] [email protected] 39 points 8 months ago (1 children)

im so sad that people are going to bluesky instead of mastadon

[–] [email protected] 8 points 8 months ago* (last edited 8 months ago) (1 children)

I really tried, a few times and I just can't make it exciting. I find it so boring to search for people and tags I wantto follow. That said, I wasn't a huge Twitter user before, and i don't have bluesky. I'm just hoping one day, mastodon clicks with me.

[–] [email protected] 17 points 8 months ago

You're like me you just don't like user-based sites, I simply much prefer to follow topics than people, I fucking hate people why would I follow them online.

[–] [email protected] 28 points 8 months ago (1 children)

So how exactly does this work?

[–] [email protected] 84 points 8 months ago (1 children)

Copilot is just an LLM trained on all GitHub code. Hence it gives you random stuff from some open source code bases.

[–] [email protected] 58 points 8 months ago (1 children)

Not random, the most used stuff It means this man is either very productive, or else he is constantly having to be told to do his job.

[–] [email protected] 35 points 8 months ago

It is enough if his name appears just once. Modern language models take more than just the last few characters as context.

[–] [email protected] 13 points 8 months ago (3 children)

Does anybody mind explaining, how this might have happened?

[–] [email protected] 65 points 8 months ago (2 children)

Copilot is a LLM. So it's just predicting what should come next, word by word, based off the data its been fed. It has no concept of whether or not its answer makes sense.

So if you've scraped a bunch of open source github projects that this guy has worked on, he probably has a lot of TODOs assigned to him in various projects. When Copilot sees you typing "TODO(" it tries to predict what the nextthing you're going to type is. And a common thing to follow "TODO(" in it's data set is this guy's username, so it goes ahead and suggests it, whether or not the guy is actually on the project and suggesting him would make any sort of sense.

[–] [email protected] 7 points 8 months ago (2 children)

You can absolutely add constraints to control for hallucinations. Copilot apparently doesn't have enough, though.

[–] [email protected] 42 points 8 months ago (1 children)

If GitHub Copilot is anything like Windows Copilot, I can't say I'm surprised.

"Please minimize all my windows"

"Windows are glass panes invented by Michael Jackson in imperial China, during the invasion of the southern sea. Sources 1 2 3"

[–] [email protected] 20 points 8 months ago

Lmao. That's even better when you consider the copilot button replaced the 'show desktop' (ie 'minimize all my windows') button.

[–] [email protected] 13 points 8 months ago

My guess is that Copilot was using a ton of other lines as context, so in that specific case his name was a more likely match for the next characters

[–] [email protected] 2 points 8 months ago

I thought it synced some requests and assigned projects to another user (Saw an ad about github Copilot managing issues and writing PR descriptions sometime ago)

[–] [email protected] 16 points 8 months ago* (last edited 8 months ago) (1 children)

It’s no different from GPT knowing the plot of Aliens or who played the main role in Matilda.

It's seen enough code to recognise the pattern, it knows an author name goes in there, and Phil Nash is likely a prolific enough author that it just plopped his name in there. It's not intelligence, just patterns.

[–] planish 5 points 8 months ago

"Yeah this sounds like a Phil Nash sort of problem, I'll just stick him in here."

[–] [email protected] 15 points 8 months ago

The other answers are great, but if I were to be a bit more laconic:

Copilot is spicy autocorrect. It autocorrected that todo to insert that guy's name because he gets a lot of todos.

[–] [email protected] 1 points 8 months ago (1 children)

I use copilot every day and I have zero clue what this means but I assume it has nothing to do with copilot... ?

[–] whatsisface 54 points 8 months ago (1 children)

Copilot is regurgitating the code he wrote, complete with comments addressed to himself

[–] [email protected] 0 points 8 months ago (1 children)
[–] [email protected] 10 points 8 months ago* (last edited 8 months ago)

This is exactly what it does. It steals code and does not abide by it's license.

Often it also removes or changes the license/attribution.