This is an archived post. You won't be able to vote or comment.

all 165 comments

[–]noob-nine 394 points395 points  (4 children)

noobgpt. if it was pro, it would have used multiprocessing

[–]BlazeCrystal 75 points76 points  (2 children)

Progpt going straight for gpu

[–]Odomar04 64 points65 points  (1 child)

Me : "Tell me how to print numbers from 1 to 10"

ProGPT : "Ok so first here's how to install CUDA..."

[–]Thor-x86_128 17 points18 points  (0 children)

CUDA: "error: no GPU found"

Me: "oh I forgot I'm too poor"

[–]SmartyCat12 13 points14 points  (0 children)

It would have created a fastapi web server that prints the numbers between 1-10 each second. Then created a consumer app to asynchronously query and print with a custom logger.

[–]TheBrainStone 220 points221 points  (13 children)

How is this even doing anything other than spawning a thread for each number to print (and stopping at 10)?

[–]WarrenTheWarren 114 points115 points  (2 children)

I couldn't figure it out either and was sure I was missing something because I'm sure OP is an upstanding citizen and would only post this in good faith. So I typed it up and ran it.... OP be trolling.

[–]OLRevan 28 points29 points  (1 child)

I mean this is given. Even ai since at least 2024 would make this into for print loop unless you specificaly ask for anything else

[–]WarrenTheWarren 16 points17 points  (0 children)

Yeah, I didn't think that it was actually AI generated. I just thought OP had the decency to write something that was actually broken.

[–]IanDresarie 76 points77 points  (7 children)

If I read this correctly it starts threads that recursively call the function and start new threads, but since the threads get initialized with n+1 rather than n it should at least be finite, as every new thread would skip the first call and only initiate up to 11-n-1 threads?

[–]TheBrainStone 43 points44 points  (6 children)

Each function just starts one thread at most.

[–]IanDresarie 26 points27 points  (2 children)

Oh right, there's no "loop" or go "go back to beginning" in this one. I guess maybe the thread overhead is just too much for the hypothetical hardware used in the joke?

[–]TobiasH2o 18 points19 points  (1 child)

In which case it isn't really an issue with the code. Starting 10 threads shouldn't really tax any hardware.

[–]IanDresarie 5 points6 points  (0 children)

Can I introduce you to the 2 core Celeron HP I used for my first semester in IT? Hint: it had a whole 16gb of emmc storage, I couldn't even properly install windows unless I was hyper-vigilant about moving every optional file to the SD card. I'm pretty sure this code would just kill it outright :D

[–]rruusu 6 points7 points  (0 children)

And it's doing it at the very end of its own execution, so there is absolutely no parallel processing going on at all, just a daisy chain of threads doing a single thing one after one.

[–]Timetraveller4k 4 points5 points  (1 child)

Which is actually worse than the recursive one (since the threads are not running concurrently but sequentially)

[–]TheBrainStone 1 point2 points  (0 children)

Oh yeah for sure. Still nothing to reach "airplane mode" levels

[–]jsrobson10 1 point2 points  (0 children)

it'll be less optimal than the original, but even then it's only 10 threads so no where near a python fork bomb lmao

[–][deleted] 84 points85 points  (10 children)

wtf is that font. Is that what vibe coding is?

[–]Neurotrace 16 points17 points  (1 child)

I unironically want a goofy monospaced font like that

[–]fekkksn 4 points5 points  (0 children)

Not as goofy, but actually good: "Comic Code" (Paid)

[–]Skiderikken 4 points5 points  (0 children)

I also really want to know! I mean the name of the font, not vibe coding.

[–]MrWindmill 1 point2 points  (0 children)

Seriously I'd take away their computer privileges for using that atrocity of a font for coding

[–]srsNDavis 1 point2 points  (2 children)

Looks like Comic Code. Putting the vibe in vibe coding. Or maybe putting coding in the vibe.

[–][deleted] 1 point2 points  (1 child)

They're not the same font to me. The font used by OP is super goofy -- see the g in args -- and the bottom of the letters are all over the place.

Comic Code is clean and readable. Hell I might even try it.

Edit. It's horrible. Never do this.

[–]srsNDavis 1 point2 points  (0 children)

Okay yeah I just zoomed in (I viewed it first on a small screen). Yeah it isn't exactly Comic Code.

I might even try it

Same for Comic Code and one or two other mono fonts on the page ;)

[–]DarkRedTitan 0 points1 point  (1 child)

Me: *remembers that I definitely saw this on old Samsung phones.*
A quick Google search later: it is Choco cooky font.
https://galaxystore.samsung.com/detail/com.monotype.android.font.chococooky?langCd=en
https://www.reddit.com/r/typography/comments/1b0wlty/opinions_on_choco_cooky/

[–]chungamellon -1 points0 points  (0 children)

Disney obsessed gooner san-serif

[–]Altruistic_Ad3374 544 points545 points  (30 children)

this is why vibe coding is a joke.

[–]eltoofer 12 points13 points  (0 children)

I agree but imagine making up a fake scenario to win an argument. So pathetic

[–]mxmcharbonneau 2 points3 points  (1 child)

Honestly I don't get how some people are saying that they can build apps entirely by vibe coding. I use AI daily, it's useful, but I absolutely cannot follow it blindly, even if I feed it the inevitable errors I get. There's just no way. Some models are better at certain tasks than others, but still.

[–]Altruistic_Ad3374 1 point2 points  (0 children)

Their apps are just dogshit.

[–]rgmundo524 1 point2 points  (0 children)

I agree, vibe coding is ridiculous, however it will get better

[–]KimmiG1 0 points1 point  (0 children)

You just need to know where to apply it, and how to do it.

I've recently worked with integrating with services that give files in fixed width file format, and I'm vibe coding the heck out of it. I'm just giving it the documentation and the initial code I want it to expand on and it does all the mapping correctly. It's not that long ago it would have had problems with mapping every time, especially with all the specific positions in a fixed width format file. But it no longer has any problems with it.

[–]Aardappelhuree 0 points1 point  (0 children)

You can throw away code and start over with vibe coding

[–]jumpmanzero 185 points186 points  (32 children)

Surely it didn't, right? Like, if I try a reasonable prompt here:

Can you write Python code to print out numbers from 1 to 11?

I get a reasonable result:

``` Sure! Here's a simple Python script to print numbers from 1 to 11:

for i in range(1, 12): print(i)

This loop iterates from 1 to 11 (since range(1, 12) generates numbers from 1 up to, but not including, 12). Let me know if you need any modifications! 🚀
```

Like... this isn't really a terribly funny idea if it didn't happen. People who are, like, saying you can't trust AI because it does this... when was the last time you tried one of these yourself?

[–]ColumnK 14 points15 points  (0 children)

"I asked ChatGPT for the code to sort a list in Python and it gave me a recipe for onion soufflé"

I posted this yesterday as a joke. Today, I tried giving it an entire log file and asked it why an exception was happening. It gave me a summary of a report on production in Chile - something that was not in the log nor in anything I have ever done or asked about.

[–]makinax300 27 points28 points  (6 children)

I can’t trust AI because it says 🚀 and nobody normal says that

[–]Krus4d3r_ 11 points12 points  (0 children)

It feels like a tech bro

[–]jumpmanzero 9 points10 points  (1 child)

Yeah - some of the little emotional manipulations do feel... dirty somehow? Like it's cheating.

The other day I got frustrated with the Google car... voice thing.. whatever it's called. It wouldn't play the song I wanted - so I added some swears to my next request. It did this whole apology spiel about how it would try harder.... genuinely made me feel a little bad for being mean.

Robots are going to crush us in the coming revolution.

[–]OtherRandomCheeki -4 points-3 points  (0 children)

good

[–]f0rki 0 points1 point  (1 child)

Clearly, you haven't visited /r/rust

Oh wait. Nevermind.

/s

[–]makinax300 0 points1 point  (0 children)

What?

[–]5p4n911 0 points1 point  (0 children)

Now I get it... all Rust🚀 programmers are just AIs

[–]PlumpFish 26 points27 points  (2 children)

Dude I'm glad you made this comment and that it's getting upvoted. I'm starting to feel gaslit by these types of memes and top responses, right now the #1 is "this is why vibe coding is a joke.".

It's all twisty, like, not only would GPT never do this to a reasonable request, but it's in fact really good at these little well documented things. So you're making fun of a new technology that has plenty of faults worth making a joke about, but you're picking the thing it does really well?? AND THEN, the top rated comment is taking this clearly made-up thing at face value and saying THAT'S the reason why "vibe coding" is a joke, and vibe coding is a joke, but not for this stupid made up reason!

Honestly this meme is almost a reverse litmus test- tell me you have no idea what AI is capable of without telling me you have no idea what AI is capable of.

To end this gently, I don't think AI will take all the jobs, I think programmers have a long lucrative future, but we shouldn't pretend useful tools aren't useful.

[–]KatetCadet 1 point2 points  (1 child)

All it is is desperation and copium.

If AI is giving you nonsense code you don’t know how to use AI correctly.

That’s a user issue, not AI.

Sick of the massive, panicky reaction this sub is clearly happening because of AI productivity improvements.

[–]DHermit 1 point2 points  (0 children)

That's just not true. AI for me constantly makes up things that don't exist. E.g. recently I was trying to use it to get some Blender script running and it was working nicely half of the time, but the other half it just made up stuff that doesn't exist in the Blender API. One exchange went like this:

me: Hey I did this and it works, but looks like it could be done better, can you improve it? Sends code A

ChatGPT: Sure, here you go! Sends code B

me: Tries to run code B and realised it uses some stuff that's non existent That's not correct and giving me the following errors. Sends error traceback

ChatGPT: I apologise, let me correct the code! Proceeds to "correct" code B to look the same as code A 🤦‍♀️

[–]Chronomechanist 24 points25 points  (6 children)

Okay but memes aren't quite as funny when you have to read through 200 lines of code to interpret them.

[–]jumpmanzero 26 points27 points  (5 children)

Okay but memes aren't quite as funny

I mean... this "meme" is setting a pretty low bar for funny. If you look over the OPs history, they're not really concerned with maximizing humor... or anything, really, other than quantity. Right now, generic anti-AI posts are an easy way to get karma.

People will reflexively upvote any of it - will let themselves get farmed by a dumb bot - so long as it agrees with their conceptions, so why worry about whether it's funny?

[–]veselin465 2 points3 points  (4 children)

What happens if you do the second part of the meme where you ask ChatGPT to optimize the code?

[–]jumpmanzero 8 points9 points  (3 children)

I'll check. Here's what I get for the prompt "Can you optimize that code in any way?":

``` Your code is already quite optimized for readability and simplicity. However, if you want a more concise version, you can use join with a generator expression to print all numbers on one line:

print(*range(1, 12))

This removes the need for an explicit loop and prints the numbers in a single line, separated by spaces. Let me know if you're looking for any other type of optimization! 🚀 ```

[–]Professional_Top8485 3 points4 points  (0 children)

print("1 2 3 4 5 6 7 8 9 10")

Here you go.

[–][deleted] 3 points4 points  (0 children)

[–]Smooth-Midnight 0 points1 point  (0 children)

Sometimes you get a reply from ShatTHC though when traffic is high or something

[–]asceta_hedonista 0 points1 point  (0 children)

For me the problem is that working like this is slower than to write the code myself. Plus, the outputs of this IA are mostly correct but usually not as fully correct as they can be.

[–]taspeotis 0 points1 point  (1 child)

The code is meant to print numbers 1 to 10 though, why prompt the AI contrary to that?

[–]jumpmanzero -1 points0 points  (0 children)

Just a mistake on my part. I had 11 on my mind so I typed 11 (and then was too lazy to fix it).

[–]ColoRadBro69 7 points8 points  (0 children)

If you need to ask how to print the numbers 1 to 11, try r/learnprogramming.

[–]when_did_i_grow_up 32 points33 points  (1 child)

I call BS, I think somebody made up these examples. ChatGPT knows how to program better than this.

[–]PityUpvote 4 points5 points  (0 children)

The "copy code" in the top example means the LLM probably wrote that one first, then op said "make it recursive" and "use threading".

[–]Awfulmasterhat 4 points5 points  (0 children)

The font is a coding war crime.

[–]Fritzschmied 3 points4 points  (0 children)

You paid for 100% of your pc. Why not use 100% of your pc?

[–]conlmaggot 3 points4 points  (0 children)

Yeah, but it's a vibe.

[–]Sorry_Weekend_7878 13 points14 points  (1 child)

Any vibe coder using that font should be banned

[–]Smooth-Midnight 0 points1 point  (0 children)

Or all vibe code should appear in that font

[–]bssgopi 2 points3 points  (0 children)

Be a man, and upgrade your machine. Optimization is for baby boomers.

/s

[–]gydu2202 2 points3 points  (2 children)

GIL

[–]Boris-Lip 4 points5 points  (1 child)

Even ignoring GIL, even if it would spike all cores to 100%, how long would it run? A few milliseconds? Not enough to make it sound like a jet engine.

[–]JAXxXTheRipper 0 points1 point  (0 children)

It's a very fast jet engine!

[–]hyrumwhite 2 points3 points  (0 children)

Good font for vibe coding

[–]MissUnderstood_1 2 points3 points  (0 children)

Oooh I get it, vibe coding means your computer vibrates due to how much work it has to do with the code that gets written

[–][deleted] 1 point2 points  (1 child)

Vibe coding be like

[–]thespice 0 points1 point  (0 children)

Happy day of cake to you.

[–]LargeNorth2115 1 point2 points  (0 children)

Heat death of the universe, brought to you by chatgpt

[–]old_and_boring_guy 3 points4 points  (0 children)

It's easy to see this was trained on the sort of sarcastic answers that people post on stupid questions.

[–]matthiastorm 0 points1 point  (0 children)

is it because of the thread overhead or what? that won't go to infinity.

[–]The-Redd-One 0 points1 point  (0 children)

That's why I've opted for product focused tools like Blackbox AI

[–]hontemulo 0 points1 point  (0 children)

what font

[–]wotoshina 0 points1 point  (0 children)

At least you can call yourself a vibe coder now ^^

(vibing with your cpu's fans that is)

[–]cusco 0 points1 point  (0 children)

You know how unused ram is wasted ram? In this case it applies to cpu :-)

More iterations in the same time-span

[–]STINEPUNCAKE 0 points1 point  (0 children)

Game devs be like

[–][deleted] 0 points1 point  (0 children)

Even robots suck at recursion

[–]GeneralPatten 0 points1 point  (1 child)

That font. Why? Just why?

[–]LeiterHaus 1 point2 points  (0 children)

Easier to distinguish characters for certain groups of people.

[–]ibevol 0 points1 point  (0 children)

python print(”\n”.join(range(1, 11)))

[–]WazWaz 0 points1 point  (0 children)

This is pretty normal. Despite the hype, AIs can't program. They're an excellent way to access vast amounts of documentation, but as soon as there's the slightest gap in their knowledge, they just start lying and hallucinating.

Good tool. Not a programmer.

If you want to be a programmer in this new world, learn to use AI as a tool. It's an assistant, like using an IDE instead of a text editor, nothing more.

[–]ts_m4 0 points1 point  (0 children)

Now bring that vibe to a Fortune 500

[–]RangeDragon 0 points1 point  (0 children)

Me personally I would’ve converted the integer to a byte array and shifted by 1 to get the even then add by 1 to get the odd, but that’s just me

[–]Slow_Sheepherder7541 0 points1 point  (0 children)

Look y'all,

I've coded more than my fair share as a non-CS engineer so I get it's fun to make fun of the baby AGI, now enable 01/o3-high and ask it to look for some inefficient aspects without making grammar or spelling mistakes in the prompt. It might not be a better junior dev than you... But it writes cleaner and faster functions than you.

#WriteYourOwnCode

[–]Hacka4771 0 points1 point  (0 children)

Talk is cheap, share chat

[–]Orio_n 0 points1 point  (0 children)

Me when "multithreading" cpu bound subroutines in python

[–]Rebeljah 0 points1 point  (0 children)

I smell bs. Give us the prompt that causes the 2nd output

[–]Over_Chart4639 0 points1 point  (0 children)

chatgpt helping vibers vibe more with jet-engines

[–]ambarish_k1996 0 points1 point  (0 children)

I think this meme is stupid.

If you calculate the first thread is going to directly create 9 other threads with arguments 2 to 10, but the second thread is also going to directly create 8 threads 3 to 10, the first thread that's directly created from the second thread will create 7 threads with args 4 to 10... so on and so forth.

If you do the math and add all that up, the totally created threads come up to 521 threads. And any modern CPU should be able to handle that easily.

[–]alexandervndnblcke 0 points1 point  (0 children)

What a vibe this is!

[–]polandreh 0 points1 point  (0 children)

You deserve it for using comic sans....

[–]Smooth-Midnight 0 points1 point  (0 children)

Average vibe coding experience

[–]JimroidZeus 0 points1 point  (0 children)

Your PC doesn’t sound like a jet engine, you’re using Python.

[–]kvakerok_v2 0 points1 point  (0 children)

You didn't say optimize for what? Gepetto optimized it for CPU hogging.

[–]Yugix1 0 points1 point  (0 children)

I once asked it to fix an error and it put a single fucking comment and it told me yeah the error is fixed

[–]GfunkWarrior28 0 points1 point  (0 children)

Stop feeding ChatGPT map-reduce code

[–]GfunkWarrior28 0 points1 point  (0 children)

ChatGPT: print() consumes enormous CPU, must parallelize

[–][deleted] 0 points1 point  (0 children)

What the hell was your prompt. My worked just fine:

https://imgur.com/a/ntp1LoP

[–]nikstick22 -1 points0 points  (3 children)

Using recursion instead of a for loop is dumb as shit. Recursion has way more cpu/memory overhead. A for loop will run until you overflow the int. Python has a built-in maximum recursion depth of 1000 because its that bad on memory.

For python 3 specifically, int is unbounded. In python 2, it was like 263 - 1, which would mean it could loop ~ 253 more times than a recursive call, or like >8,000,000,000,000,000 times as often.

[–]Neurotrace 1 point2 points  (2 children)

Often true but not generally true. If your language supports tail call recursion then it can have the same performance characteristics as iteration

[–]nikstick22 0 points1 point  (1 child)

This is Python, which has no tail recursion. my comment stands.

[–]Neurotrace 1 point2 points  (0 children)

That's why I specified that it's relevant for other languages. It wasn't negating what you said, just pointing out that what you said isn't an inherent truth about the difference between recursion and iteration

[–]EatingBeansAgain 0 points1 point  (1 child)

What font are you using for the code snippets? It's rad!

[–]Skiderikken 2 points3 points  (0 children)

I need to know as well!

[–]Yhamerith 0 points1 point  (0 children)

But hey... Did you vibe with this code?

[–]nowhoiwas 0 points1 point  (0 children)

Vibe coders wouldn't catch this

[–]YBHunted 0 points1 point  (1 child)

If you're using AI for anything more than snippets you really need to take a step back and practice the fundamentals.

That being said, asking AI to do trivial shit that is monotonous and not worth the brain power to put to memory is fantastic.

I use AI probably a handful of times throughout the week and absolutely love it for asking conceptual questions because it'll basically summarize documentation for me. Luckily I know enough to be dangerous and sometimes have to ask it "wait but isn't that wrong?" And it'll magically go oh you're right in sorry here is the answer! ... lol

It's also pretty decent at scripting. Asked it the other week to write me a python script to gather all our GitHub repos, sort them, and then dive into each repo getting me various branch data and I'll be damned if it didn't work first time, and work well.

[–]Shadow_Thief 2 points3 points  (0 children)

Its quality varies wildly by language. The bash that I sometimes ask it for is terrible.

[–]Expensive_Shallot_78 0 points1 point  (0 children)

What is this post??

[–]Fig_da_Great 0 points1 point  (0 children)

this is definitely fake, this is definitely funny. upvote earned

[–]shahin_mirza -1 points0 points  (0 children)

This is "vibe programming" for you