813
Checkmate (lemdro.id)
submitted 4 months ago by governorkeagan to c/programmerhumor@lemmy.ml
all 26 comments
sorted by: hot top controversial new old
[-] Tolookah@discuss.tchncs.de 115 points 4 months ago

Damn, maybe we can be replaced...

[-] jaybone@lemmy.world 10 points 4 months ago

These are exactly the people it will replace.

The question is, which one will write shittier code that the rest of us need to clean up.

[-] GissaMittJobb@lemmy.ml 81 points 4 months ago

You can't deny that it correctly predicted the most likely token in this case.

[-] xmunk@sh.itjust.works 46 points 4 months ago

You're probably using the wrong compiler flags, did you remember -Wall -Oz -nostdlib?

[-] Aatube@kbin.melroy.org 41 points 4 months ago* (last edited 4 months ago)

-Oz

Optimize aggressively for size rather than speed.

TIL

[-] xmunk@sh.itjust.works 29 points 4 months ago

It is, honestly, the dumbest of the -O flag option, which is why I picked it. I'm sure there are times when it's useful, but it's nearly never the right choice.

[-] YourAvgMortal@lemmy.world 13 points 4 months ago

Wasm comes to mind, execution time in the browser will probably be ok, but size is a big deal

[-] dan@upvote.au 8 points 4 months ago

Software that runs on embedded systems usually benefits from being small, too.

[-] Thorry84@feddit.nl 4 points 4 months ago

As someone who has worked on embedded systems for the past 30 years: It used to be a real big deal, but for the past 10-15 years it hasn't. We now have fully fledged multi core systems running everything. Even small embedded sensors or actuation controllers are 100+ MHz microcontrollers with oodles of flash and ram.

Now there has been an interesting turnaround with the whole chip shortage for the past years. All the young folk are at a loss, being used to just putting powerful chips all around willy-nilly. So they turn to the old folk like me to figure out designs with less chips, running busses all over and connecting dumb sensors/actuators to a central processing unit.

[-] SexualPolytope@lemmy.sdf.org 45 points 4 months ago

That's why docker was created.

[-] demesisx@infosec.pub 21 points 4 months ago* (last edited 4 months ago)

Imma let you finish but Nix had the best repeatable, declarative, deterministic dependency management of all times…of all times.

[-] Laser@feddit.de 5 points 4 months ago

Is docker even declarative?

Also you can build docker images from nix derivations

[-] demesisx@infosec.pub 13 points 4 months ago* (last edited 4 months ago)

Is docker even declarative?

Yes (though not as deterministic as Nix).

Also you can build docker images from nix derivations

Yes. I know.

[-] user224@lemmy.sdf.org 1 points 4 months ago

Nah, screw that.
Time to distribute stuff as a VM image.

[-] ulterno@lemmy.kde.social 16 points 4 months ago* (last edited 4 months ago)

1950s

A: The transistor I made using your blueprint doesn't switch properly at 12V.
Maker of Blueprint: The one I made, works at 12V.
B: I'mma make standard transistors.

why?Blueprint was made by a person in the tropics.
A was in Europe

[-] palordrolap@kbin.social 32 points 4 months ago

Is it still the norm to go to the dev's office, yank their power cord and when they ask what we're doing, tell them we're shipping their machine to the client because it's the only one that the code runs on?

And can we do that with whatever server ChatGPT-4o is running on?

I'm assuming that this response from 4o isn't real and was invented for the laugh, but it would be tempting to throw this scenario at it if it decided to give this response.

[-] Melkath@kbin.social 33 points 4 months ago

The real joke was the pain that every developer feels when the end user gives such useful and actionable feed back as "It broke. Fix. Unga bunga."

"It works on my machine" is trying to be polite when, after hours and hours of trying to teach a person how to report a bug with necessary information, all they ever get is "It broke. Fix. Unga bunga."

[-] Skates@feddit.nl 0 points 4 months ago* (last edited 4 months ago)

No, "it works on my machine" is the ever-tiring excuse every junior dev gives when they're inexperienced enough to not understand that environments differ and just because yours is setup to run your code, doesn't mean you did everything right so that an end-user can also run it. Did you package VCredist? Did you update the environment? Are you using another fucking compiler for some retarded 25-year-old's reason instead of the one we use on our production server, so now every build is failing because you didn't hold a review and pushed to master?

"It works on my machine" is spoken as if it should end all debugging. Goddamn, if it works on your machine and it doesn't work on another machine, that's a great clue. That's where your debugging begins.

[-] Melkath@kbin.social 1 points 4 months ago

Wow.

You sound angry. And quite outdated.

[-] kernelle@lemmy.world 21 points 4 months ago

"an error" okaay

[-] lugal@lemmy.ml 5 points 4 months ago

Learned from the best

[-] perishthethought@lemm.ee 3 points 4 months ago

man, that thing's great!

don't praise the machine

https://frinkiac.com/img/S05E17/494293.jpg

[-] Daxtron2@startrek.website 2 points 4 months ago
[-] mashbooq@infosec.pub 2 points 4 months ago

The first indication I've seen that ChatGPT might actually be an AI

this post was submitted on 24 May 2024
813 points (98.7% liked)

Programmer Humor

32144 readers
121 users here now

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

Rules:

founded 5 years ago
MODERATORS