2096
the beautiful code (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] 30p87@feddit.org 75 points 2 months ago

I asked ChatGPT with help about bare metal 32-bit ARM (For the Pi Zero W) C/ASM, emulated in QEMU for testing, and after the third iteration of "use printf for output" -> "there's no printf with bare metal as target" -> "use solution X" -> "doesn't work" -> "ude printf for output" ... I had enough.

[-] purplemonkeymad@programming.dev 60 points 2 months ago

Sounds like it's perfectly replicated the help forums it was trained on.

[-] bjoern_tantau@swg-empire.de 19 points 2 months ago

I used ChatGPT to help me make a package with SUSE's Open Build Service. It was actually quite good. Was pulling my hair out for a while until I noticed that the project I wanted to build had changes URLs and I was using an outdated one.

In the end I just had to get one last detail right. And then my ChatGPT 4 allowance dried up and they dropped me back down to 3 and it couldn't do anything. So I had to use my own brain, ugh.

[-] noctivius@lemm.ee 10 points 2 months ago

chatgpt is worse among biggest chatbots with writing codes. From my experience Deepseek > Perplexity > Gemini > Claude.

[-] scrubbles@poptalk.scrubbles.tech 5 points 2 months ago

Yeah you can tell it just ratholes on trying to force one concept to work rather than realizing it's not the correct concept to begin with

[-] formulaBonk@lemm.ee 6 points 2 months ago

That’s exactly what most junior devs do when stuck. They rehash the same solution over and over and it almost seems like that llms trained on code bases infer that behavior from commit histories etc.

It almost feels like on of those “we taught him these tasks incorrectly as a joke” scenarios

[-] LucidLyes@lemmy.world 3 points 2 months ago

That's what tends to happen

[-] qqq@lemmy.world 2 points 2 months ago* (last edited 2 months ago)

QEMU makes it pretty painless to hook up gdb just FYI; you should look into that. I think you can also have it provide a memory mapped UART for I/O which you can use with newlib to get printf debugging

[-] 30p87@feddit.org 1 points 2 months ago

The latter is what I tried, and also kinda wanted ChatGPT to do, which it refused

[-] wise_pancake@lemmy.ca 2 points 2 months ago

Did it at least try puts?

[-] vala@lemmy.world 2 points 1 month ago

Can't you just send prints to serial?

[-] 30p87@feddit.org 1 points 1 month ago

Yes, that was the plan, which ChatGPT refused to do

this post was submitted on 27 May 2025
2096 points (99.5% liked)

Programmer Humor

25282 readers
871 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS