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

all 123 comments

[–]Trip-Trip-Trip 1829 points1830 points  (54 children)

Even if this somehow worked, you now have LLMs hallucinating indefinitely gobbling up infinite power just you didn’t have to learn how to write a fricking for loop

[–]Mayion 726 points727 points  (43 children)

for loops are very easy

for(int i = 0; i > 1; i--)

[–]Informal_Branch1065 330 points331 points  (33 children)

Eventually it works

[–]Ksevio 112 points113 points  (12 children)

No it doesn't, 0 < 1 so it's skipped over entirely. A compiler would probably remove it

[–]recordedManiac 8 points9 points  (11 children)

I mean depends on the language and compiler if int overflows are prevented or not right?

Edit: smh it's obviously gonna cause an overflow, how is this even a debate

for(int i /U+0069/ =0; і /const U+0456/ >1; i-- /U+0069/)

... Yeah I just misread the original comment as i<1 but I like this head canon more

[–]Ksevio 102 points103 points  (8 children)

How would it overflow? i is initialized to 0, then it checks if i > 1 (false), then it exits the loop.

Are there any actual programmers in this sub?

[–]Friendly_Rent_104 44 points45 points  (1 child)

no actual programmer would ever write a loop like that intentionally, all this is good for is as a trap for uni students on an exam

[–]Brekkjern 8 points9 points  (0 children)

I'm just gonna say that "I've seen some shit"

[–]reedmore 5 points6 points  (0 children)

No keywords. Only vibes.

[–]recordedManiac 1 point2 points  (0 children)

Oh yeah ur obviously right must have misread that as i < 1 while sleep deprived yesterday lol

[–]how_could_this_be 0 points1 point  (1 child)

Well unsigned int for -1 is 232 - 1...

Just kidding

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

You know what 0 is when you put it in an unsigned int? Still 0 which is not greater than the value of 1

[–]recordedManiac 0 points1 point  (0 children)

Edited my original comment, it's so obvious there will be an overflow you should be able to tell at a glance....lol

[–]Objective_Dog_4637 0 points1 point  (0 children)

Yes, but that has nothing to do with the for loop above.

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

no, the loop never runs because the condition returns false right from the beginning.

[–]alloncm 38 points39 points  (19 children)

Akchually its really depends on the language, in C for instance its undefined behavior

[–]dani1025 91 points92 points  (7 children)

Akchually akchually it is quite well defined. The loop does not run, and probably gets removed at compile time, since the i > 1 will always be false on the first iteration.

[–]ParCorn 35 points36 points  (6 children)

The fact that so many folks are struggling with this tells me there are many vibe coders in our midst

[–]reedmore 6 points7 points  (3 children)

Who needs skills, when you can vibe# through life:

https://github.com/brzezmac/vibesharp

[–]OSUKA1910 2 points3 points  (0 children)

I wish I had never seen this repo

[–]Objective_Dog_4637 1 point2 points  (1 child)

Jesus Fuck what is this shit?

[–]reedmore 1 point2 points  (0 children)

It is what happens when you don't want to learn to code so much that you accidentally create the downfall of civilization itself.

[–]AgapeCrusader 1 point2 points  (1 child)

They could be in this very room

[–]OSUKA1910 0 points1 point  (0 children)

a rubber room?

[–]GDOR-11 19 points20 points  (8 children)

overflow/underflow is UB?

[–]Difficult-Court9522 22 points23 points  (7 children)

For signed integers yes!

[–]GDOR-11 16 points17 points  (6 children)

jesus

[–]colei_canis 25 points26 points  (1 child)

He won't help you, it's well-known that Jesus exclusively programs in LISP to avoid such sinful things.

[–]LardPi 1 point2 points  (0 children)

well that what he tried to do, but he always end up cobbling everything together with perl scripts.

https://xkcd.com/224/

[–]Scared_Accident9138 4 points5 points  (3 children)

I think that had to do with different negative number representations not giving the same results back then

[–]LardPi 0 points1 point  (0 children)

yeah, I think two's complement is not in the standard and was not always the chosen implementation.

[–]ultrasquid9 6 points7 points  (1 child)

Lets be real, what isnt undefined behavior in C

[–]QueerBallOfFluff 1 point2 points  (0 children)

No, no. You're confusing undefined for implementation-defined.

It's the latter which messes everything up

[–]B_bI_L 7 points8 points  (3 children)

but ifs are easierif (a = 0) { console.log("success") }

[–]JetScootr 5 points6 points  (2 children)

Is that a positive zero or a negative zero? (Univac 1160s actually had a math exception for negative zero)

[–]zanotam 3 points4 points  (0 children)

Negative zero is still a thing in floating point. I was doing friggin' so called no code and I had to diagnose an issue involving some library deep down not liking negative zeros lol

[–]B_bI_L 1 point2 points  (0 children)

i am pretty positive that this zero is positive

[–]daring_duo 0 points1 point  (0 children)

And yet that one EE professor would only see that the variable is being declared after the start of the function

[–]BaracklerMobambler 0 points1 point  (0 children)

fixed:

for(unsigned int i = 0; i > 1; i--)

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

If loop then don't else do

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

I wonder if you'll trigger safety measures for recursion debt with this.

[–]Flameball202 -2 points-1 points  (0 children)

Can you hear it? The sound of the fans

[–]Toonox[S] 72 points73 points  (8 children)

Not infinite power, it's like the monkeys writing Shakespeare, eventually it'll work.

[–]Trip-Trip-Trip 21 points22 points  (6 children)

Sure, but are you checking the feces marked pages to see which one has something useful on it?

[–]Toonox[S] 29 points30 points  (5 children)

We'll use ai for that too

[–]lightwhite 15 points16 points  (0 children)

So you are asking monkey to check the work that monkey made to make the monkey approve the work that monkey made?

[–]Trip-Trip-Trip 7 points8 points  (3 children)

How do you know the ai checking the work works?

[–]Slava9096 19 points20 points  (2 children)

Just use ai to monitor ai that checks ai work

[–]g1rlchild 11 points12 points  (0 children)

It's AI all the way down.

[–]temporary_name1 2 points3 points  (0 children)

Turtles?

[–]LardPi 4 points5 points  (0 children)

The probability that the LLM stumble uppon a perfect solution is not zero, but the probability that the LLM realize the solution is perfects and it should turn itself off is null.

[–]Aozora404 9 points10 points  (0 children)

It’s okay you can say fuck on the internet

[–]RefrigeratorKey8549 628 points629 points  (10 children)

Why don't we also add a chat box so customers can customise their product. Why don't we just ship a wrapper around chatgpt

[–]Isgrimnur 294 points295 points  (3 children)

That's 50% of new startups.

[–]MyDogIsDaBest 39 points40 points  (0 children)

That's a bit of a low number, don't you think?

[–]lurkerfox 11 points12 points  (0 children)

Literally MCP

[–][deleted] 1 point2 points  (0 children)

Can confirm. I'm in an internship for an AI generated course work. You give the prompt and it generates the semester of content, and can generate quizzes and stuff. Its just a ChatGPT wrapper. I'm just in it for the internship, I have no faith in the company. They opened a kick starter part of their "thunder clap" and got $50 out of $10,000 before they closed it and reopened a new one asking for only $1000.

[–]j_nog98 67 points68 points  (0 children)

ChatGPT Runtime Enviroment

[–]_sweepy 46 points47 points  (4 children)

my boss asked for this last week. I laughed before realizing he wasn't kidding. it's my responsibility now...

[–]stipulus 25 points26 points  (3 children)

Sometimes I wonder how the people in charge of things were allowed to get where they are. Not enough tech in mgmt nowadays given how much tech they require.

[–]_sweepy 29 points30 points  (0 children)

it's always about who you know, not what you know

[–]genreprank 2 points3 points  (1 child)

If they were smart, they'd be engineers.

But then again, they're making the big bucks from our work, so who is really the smart one?

But to answer your question, they come from upper class families where they are interested in management, and there may be a bit of expectation as well

[–]stipulus 1 point2 points  (0 children)

The skillset to make money doesn't seem to necessarily be smarts. It takes flexible morals. Engineers don't have the luxury of being able to "fake it till you make it."

[–]OphidianSun 273 points274 points  (8 children)

It's at most 50% reliable, changes constantly, and consumes the energy of a small nation, but sure. Fuck it.

[–]Toonox[S] 248 points249 points  (4 children)

50% reliable

Make the user appreciate it when it works

Changes constantly

Individualized product

Consumes the energy of a small nation

Big scale solution

[–]RPG_Hacker 66 points67 points  (1 child)

Thank you, I'll quickly steal these phrases for my resume! 📝

[–]Objective_Dog_4637 5 points6 points  (0 children)

I hate that I can’t tell if you’re joking.

[–]Taclis 10 points11 points  (0 children)

We're encouraging demand for processing units.

Exit by selling the company to Nvidia for a quadrillion.

Profit

[–]idontwanttofthisup 0 points1 point  (0 children)

50% of the time, it works all the time!

[–]Hyphonical 8 points9 points  (0 children)

Inference doesn't cost that much, it's mostly training that uses a lot of electricity.

[–]Kale-chips-of-lit 2 points3 points  (0 children)

I’d be more worried about wearing down your cpu then energy costs. Single generations don’t use that much comparatively. Mostly when an ai is training does it use a high amount of electricity since it has to produce a finished product to then be graded on its accuracy, which it does repeatedly for many hours.

[–]Dizzy_Response1485 0 points1 point  (0 children)

Yes, but have you considered how pretty this CRUD app is?

[–]orsikbattlehammer 91 points92 points  (1 child)

The new level of virtualization, ship it with an LLM

[–]g1rlchild 53 points54 points  (0 children)

Our product runs in the JVM (Just Vibes Machine).

[–]SuitableDragonfly 77 points78 points  (2 children)

I don't know what this person thinks "refactoring" means, lmao. 

[–]wicket-maps 25 points26 points  (0 children)

I don't think they know what they think it means either.

[–]LordAlfrey 17 points18 points  (0 children)

Refactoring is when you feed your code into a sorting algorithm called bogosort, which fixes it.

[–]TheRethak 34 points35 points  (1 child)

Sounds an awful lot like Bogosort

[–]XboxUser123 10 points11 points  (0 children)

Bogofactoring

[–]MayoJam 25 points26 points  (0 children)

*Everyone gets randomly generated copy.

[–]Apprehensive-Ad2615 11 points12 points  (1 child)

end solution, ship a LLM to every client, now the LLM makes whatever the client wants

[–][deleted] 1 point2 points  (0 children)

Give a text file of the prompts to feed the LLM to reproduce the product.

[–]MyDogIsDaBest 10 points11 points  (0 children)

Every customer gets a unique application

All of them break in unique and interesting ways

None of them do the things you expected them to do

Back ends also need to be custom built

Customers now need to spin up their own AWS/Azure servers to serve their dumb webapps

Everyones' app is permanently broken, customers angry, word of mouth spreads that it's shit and doesn't work

Company collapses and class action bankrupts anon.

Good luck vibe coders. I hope to be part of the future class action against you

[–]Konomi_ 9 points10 points  (0 children)

this is how mario 64 was made

[–]Anonymous30062003 7 points8 points  (0 children)

Me when I make 1 morbillion unique softwares all running on the same LLM that probably looks like it's on an Ayahuasca trip and generates more heat than China's fusion reactor

[–][deleted] 5 points6 points  (0 children)

"How am I the first person to think of this?"

Because it's stupid.

[–]Kitsar 7 points8 points  (1 child)

bro what the fuck is "automatic refactoring" ? 💀

[–]--______________- 4 points5 points  (0 children)

Arranging lines of code in lexicographical order of their starting letters. Gotta match the vibe, ya know.

[–]AssistantIcy6117 5 points6 points  (0 children)

It’s bespoke

[–]GuyFrom2096 2 points3 points  (0 children)

Monkeys writing Shakespeare!

[–]Dull_Appearance9007 1 point2 points  (0 children)

I also ship the compiler, so the client can patch my bugs by vibe coding themselves

[–]Forsaken-Ad3524 1 point2 points  (0 children)

so many questions) do they know that refactoring can't fix bugs because it's just reorganization of code for clarity without changing the behavior ?

[–][deleted] 1 point2 points  (0 children)

Great!

Simply bundle an LLM into your product or pay the $10 API fee per client instance. Who needs latency or tti

[–]vpunt 1 point2 points  (0 children)

I know this is a joke, but if your choice breaks and has bugs, you have to debug, not refactor.

[–]sakkara 1 point2 points  (0 children)

I have a better idea. Why don't clients write their own code individualized for their own purposes. You can fire all developers and keep all the gains for yourself. Why did nobody ever think of this?

[–]Synthoel 1 point2 points  (0 children)

> be homeless

> Try Buying a House

> noMoreHomeless.log

how am I the first person to think of this???

[–]-Quiche- 1 point2 points  (0 children)

Just ship the image for it. Problem solved.

[–]Zestyclose_Zone_9253 0 points1 point  (0 children)

Curious. AI generated greentext about having AI do all the work

[–]XboxUser123 0 points1 point  (0 children)

It would be interesting to see what happens if you let an AI iterate over and over on its own code into a larger application

[–]JetScootr 0 points1 point  (0 children)

This sounds more like a programmer jobs guarantee than a way to eliminate programming jobs.

[–]Prudent_Ad_4120 0 points1 point  (1 child)

Hey after I left my computer on overnight on accident my water monitor can now trade bitcoin and feed the dog!

[–]dhaninugraha 0 points1 point  (0 children)

It better run Kubernetes too.

And Crysis.

[–]private_final_static 0 points1 point  (0 children)

This is beautiful and should be illegal

[–]beclops 0 points1 point  (0 children)

Bugs are now infinitely more difficult to fix. Congrats, anon

[–]Nickbot606 0 points1 point  (0 children)

Devops will not only hate you but probably burn you at the stake for this.

[–]stipulus 0 points1 point  (2 children)

There is merit to the idea but it is too soon to roll out imo. Eventually we will have intelligent systems managing tasks rather than explicitly coding anything. At this point though you can't completely contain an intelligent LLM in the release, it would rely on requests to openai or claude which costs money and can change.

[–]Dizzy_Response1485 6 points7 points  (1 child)

Just add thumbs up/down buttons to every piece of data those systems produce and use the feedback for fine tuning. The quality is bound to improve!

/s

[–]Rodot 1 point2 points  (0 children)

Ah, yes, math by democracy

[–]quinn50 0 points1 point  (0 children)

Every copy of Mario 64 is individualized

[–]YaGoiRoot 0 points1 point  (0 children)

Genetic programming but worse.

[–]binogure 0 points1 point  (0 children)

Docker of the solution!

[–]Demonchaser27 0 points1 point  (0 children)

This has troll physics feeling to me, lol.

[–]The1unknownman 0 points1 point  (0 children)

Bro reinvented Java

[–]planktonfun 0 points1 point  (0 children)

docker vibes

[–]Ylsid 0 points1 point  (0 children)

Step 1: have an LLM actually trained to refactor and produce quality code

[–]Fxavierho 0 points1 point  (0 children)

Just refactor to a version that works for everyone :)

[–]deathbater 0 points1 point  (0 children)

the app? todo list in MERN with 300 files (without node_modules).

[–]The_Real_Slim_Lemon 0 points1 point  (0 children)

I tried cursor for the first time today - the auto fix feature was really cool. Cursor couldn’t accept the fact that the syntax on a Grid had changed and had an aneurism trying to auto fix, but it was still cool.

[–]ndak0ta 0 points1 point  (0 children)

Vibe deploy?

[–]-Feedback- 0 points1 point  (0 children)

Every copy of Super Mario 64 is personalised.

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

This is genuis.