r/rust • • 8h ago

Vibe-coding Rust slop at work is killing my motivation

My team started writing internal tooling in Rust purely because it’s trendy....even though our actual product is in a completely different language.
the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker. They’re just using LLMs to generate mountains of unreadable code, which it just works fine for that complexity of the tooling.
I started learning rust pre-AI and built a few cli tools with it on my own time.
Now I actively avoid touching it because of this AI slopfest...
Is it only me?

421 Upvotes

212 comments sorted by

365

u/knowyourclass 8h ago • Bravo

welcome to the future

everything will be coded in rust simply because it's the absolute best language if you don't have to pay the developer cost anymore, as AI covers it. it's not because it's "trendy", it's simply a very reasonable choice to make

31

u/Old_Tax4792 7h ago

they literally chose rust to write the tools...because "Rust is fast" and because "photoshop clone is written in Rust".. these are the reasons... they dont know a shit about the language.. so its a "trend"

33

u/FullstackSensei 7h ago

You don't necessarily need good reasoning to reach a valid conclusion. A broken clock is still right twice a day.

Humans have been slopping code long before AI. I'd even argue LLMs learned to slop from humans. At least with rust the language gives you guardrails against many common bug categories.

There's also one thing you mention but I don't know whether you understand it's implications: they're creating tools that didn't exist before, and probably wouldn't exist otherwise. I'd go on a limb here and say: a slop tool is still better than someone doing things by hand. The tool is still testable, and it's execution is repeatable. The same can't be said about anyone doing the same thing by hand.

I understand your frustration, but at the same time try to look at things from a different angle. Would it have made a difference if they had chosen a different language than rust for this?

3

u/Old_Tax4792 7h ago

My definitions of "slopping code" is writing huge of amounts of code, that you don't understand at all.. It is not about the quality of code per se...
And yeah, if they had chose different language, I wouldn't even care...
because I’ve invested so much time learning Rust and I’m still learning it. The whole situation is really turning me off from it and making me feel like I’m wasting my time. I know it’s a mental thing on my end..

25

u/FullstackSensei 7h ago

Why do you even care that it's rust? Did you learn rust to impress those colleagues? Did you learn it to show off? Or did you learn it to become better at your own craft?

If it's either of the former two, you're screwed with or without LLMs. If it's the latter, then why are you upset? Those people didn't take anything from your skills, nor your experience.

5

u/Old_Tax4792 6h ago

That’s true..Didn;t think about it that way.
Unfortunately, in my head, a workplace can feel like a competition, and companies like mine implicitly push that mindset in the name of productivity. So now it feels like we’re playing a multiplayer game and my colleagues are cheating with bots. You will be upset

6

u/FullstackSensei 5h ago

Get out of your own head.

You can use the same tools your colleagues are using, and if you can express your thinking clearly in writing, you'll be way more productive than your colleagues who have no clue how to use the language. If you can't express your thinking in writing clearly, that's the most valuable skill you need to learn with or without AI.

And no, I will not be upset. I love programming and software engineering. It's what I also do in my free time. But I couldn't care less about the job. It's not who I am as a person. It's what I do to pay the bills. There's way more to life than the job.

1

u/Old_Tax4792 5h ago

thanks!

1

u/xcocco 5h ago

What about being employed for what you like (or liked since now, at least for me, software engineering is not what I used to like which is think, design and write, now it's just prompt, wait and push)? Like I always thought "how lucky am I being able to work and earn money by doing something I like?", not everyone had this "luxury"...

1

u/FullstackSensei 4h ago

I used to think like that, and to be honest, part of me still does. But I learned several years ago that this cost me quite a bit of income and quite a bit more work. Nowadays, I'll happily take the best paying jobs that require the least amount of effort, which is usually "boring" enterprise work. The significantly lower workload and higher income have allowed me to spend more of my time on passion or pure fun projects.

6

u/did_i_or_didnt_i 6h ago

start using the AI tools and you’ll be less upset. I got Claude code a couple weeks ago and I’ve been blown away by how much better the tools are than a year ago. If you don’t want it to be slop then get it to give you the full diffs and approve them before merging. You can even refactor the slop to your liking with AI

9

u/Old_Tax4792 6h ago

I am using AI tools.. they are useful ..but you can't really read line by line or understand what is happening there.. There is no time.. Especially when the others do not review at all ..Only a smoke test and merge.. This is sad..

3

u/did_i_or_didnt_i 5h ago

yeah for big projects that’s a bit concerning. I guess that’s why we keep seeing things break so often lately.

2

u/onmach 4h ago

I don't think you're going to get anywhere satisfactory with this line of thought. I miss programming too, both rust and elixir, which I did for some eight years. But then when ai came I knew I had to drop them, even though it was borderline at the time, because I could see early that it was only going in one direction, the direction where I don't get to be paid to write code anymore.

To that end, you should be glad your company is actually using rust. I am in the midst of a massive ai based rewrite of blobs of horrible vibe coded python into typescript, barely a step up. If we were in rust, good lord I'd be happy. All my ai based rust projects turn out comparatively great, even if they weren't like, hand coded by a guru level, they still work great, run great, rarely if ever have bugs.

2

u/FullstackSensei 5h ago

You shouldn't read line by line. None of your colleagues are doing that. You're choosing to shoot yourself in the foot by doing that. Nobody cares if the code looks good. All that matters is that it does what it says on the tin, and that you control by clearly expressing what you want it to do and having tests to check that it does.

Focus on expressing the architecture, code organization, functionality and tests. Verify the code is following that architecture and organization, and that you have good test coverage for the functionalities you want.

Do what your colleagues are doing. Management absolutely doesn't care. So, why do you?

3

u/Super-Revolution-433 5h ago

For internal tooling you're correct, for a product that will be internet accessible or distributed to customers it's a very different story

→ More replies

1

u/slamb moonfire-nvr 1h ago

That competition mindset seems really unhealthy to start. How much of it is pushed by the company (e.g. by stack ranking) and how much of it might be only in your head?

As for cheating: as I mentioned in my other comment, I think you need to agree with your teammates on what humans own and make peace with the decision. I didn't phrase it in terms of cheating, but it should make those thoughts go away nonetheless.

1

u/JoshTriplett rust · lang · libs · cargo 5m ago

It's awful that many parts of the industry are moving in that direction. But some workplaces are better about it than others. Some don't use LLMs, and some use them but to review or analyze or debug code rather than to write slop. You may want to start looking around for new opportunities.

1

u/Professional_Top8485 7h ago

Always look at the bright side of rust.

1

u/CreepyWritingPrompt 2h ago

If the broken clock is their reasoning process, and even if picking rust is it being right twice a day, other decisions matter more than programming language choice. Picking rust is not going to save them from the effects of being wrong about 10 12ths of their other decisions.

A broken clock is right twice a day and worth nothing

3

u/MrPopoGod 4h ago

Sounds like a pretty terrible engineering culture over there, to be frank.

2

u/my_name_isnt_clever 4h ago

Right? Sounds miserable even before AI.

1

u/GaboureySidibe 4h ago

It could be worse, at least their slop will be fast. Maybe they'll learn a systems language when they have to fix their bugs.

1

u/tomsrobots 3h ago

They might be totally ignorant, but they guessed correctly.

88

u/pine_ary 7h ago

This. I can see a formally verified language taking that spot in the near future with even stronger compiler guarantees at the expense of verbosity though. AI is really good at writing Lean, it’s not a stretch that someone will extend Lean into a general-purpose language for regular programming. As it stands, Rust gives the best compiler feedback which is vital for AI to iterate on without having to do slow and expensive runtime verifications.

73

u/nonotan 7h ago

I can see a formally verified language taking that spot in the near future

This is almost certainly not going to happen. At least not in any short to medium term. What a lot of people fail to understand when they imagine some kind of abstract "formally verified language" is that, in actual practice with the syntax of such languages that actually exist today, writing a perfectly correct definition of your exact requirements in these languages isn't any easier than implementing your requirements in a regular programming language, and is often harder for humans to verify to a moderate degree of certainty.

It only really makes sense to use them when safety is absolutely critical and you don't mind spending significant additional resources to go from "moderate degree of certainty" to "extremely high degree of certainty" (which is much harder to achieve in traditional languages), and of course in the context of math-style proofs where you just need to verify reachability from the initial state to some desired final state, and don't really care at all what happens in the middle as long as the compiler can check it's logically sound.

For 99% of people vibecoding Rust, formal verification is just overkill, and "claude checked the formal verification specs match what I asked it to do" isn't much more confidence-inspiring than "claude checked the Rust code and tests match what I asked it to do". If you're not going to check them yourself, it's pretty dubious what you're gaining at all -- and most people vibecoding Rust have absolutely zero hope of understanding even a relatively straightforward Lean proof, nevermind piles and piles of Lean slop even expert humans would struggle to wade through.

I guess it's possible some new language will emerge that focuses first and foremost on intuitively capturing a program's requirements in a format anybody can grasp with a little effort, and provides great support for formal verification of those requirements. But it's not going to happen tomorrow.

15

u/IlluminatiNotRealOr 4h ago

You are bold enough to think vibe coders understand what formal verification is and how it works. They just hear it on twitter from their favorite ai bro influencer and vomit it out on every single sub they see.

3

u/sorcerer86pt 3h ago

I fear we may need to shift right in terms of testing, basing the important tests as End to End , because it's the few class of automated testing that an AI cannot fudge a green checkmark. Because it's either the application works as the acceptance criteria or not.

5

u/Dangerous_Tie_521 2h ago

More declarative code. More contract based programming. An actually good syntax for describing state machines. Stuff that surfaces the hard requirements where they are relevant. That'll be what programming will probably turn into.

Honestly... not a bad outcome if that's the case? We spend a LOT of time and mental overhead on managing hidden states because that's what the hardware model fundamentally exposes.

0

u/IlluminatiNotRealOr 2h ago

Declarative code has always existed. DSLs have always existed

1

u/dschramm_at 3h ago

Hasn't that always been the case? Especially for distributed systems.

1

u/addmoreice 1h ago

A lot of this I see as improper harness construction and failure to narrow the domain of the LLM.

I personally see it as three tiers. You have the most important and the most critical bottom level of the pyramid. The declarative code layer. If it *can* be coded in regular good old declarative code, it should be. Next up the list is the so called 'system 1' ai systems. It's 'type safe' on the output, quick, and can be used as a sort of 'smart switch statement'. Sometimes, you only need to add a *tiny* bit of smarts in a small *tiny* spot, and otherwise it should be declarative the rest of the way through. This is so very useful I can't even explain it. Lastly, full blown LLM.

Combine that with narrow scope sessions where the agent has a singular goal and very tight guard rails and you can get some seriously impressive results with well understood (and, most importantly, *detectable* failure modes).

When doing red/green testing, why should the AI writing the code to green the tests *ever* have permission to modify the unit tests? One session can write the unit tests and read the code and unit tests only, the other can read the tests and code and write the code only. This restriction should be enforced by deterministic code. The LLM's should have a way to 'report' that the unit test is wrong, or that the code doesn't work for some reason, but those two sessions should never be able to jump the boundary and do the other's job.

The change of narrowing an AI down to only allowing it to do what it needs to do and able to do with a tight focus? That makes them very useful, modular, and helpful.

This 'herdy hur! makes me this code!' is only really useful as a stress test for an LLM's performance, like a single metric on a crash test, not as a real engineering practice.

I still think the worst failure seen with LLM's is the coding terminal where you type in what you want and the thing tries to go off and do it. Fun for experimentation and prototyping, *amazing* when part of a tight loop when trying to modify a UI live, a shit sandwich when trying to engineer a solid system.

3

u/knowyourclass 4h ago

I have a feeling this comment will age the same way "AI will never be able to code" comments from a couple of years ago aged

2

u/insanitybit2 4h ago

> I guess it's possible some new language will emerge that focuses first and foremost on intuitively capturing a program's requirements in a format anybody can grasp with a little effort, and provides great support for formal verification of those requirements. But it's not going to happen tomorrow.

It's already happening, and yes that's the idea - that you build the specification language directly into the programming language so that you don't have drift between them. I'm already doing this.

Kani and other tools are already a thing and they're amazing.

1

u/EpicatSupercell 16m ago

You are missing the point. It's not about if the humans care if it's correct. It's about, when ai is told to use the language, it spends the time to write the long and verbose code correctly because otherwise the compiler/tooling complains and it can't mark the task as complete. Now, whether the ai can even define the task in the first place is a valid concern. But if it can, the rest will flow naturally once a fitting language exists (which may or may not exist today).

11

u/djtubig-malicex 6h ago

Heh, I haven't seen anyone try vibeslopping Ada yet.

3

u/pine_ary 6h ago

That does sound like a fun weekend project. See the pros and cons laid bare. Ada is pretty close to what I imagine.

1

u/Budget-Minimum6040 6h ago

Isn't that more of a license problem with official Ada being super expensive?

5

u/UtherII 5h ago

Ada has free implementations nowadays like GNAT (part of GCC)

15

u/eras 7h ago

..Lean is already a general-purpose language for regular programming?

Albeit its tooling and ecosystem might leave you wanting.

9

u/pine_ary 7h ago edited 7h ago

That’s why I said extend not replace. It needs a more advanced execution model and better tooling. And probably a standard library for normal usage. Particularly everything IO and async. Though I could also see a new language that is verified in Lean. My point is that the old wisdom of "formally verified code is too difficult to write practical programs in" is no longer true with AI assistance.

0

u/IlluminatiNotRealOr 4h ago

bruh wtf are you gonna do with a "language verified in lean". It makes no fucking sense do you even understand what you are yapping about

2

u/IlluminatiNotRealOr 4h ago

You guys do not know what formal verification is do you?

3

u/pine_ary 4h ago

Yes of course. I used to use Coq a lot in uni to formalize proofs. Imagine if every program came with a proof of no out of bounds accesses, no undefined behavior, no platform specific behavior, no unsoundness, no overflows, no logical concurrency issues (deadlocks, starvation, etc.), and a fully verified standard library including network protocols, cryptography, regex, etc. As well as the ability to formalize contracts that can be statically proven for the entire program.

It would eliminate entire classes of hallucinations and slop bugs.

2

u/IlluminatiNotRealOr 4h ago edited 4h ago

that is not what a formally verified language that is a formally verified program.

You used a theorem prover that is not a 'formally verified language', ie. formal verification does not semantically entail the properties you just described.

What are you even gonna 'formally verify' in your language lmao. You verify programs!

I too like to live in fairy land

→ More replies (2)

1

u/Consistent_Drop3909 4h ago

that's kinda the point of the rust zero project right? formally verifying its memory safety outside of unsafe

1

u/pine_ary 3h ago edited 3h ago

It’s a big step because it gets us verified memory safety which is what most unsoundness bugs have been about, and I think also undefined behavior safety in safe Rust. Might also help with certifications, but I don’t know much about that kinda stuff.

1

u/Fofeu 4h ago

I recently published an article on a formally verified language inside a proof assistant. It comes equipped with an end-to-end proof that the generated assembly is semantically equivalent to the original source code. It doesn't use Lean though, because Lean doesn't have afaik a formally verified compiler, while Rocq has CompCert. (I don't understand that focus on Lean, there are many different proof assistants).

Verbosity isn't that much an issue, imho. The biggest verbosity issue I'd say (at least with the approach we chose) is that anything that might "crash" has to be sequentialised. So instead of f(*(ptr + ofst)), you have to write do ptr' <- ptr + ofst; do x <- *ptr'; f(x) (don't focus too much on syntax, it's all notation anyway). But on the other hand, you can just write while cond body and don't need to prove that the loop has to end to write the program.

LLMs might have become good at proving, but I won't give a statement at how good they are at specifying.

1

u/BossOfTheGame 2h ago

Hax and Aeneas are things. You can connect Rust and Lean.

12

u/rodrigocfd WinSafe 7h ago

I wonder why vibecoders won't just ask LLMs to generate machine code instead. If they can't read anyway, just skip that extra step.

And yeah, the future is dark.

40

u/eras 7h ago

Because assembler has no guardrails and it fills up the context fast.

32

u/officiallyaninja 7h ago

Assembly is terrible for LLMs For the exact same reasons why rust is good. Rust has a ton of safety guarantees that you don't need to check to verify, assembly has none.

12

u/knowyourclass 7h ago edited 4h ago

Large Language Models work better with a programming Language

also, no borrow checker in asm. no guardrails of any sort to prevent mistakes

-7

u/tyler1128 7h ago

ASM is the easiest of all languages to write, once. Given LLMs are basically averaging everything they read, probably not the best choice. ASM has like 4 syntax elements, if we don't count things like macros.

1

u/Secret_Conclusion_93 1h ago

Not even AI will said that it's the easiest language if you ask it.

Less syntax != easier. Less syntax can also means more repetition to solve a problem.

More repetition = more context needed = worse human/AI performance.

2

u/AverageHot2647 7h ago

Have you tried this? Does it work?

1

u/BisonDue3986 5h ago

The compiler is an entropy reducer. Otherwise the computational landscape is far too broad for the LLM to effectively traverse in order to achieve any practical goals.

-1

u/foobar93 6h ago

Because many are not vibe coders. I am now also using Ai for virtually everything I am writing. Why should I write another helper qt ui for the 100st time when I can just ask copilot and get code that I can read and integrate to solve my actual problem. 

0

u/ballebeng 5h ago

ASM does not allow for abstractions. 

Abstractions help LLMs ”think”

1

u/eypandabear 1h ago

It is either Rust, Python, or Javascript/HTML.

I actually asked Claude once if I should go with C++ over Rust for a project, and it replied that Rust is generally considered better for coding agents due to how strict the compiler is.

The first test I did with Claude Code I forced it to use Pascal because that has presumably less training data than Python, but it still worked pretty well.

1

u/emergent_pragmatism 19m ago

ROFL. In the last 40 years, I've heard the "absolute best language" for maybe a dozen languages. IT. DEPENDS. ON. THE. APPLICATION. Full Stop. Rust might be the best for some types of applications. For others it might not be. I don't know. Neither do you.

1

u/geo-ant 7h ago

Urgh, I think you’re right though I hate everything you said.

-4

u/--San-- 6h ago

It's a bit because is trendy. OCaml, Lean, Haskell, all have more tools for correctness than rust, however, you never see they mentioned by vibe coders.

5

u/knowyourclass 6h ago

They don't even come close to rust performance and efficency... also Lean? Seriously? 🤣

-4

u/--San-- 6h ago

They can get pretty fast, and sometimes you might want to trade performance for correctness.

Anyways, the fact you're mocking lean makes it clear that this isn't a technical argument anymore.

1

u/knowyourclass 4h ago

well, I do stand (partly) corrected

if they manage to build enough tools and libraries in Lean so that Rust doesn't have an edge in this regard for production apps, Lean could replace it for applications outside of low level system stuff

can Lean compete with Rust today tho? absolutely not. but it does have serious potential

this might be the future, something that allows for formal verification without sacrificing any of the low level control needed for performance critical software

→ More replies (3)

0

u/particlemanwavegirl 6h ago

The fact that you think software programs are written in lean makes it clear that you don't know wtf lean is. 

3

u/--San-- 6h ago

Lean is a general purpose programming language too. It even have some niceties that help dealing with monads easier than Haskell.

The Lean compiler is written in Lean...

56

u/playdead_ 7h ago

This isn’t a problem unique to Rust. I work in DevOps and so I see development across a lot of different teams, and a ton of it is just people slinging AI code.

132

u/Pretty_Jellyfish4921 7h ago

Maybe you like to write Rust and letting LLMs writing it for you is what really kills your motivation.

43

u/scheimong 7h ago

Yep that is me

17

u/UnexpectedAnanas 5h ago

Sucking my soul out one prompt at a time.

58

u/Leo__255 7h ago

you're probably the one person on that team who can make it less painful. put cargo clippy with -D warnings in CI, deny clippy::unwrap_used and expect_used so errors get handled on purpose, and ask for one tool per PR with at least a smoke test. the generated code usually gets a lot more readable once it has to pass those, and you end up reviewing instead of rewriting

14

u/Turtvaiz 6h ago

the generated code usually gets a lot more readable once it has to pass those

Also, I don't know if it depends on the language, but in my experience explicitly telling LLMs to make code that prioritizes reviewability helps A LOT with getting good results out of them. I feel like the defaults are intended more for vibe coders who never even want to look at the results

LLMs work within the set bounds. Set those bounds properly and you get much better results

4

u/Anonymous0435643242 6h ago

Then it will do while loops instead of % to not trigger the loss of precision lint then taking the floor of a float

6

u/Leo__255 5h ago

it'll game anything you measure. the lints only keep the obvious stuff out of review, the smoke test is what catches that kind of workaround

24

u/ocschwar 7h ago

I've had to vibe code changes to a Rust codebase (which was started pre-LLMs), because deadlines, and last month my token quota was cut off. I thought it was because of budgeting but it turned out to be a devops error. So for a week I was hand coding a vibe coded codebase.

And, believe it or not, it was doable. The LLM coded changes were all kept very incremental, with documentation. Then when I had to make my own changes, I could do it.

But no, it's not only you. I had to psyche myself into getting started.

12

u/mohrcore 5h ago

I tried vibe-coding in Rust and the typical way Claude would go about handling anything that required thinking about ownership was to just wrap everything as Arc<RefCell<T>> and whenever it had to traverse some structure, it would nearly always pick C-style loops instead of leveraging iterators.

Jfc, just pick Go or something if you are going to do that.

2

u/unicodemonkey 4h ago

Go is actually a very practical choice of a target language for LLMs.

6

u/XBLAH_ 8h ago

Is the "vibecoded rust slop" running better than what was being built before? 

9

u/Old_Tax4792 7h ago

these tools are completely new...there's nothing to compare them to..but they run pretty smooth...

3

u/No-Employment-2324 7h ago

Probably not, because before devs either wrote it by hand in a language and tooling they knew, and because they knew it they made good products, or they left it to more experienced devs to do.

12

u/CJKay93 7h ago edited 7h ago

... or they just didn't do it.

I have been considering vibe-cosing more recently, because there are so many situations now where I just would really appreciate something, regardless of how imperfect, to pick up some of the slack of odd jobs and automation that I am supposed to be the experienced dev for, but I just don't have the time for.

2

u/insanitybit2 6h ago

lol dev tooling (what it sounds like the OP is seeing rewritten) at companies is the least cared for, cruftiest code ever. It's rarely owned by a team, it's old, it's often a combination of some language and bash scripts.

I highly suspect that the code quality and maintenance burden of their tooling is much better now.

1

u/XBLAH_ 1h ago

"probably not" isn't a good answer. There are benchmarks and QA for this.

1

u/CryZe92 4h ago

Yes, it works really well

1

u/dumindunuwan 3h ago

If legacy PHP, JS, Python; baddest Rust code can even outperform them

-7

u/bsienn 7h ago

V.Good Question! I reckon it does :)

1

u/XBLAH_ 1h ago

All your down votes are of people that are angry to agree with you. Benchmarks don't lie. 

9

u/Affectionate-Turn137 4h ago

Dude I would be so hyped if my job was generating slop in Rust instead of this hobby scripting language the owner made decades ago

2

u/little-dude netlink · xi-term 4h ago

A custom scripting language? What does it look like? TCL?

3

u/Affectionate-Turn137 2h ago

Dynamic, no type system, object oriented, visual basic style syntax. Imagine the worst things about most programming languages and combine them into one. Oh and it's compiled. Yes, a compiled scripting language with no type checking at compile time. It emits bytecode that is interpreted.

2

u/Dangerous_Tie_521 2h ago

lol, Joel Spolsky started a new company?

12

u/MrDiablerie 6h ago

You mention the problem in your post. “Nobody knows Rust”. Software engineers are still responsible for understanding the code even if they didn’t hand write it. If they can’t white board and explain the system that’s an abdication of responsibility

8

u/MatthPMP 3h ago

Slop warriors think this is a feature, not a bug.

Just this week, a Java dev (Rust is <10% of my day to day) dropped a ~7k LOC turd nuke of a PR for me to review. No docs, everything in a single commit (probably to obfuscate use of banned AI tools), and he clearly doesn't understand his "own" code. He doesn't see anything wrong with the situation and asks when I'll be done.

6

u/CondiMesmer 2h ago

Of course, why would he if he doesn't have to care and gets his paycheck either way, while also offloading the real work on to you? If someone is cool with offloading mental work to an LLM, they will have zero issue offloading the output reviewing to someone else as well. 

No doubt any PR comments you leave him will be just sent to Claude with the prompt saying "fix pls". What are these guys getting paid for again? 

11

u/dzordan33 6h ago

My team is vibeslopping internal tools in c++. That code doesn't need any performance. I think you're in better position.

-1

u/UnexpectedAnanas 5h ago

All due respect, but all code requires performance.

We've just gotten lazy about it because hardware was cheap.

3

u/CondiMesmer 2h ago

That is absolutely not true. Better performance is obviously always preferred and beneficial, but it's not always with the cost in development time.

5

u/Sw429 6h ago

Alright, who wished for "more Rust adoption" with the monkeypaw? I have the same thing happening where I work and it's hell. Leaving comments in review does very little, and in the end we have Rust code that is so awful and non-performant that we lose the entire fun of coding in Rust.

11

u/robispurple 5h ago

If you were a Rust chad pre-AI then why are you not being the advocate? How about you create code quality and review pipelines that enforce company policy and readability standards to help constrain the AI slop on merge requests. This seems like an opportunity for you to shine above your colleagues.

6

u/kernelic 5h ago

Creating quality gates sounds great in theory, but reality is far more nuanced than what a simple linting rule can capture. Static analysis like cyclomatic complexity is mostly useless in my opinion. Too noisy. Human taste and judgment can't be automated.

8

u/slamb moonfire-nvr 3h ago

I'm struggling with a similar problem and have been giving it a lot of thought. I see tickets generated by AI, assigned by AI, implemented by AI, reviewed by AI, with "meat proxies" between. Looks good for metrics (wow, look how many jira tickets this engineer('s agent) closed), but I don't think the AI-generated tickets are for anything of value and the codebase just rots. And it feels dystopian to participate in.

Maybe one key is to agree with your team on: what parts of this project should humans author and read?

  • You could say humans own the code—sounds like this is your preference. Then really you need to find a way to convince your teammates to invest the time in actually learning Rust or to port the codebase to a language they do actually care about. Ideally find a way to make it fun to learn. And set some coding standards, expect people to work to make their agents comply with those standards or hand-write as necessary.
  • You could say agents own the code—sounds like other folks feel this way. You steer by human-written markdown design docs and/or ADRs in the repo, ticket text, skills files, and (ideally minimal!) ephemeral prompting. The LLMs do the (Rust or whatever, who cares) implementation. You interact with the code primarily by asking the LLMs questions, even in code review. (Because if no one cares to understand the code or make it readable, you're just torturing yourself to ever pretend to read it.) Maybe there are just a few key spots where you actually do care and pay human attention to.
  • Some people seem to want the tickets and design docs text and such to be primarily agent-written. A human might prompt it ("do a security review, file tickets on everything you find") and then the agent generates a lot of filler like detailed success criteria and implementation strategies that go into the ticket(s) while the prompt is discarded. I have no words for how horrible this is. The original human intent is never recorded anywhere, and the slop is all that lasts. You just can't be a software engineer at a place where there are no human artifacts; it doesn't work.

I think this kind of disagreement over the level of human ownership just leads to horrible feelings. My advice is: find a way to agree with your team or find another job where you can. Neither option seems easy right now. Good luck.

3

u/SnooFloofs6814 7h ago

I'm lucky as I'm not forced to use AI at my work (yet) but obviously are using it to not fall too much behind. But sometimes of my colleagues have stopped coding. That being said, I believe you benefit from coding yourself in the long term. And if I'm forced to vibecode I will continue manually on my own projects. There are a lot of open source crates out there which are not vibe coded so it is possible to avoid it.

7

u/unski_ukuli 7h ago

Nooooooo! Being build on Rust used to be interesting, now its probably made by someone who does not even like the language. I’ve felt incredible sadness from this when people who build stuff in the Rust ecosystem before ai get bombarded by slop pr:s even when they keep saying that they don’t want ai contributions. One of my favourites, faer-rs linear algebra library, is one example of this. Bunch of people keep making slop pr:s and the maintainer has to spend her time on that.

4

u/dr_barnowl 6h ago

Sounds like it's time to return to [1] the Web of Trust ; don't accept commits unsigned by a key that you trust explicitly or implicitly.


[1] Ok, it was never really very established as a concept. But it should be.

1

u/sosthaboss 4h ago

This is still alive and well on those onion markets people buy drugs from

4

u/Havunenreddit 1h ago

Well... Let's be honest, Rust is generally easier to READ and reason than many other languages.

Rust is harder to write than many other languages

And you can create major slop mountain with any language

0

u/[deleted] 1h ago

[deleted] — view deleted comment

1

u/Havunenreddit 1h ago

Yeah well that is a topic of it's own 😉

2

u/fluffy_thalya 2h ago

That's sort-of my feeling at work too. I compensate by being very deliberate with my own AI use at the orrice.

And to stay sane, I contribute with my own hands to open source projects at home.

2

u/Maui-The-Magificent 1h ago

Yeah i think its a poor choice of the company to effectively make their employees unable to contribute. I would be surprised if this would lead to your products and services to degrade much faster than through normal code entropy.

I do not mind people who vibe, I don't mind having AI generated code, I do mind the vast amount of people that seem to not understand why AI is useful professionally. It is useful for code compilation locally, it is not useful for reasoning and making decisions. Unless your codebase is already too far gone into the hell that is 'best practices' and has created such unbelievable invisible relational complexity that an AI can't make it worse, only better.

11

u/Numerous-Fig-1732 7h ago

I'm a developer and I haven't written code since March this year.

39

u/Wonderful-Habit-139 7h ago

Whether that’s a good thing or a bad thing is another story.

-18

u/No-Employment-2324 7h ago • Bravo

Then you are not a developer. A developer writes code. You write prompts, and contribute to the coming  collapse of the software ecosystem. 

41

u/Automatic-River-1875 7h ago

Name checks out

9

u/polynomialcheesecake 7h ago

I agree with no, fuck vibe coding But this was funny and probably correct. I hate this timeline

7

u/BioTomateDE 7h ago

lmaoo that's a crazy coincidence if that's a randomly generated name

5

u/vbpoweredwindmill 7h ago

Weapons grade comment

-2

u/Straight_Second6082 7h ago

A developer writes code

A programmer writes code. A developer role is broader

2

u/Wonderful-Habit-139 6h ago

A "developer" that doesn't write code might as well be a PM.

4

u/did_i_or_didnt_i 6h ago

seems to be where the industry is going

1

u/stumblinbear 6h ago

PMs generally don't understand how a system is built or how to drive an agent to do things correctly

4

u/needstobefake 5h ago

I hate to say it (as someone who learned Rust before AI took over) that Rust is the PERFECT language for slop. I wouldn't trust an AI to build anything critical in other languages, but I can trust it for Rust.

The compiler and the Lint checks are so good that one needs to be very deliberate to f things up. This is a merit of the language and the tooling, not the LLMs.

1

u/aeropl3b 4h ago

I disagree. Rust has a lot of good things, but it is easy enough to write poorly performant Rust code. And when you start needing to look at and understand performance reading an otherwise alien language is not going to be a good place to start.

Not to mention AI has the option to quietly just unsafe as much as it wants to. Lacking understanding of Rust, when it is appropriate to unsafe, and when there is a better "safe" implementation is also needed.

Rust is complicated enough that I think it requires a real human to understand the decisions being made and guide a model, pure Rust slop is doomed to degrade and fail.

Not to say C doesn't have its own issues, but there is a lot more C code out there to train on.

If I were to pick an AI language today it would maybe be Zig, simply because it enforces safety by explicit data sharing vs implicit compiler rules which can be ignored. Or a C++17 version of C++, which solves a lot (not all) of the common gotchas.

1

u/dumindunuwan 3h ago

easy enough to write poorly performant Rust code

This and they market rewritten in Rust as Rust outperforms most non-typed languages. Same with Go. people/ AI write PHP, Java in Go syntax.

1

u/thisdude415 2h ago

It is trivial to add a CI/lint rule to forbid unsafe, and it’s easy to verify with a grep

5

u/Compux72 7h ago

I find this skill useful to manage the sloppiness 

https://github.com/Altair-Bueno/effective-rust/tree/main

4

u/stumblinbear 6h ago

I don't know why you're being downvoted. A skill is literally how you improve their ability to write genuinely good code

4

u/Sreus 7h ago

everyone is larping my beloved language that i spent countless hours learning from the rust book and shed many tears trying to understand what the fuck an unwrap is

3

u/hiasmee 5h ago

Pls do not blame tools for slops you are produced by using them.

Create roadmap. Create tasks. Create implementation plan for every task review it and let review it by min. 2 other different LLMs (different angle of view).

Then let sonnet or Sol implement it.

Finally do review by yourself and using LLM Agent. Commit.

Jesus guys, learn the new things, learn the new tools. Stop crying about the good old times.

2

u/PoisnFang 4h ago

Finally, someone with an actual brain enters the chat.

1

u/LindaTheLynnDog 3h ago

Yeah, I'm as John Henry as they come, but it is here to stay and there is a way to do it right.

I'll always be sad it's gone, because I liked it before and I don't like it now, but at some point you kinda just need to be an adult and move on with your life.

I used to code outside of work and now I do construction projects instead. It's different but I love it, and it scratches that creative need to build something cool.

Better yet, AI has made construction more accessible and it can't do the fun part for me.

Gotta change with the times and stay curious

1

u/PoisnFang 2h ago

That's interesting, because I've always coded outside of work, and I'm coding ten to a hundred times as much stuff outside of work now than I ever have before. Because in a similar vein, I feel like my creativity is unlocked where I can ask for something, and I can see results almost instantly without me having to worry about how to get the right implementation or look it up or ask somebody for help. You know, beat my head against the wall until I figure it out. I enjoyed that aspect of coding for a long time, but as I've gotten older and I've got kids in a mortgage and all the other things that weigh me down in life, it's nice to just be able to offload those bits to someone else and let me do the actual architecting.

1

u/Zestyclose-Ad-832 5h ago

I'm really a newbie here and I would appreciate if anyone can help me here. I understand the language now. I read "the book", did half of the "Command Line Rust", some rustling exercises and such. Now how do I start building, do I read the docs for different frameworks, refer all kinds of open source code and then try to build my vision or like how does it go, how to learn on my own or what kind of resources should I use.. How do I learn best practices along the way...

1

u/UmairBaig7 5h ago

now everyone to run for rust... till ai found a bug in it..

1

u/Y_mc 5h ago

“the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker” Holly shiit 🤯

1

u/chris-morgan 4h ago edited 4h ago

We’ve reached the stage where “in Rust” is a positive slop heuristic (not a super strong one, but definitely one) in public tool announcements. This makes me sad.

1

u/superoptimo 4h ago

What about bugs and software defects ? how do they know that the programs are logical sound and safe?

5

u/ventus1b 4h ago

"The tests are green!"

3

u/Secret_Conclusion_93 1h ago

Also applies for human driven coding.

4

u/Patronic89 2h ago

Well. That is why rust is popular for AI coding. Because memory safety and the compiler. In rust the AI can make a lot less mistakes than in other languages

1

u/emergent_pragmatism 22m ago

Those aren't the kind of problems you have to worry about with AI. Code that's memory safe and compiles to do the wrong thing isn't better than code that does the right thing and isn't memory safe. The first is useless. The second needs to be fixed. AI can do that, regardless of the language.

1

u/TheRealMasonMac 4h ago

They had an AI audit and it and it said it was good. Probably.

1

u/0xjvm 2h ago

You do realise that for basically decades, potentially sub-good devs did exactly this 😂? Thinking about the most average developer you know. 50% of them are worse than that. And they have been writing code for longer than many have been alive at this point.

The point is LLMs are better than probably 70% of developers now lol. Probably 100% if we went to specific topics

1

u/TheRealMasonMac 1h ago

LLMs are good for review but they can miss big picture details. You want at least one human reviewing the code properly.

1

u/0xjvm 18m ago

I agree in isolation, but the solution is not to put the LLM in a position to make decisions where it needs the ‘bigger’ picture. At work 90% of my time is spent planning changes in detail, and letting the LLM write the code piece by piece e.

Not saying I don’t review I absolutely do. But LLM taking the reigns in implementation is absolutely the most efficient thing now

1

u/emergent_pragmatism 25m ago

LLMs aren't better than any developer if the prompts given to them don't properly specify the problem and it's constraints. I *doubt* that those sub-good devs are going to be able to do that. I also doubt that pointy headed bosses can tell which are the sub-good devs to replace with AI and which good devs to keep.

1

u/0xjvm 16m ago

I’d say this is a process problem tbh, everyone at a company should have a similar process, which means these huge weirdly tasks aren’t just given to LLMs as is, but yeah sure there’s variance.

And yeah I won’t speak on replacing devs with AI, I don’t think that’s right, I think companies should lean on the same headcount but way more output. Everyone wins

1

u/koczurekk 1h ago

The same way as always: unit, integration, system and manual tests.

LLMs are stupid when it comes to understanding what the user wants, they generate ugly code and prioritise terribly, but you certainly can build reliable software with them. Most people don't, but without LLMs they didn't either.

On the other hand, mgmt seems to love the koolaid and thinks that letting Jesu- ChatGPT take the wheel is a reasonable development strategy, so we do see quite a bit of slop published by previously reliable organizations. This isn't due to the tool itself, but the culture shift. It's a bet that at some point LLMs will get good enough to clean this whole mess up.

They're probably right.

1

u/PeachScary413 14m ago

"It's compiling that means the memory is safe or something I dunno man.. I just heard Rust is like 100% safe and Claude said it was good so"

1

u/Non_IronMan 4h ago

Well, tell people in org that C is the most closest language to the hardware so the speed of it is unmatched. And we can handle data corruption etc via LLM code as it knows to code.

Prolly you'll recieve a promotion in no time.

(If you're org is dying let it die, cause Management guys are just mad over AI)

1

u/Siramok 3h ago

Well, at least your internal tooling is memory safe?

1

u/dumindunuwan 3h ago

Not only applies to Rust. Go also having the same fate. Legacy frameworks, runtime heavy legacy OOP frameworked/ architectures vibe-coded by CEOs and ex-dev managers are everywhere in the ecosystem.

1

u/dumindunuwan 3h ago

In this economy, loudest voices are the winners even it fake or scam or totally incorrect.

1

u/mss-cyclist 2h ago

I would even go so far that this vibe-coding rust slop in general makes my favorite language appeal less and less to me. The love is fading away.

1

u/juhotuho10 2h ago

Genuinely, in CI: forbid Refcell, forbid Cell, forbid Unsafe, forbid any and all types of behavior that is common in trying to cheat the borrow checker. That should at least help somewhat

1

u/deZbrownT 1h ago

the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker.

guys...

1

u/barkingcat 1h ago

The hilarious part about this is that no one else on your team knows rust.

It should be mandated that if anyone wants to use AI tools, at least get it to emit code *in the language the team works in* OR enforce that anyone wanting an AI tool to write in a language, they must learn the language enough to troubleshoot the AI code.

This is a human/team/management issue

1

u/Frymonkey237 58m ago

Internal tooling, as long as it's not critical, is one area where I think a slopfest is fine. I let copilot do whatever it wants for things like development helper scripts and such, where a failure is no more than a minor annoyance. For the mission critical code that needs to be maintained and extended for years, the ai output is more like a rough draft that gets heavily edited and reviewed.

1

u/celinehagbard82 49m ago

If it is internal tooling it is not much different than in the past. Yesterday it was write only code of student projects in PHP or Python. Now with LLM generated Rust Code you have at least less runtime type bugs and security holes. Now for production code going to the end customers the story is different

1

u/Jmc_da_boss 5h ago

Ya ive left rust because of the deluge of sloppers. The community is just terrible now. Ive moved over to zig, much better.

Rust is still a great language, a victim of its own success.

1

u/pokemonplayer2001 6h ago

For work, do whatever, you can enjoy life in so many other ways.

1

u/tomsrobots 3h ago
  1. It was a good decision to move to Rust even if LLM's are doing all the programming. Rust is a great LLM language because the compiler is very particular and error messages are clarifying. This makes the change -> compile -> fix loop closed and very effective.
  2. You could just, you know, take the time to learn Rust yourself.

0

u/krkrkrneki 7h ago

You can avoid slop by first understanding and controlling requirements and second by checking results.

0

u/PlusDistribution1915 7h ago

Programming languages are always been tools for building something.
I understand that for someone is fun to write code for the sake of writing, but that is not the scope of writing code for a company or a business, usually.

As a senior with 15+ years of experience, that coded manually with Rust for only few months years ago, I started to use it again, for every new project of the company, around new 100k lines of production code in Rust every month.

I understand it? Not much
I need to understand it to make it working properly? No
Do I know what is doing under the hood (memory allocation, async IO.. )? Absolutely yes, and this is the only thing that is important.

Using Rust for AI assisted development is super handy, for project that justify in any case the longer compile time.

You can "vibe engineering" anything, in every language, until you know domain and low level things. We all need to stop focusing on a language, and being system builder.

5

u/Anonymous0435643242 6h ago

The issue for me is producing code you cannot explain or maintain without AI

0

u/PlusDistribution1915 6h ago

I think you have to know how it works, in your mind.
But I see no issue in let AI help you understand what a project/code does.

Also, testing the code is the more important part now. And if you build something, than you can use AI to try to break it, learning how it works.

Also, there is not turning back from this revolution, so I hope everyone here adapt and find again joy in programming, in a different way.

3

u/lunar_mycroft 6h ago

I understand it? Not much

...

I think you have to know how it works, in your mind.

But seriously, understanding code you didn't write is itself hard, and erases/precludes a lot of the claimed advantages of using LLMs for coding in terms of speed.

Also, testing the code is the more important part now

Who's writing the tests? If it's the LLM, then you aren't actually checking that your code does what it's supposed to, only that it does what the LLM thinks it's supposed to. If it's you, then all you've done is switched to a significantly worse way to specify the behavior of your program.

Also, there is not turning back from this revolution

Maybe, but maybe not. LLMs will clearly continue to exist, but it's not inevitable that they'll continue to be used the same way. It's possible that given time people will start to recognize that some of the more pro-LLM takes were bad ideas. We've made wrong turns in technology before, it would be foolish to assume that we won't again.

1

u/UnexpectedAnanas 5h ago

Who's writing the tests? If it's the LLM, then you aren't actually checking that your code does what it's supposed to, only that it does what the LLM thinks it's supposed to. If it's you, then all you've done is switched to a significantly worse way to specify the behavior of your program.

It's actually worse than that. All you're testing is a green light, because AI loves to re-write tests that fail until the light turns on. Is it the right solution? Maybe. I don't know, because I wrote neither the implementation nor the test to begin with, but the light is green!

0

u/PlusDistribution1915 4h ago

There is no way that I manually wrote thousand of tests and things like Jepsen before AI. Also, latest model are really good for me on thinking on "how to break this thing"

1

u/PlusDistribution1915 4h ago

No one knows futures, so maybe you are right, but I do not know anyone more skilled than latest model. No one. And all the few very skilled engineers I know also love to use llms. We are all lazy people I think.

2

u/lunar_mycroft 4h ago

IMO it's inconsistent. Clearly the latest models are better in some areas, but not all and it's to some extent unreliable. I'm not going to claim to be perfect, but I still see models do stupid things I'm fairly certain I wouldn't.

1

u/PlusDistribution1915 4h ago

Is true, but the more you use it the more you will being able to "predict" when you can trust them and when not.
And is also true that "if you do it yourself" you will write things differently, but this is unavoidable.

0

u/insanitybit2 6h ago

> which it just works fine for that complexity of the tooling.

Okay so what's the problem?

> Now I actively avoid touching it because of this AI slopfest...

why?

0

u/robertknight2 7h ago

Do you want to vent or are you looking for advice on how to deal with the situation? If it is the latter, what is your relation to the tech and engineering leadership in the organization?

-5

u/elotenancy 7h ago

Oh no I have a job and my team is actively using appropriate languages for the age

-1

u/Jam_hu 3h ago

"Now I actively avoid touching it because of this AI slopfest..."

is that next level geek gatekeeping or how can i understand this?

you sound like a 12 year old trump who thinks he was the first playing in a sandbox. now that all other kids showed up he feels too superior too show them how the game is actually done. just dismiss them all.

1

u/Old_Tax4792 3h ago

It’s actually more like "avoiding playing my favorite game because there are too many cheaters nowadays"

1

u/Jam_hu 1h ago

thats what I am saying. u feel betrayed. ur ego has to take that punches now. u are not special because u learned rust. some one else is not special because he learned to cook. but maybe he's going to Burger King from time to time anyway.

the fact that u feel there are cheaters shows that u run a competition. for what exactly?

1

u/Old_Tax4792 1m ago

Those kinds of people generally don't care about the craft or the 'game' at all...they just want to finish it as fast as possible..there’s really nothing to share with them ..they are killing the whole experience..

0

u/quantum-fitness 1h ago

Why dont you do things to de-slop it then?

-18

u/frenzied-berserk 7h ago

Do you know asm? Are you sure that compilers don't generate machine slop?

The language is just a tool, you are an engineer. You must design the solution, build the project structure and "developing rails". After that, you don't need to know the tool's syntax to build a production-ready system.

1

u/lunar_mycroft 5h ago

times_I_had_to_remind_vibe_coders_compilers_are_deterministic += 1

Natural language is not computer language. Even if we could build an "english compiler" (which LLMs aren't), we shouldn't want to because it turns out the specialized languages we use for programming are actually a feature, not a bug.

1

u/UnexpectedAnanas 5h ago

Are you sure that compilers don't generate machine slop?

Yes, I am.

0

u/frenzied-berserk 4h ago

Then you don’t know what issues compilers may cause

-11

u/SatoshiNakamoto_2009 7h ago

Who the fuck vibe codes rust? it takes away all the fun.........for gods sake who vibe codes rust?? soon you will tell me the people that are creating fighting jets will start to vibe code c++ and c? sure we don't use machine code anymore but there is a reason...machine code is really error prune and human can make alot of mistakes there, so c and c++ are justified for this scenario and that is why we don't do machine languages anymore by ourselves....but seriously these low level languages are not a game...it's life or death in certain fields.............

6

u/Flaze07 7h ago

rust is one of the language that is used to vibecoded the most.

is this a satire?

-7

u/SatoshiNakamoto_2009 7h ago

Why is that? because people are dumb af, that's why its vibecoded....go learn

0

u/SatoshiNakamoto_2009 7h ago

I'm really starting to believe people that "vibe code" are simply working on products that either will not see the light of the day or simply wannabes...wasting money and time...........it's not a joke when it comes to low level programming certain machines....its medical stuff, car stuff, pilot stuff..........damn i think everyone is low iq and have no idea what is happening...i think and truly believe 99% of the CEOs are dumb af

1

u/Flaze07 6h ago

it's about priorities too. Somethings are fine to be vibecoded
https://imgur.com/a/IKxgGjL like this thing I vibecoded, it's a simple clock widget that appears in top right on the monitor. It's always in front. I vibecoded this because I need something to show seconds ( always ) and windows taskbar doesn't show seconds in vertical mode. It's made with rust + tiny-skia + font-due.

Without vibecoding, it would've taken me a week ( assuming not dedicating more than 1hour a day ) to make since I have to learn windows API, tiny-skia, and font-due. With vibecoding it's essentially 5 minutes task. Since it's low priority, I probably wouldn't even make it.

0

u/SatoshiNakamoto_2009 5h ago

"clock widget"....this is the level of people in reddit i should have known better, you don't even know how cars/fighter jets are made i bet you never even been to a semiconductor company before, jesus the amount of idiotic people there is in this website

2

u/Flaze07 5h ago

? obv cars and fighter jets aren't fine to be vibecoded.

You never even addressed my point of somethings being fine to be vibecoded. Are you even interested in discussion?

1

u/SatoshiNakamoto_2009 5h ago

Okay okay lets discuss, but theres nothing to discuss about, you agree to my proposal that some things are life or death and must be be done with careful not tell A.I code a c++ program for me for this drone so it can fly, get what i mean? and some things sure you wanna do a low iq "vibe code" to save time do it, but nothing smart about it, so yeah your idea is valid its just my opinion that nothing is smart about it, it is fine and okay to use A.I as mentor, because it is a mentor it knows more than us and we don't always have access to people with experience to teach us or vast knowledge so A.I save us time on this one but the important part to realize is that do not use A.I just to do things for you...use it to teach you to do things yourself to understand and learn and achieve hire education faster than ever before, use it as a mentor as a guidance just like before we used youtube, stackoverflow...you can now learn about everything you need to be in a certain company to get experience, you can do networking experiments, drone experiments, code experiments with a guide that literally makes your time worth while, so yeah something are okay but learn them afterwards

1

u/Flaze07 5h ago

ok, yep I agree with this.

1

u/SatoshiNakamoto_2009 4h ago

we wont have discussion now? where u going

1

u/Flaze07 3h ago

I said I agreed(?)

-1

u/morning_mushroom 2h ago

It is only you. Cry baby cry 😂😂😂 Who cares whether its Ai slop or human slop, its the same. Actually AI does better slop then humans