r/AskProgramming • • Oct 16 '26

Why are all vibecoded programs and games I see coded in Rust?

Is there a particular reason why specifically Rust is used? Is it the new C++?

edit; thank you all for the comments, I've learnt alot!

167 Upvotes

185 comments sorted by

222

u/canarydev Oct 16 '26

the compiler is basically a free reviewer for the ai. a lot of bugs that would show up at runtime in python or js just dont compile in rust, and the errors are clear enough that the agent can fix its own code

72

u/scrdest Oct 16 '26

That's the main reason, vs something like C or C++. 

The secondary reason is that vs something like Python, the resulting program is almost always going to be like 100x faster.

34

u/SithLordRising Oct 16 '26

It's also the 'cool' language, so if buying credits it's rust or golang

4

u/Bubbaluke Oct 16 '26

Also means it has a lot of publicly available code to train on

1

u/Esava 17d ago

And most of the publicly available code is at least semi recent and not 40 years old like with C and C++.

6

u/Bemteb Oct 16 '26

Why is that the reason to not use C/C++? These two are compiled languages too, not interpreted ones...

24

u/mownzlol Oct 16 '26

It's because C++ error messages are basically useless 50% of the time.

(At least this is my personal hot take)

13

u/Xirdus Oct 17 '26

They're not useless, you just have to learn how to read them. Step 1: ignore the middle 99% of the error message. Step 2: the error is actually in the line before the one compiler complains about.

5

u/Leo0806-studios Oct 17 '26

Step 3: Use an actual ide that parses the template instantiation errors (like visual studio)

8

u/WispTheWanderer1 Oct 18 '26

Step 4: Cry in the corner bc the linker starts throwing unresolved external symbol bc one file decided to be left off the compiler after it worked just fine the previous tens of compilations

6

u/MadGenderScientist Oct 18 '26

error: too many errors

1

u/[deleted] Oct 18 '26

Fix your dependencies.

1

u/geckins Oct 19 '26

Step 4: oxidize.

4

u/max123246 Oct 17 '26 edited 27d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Reply crown repeat wakeful plate tub

3

u/nothingtoseehr Oct 18 '26

Implying that human written cmake is any better x.x

1

u/Emyr42 Oct 22 '26

If the model tends to the statistically strongest signals, it's going to generate mediocre code, assuming code quality forms a bell curve.

2

u/No-Hamster-5870 Oct 17 '26

not hot take, noob take

1

u/NoAlbatross7355 Oct 18 '26

most of the time there is no error message. That's the important part. Underined bwhavior is a nightmare for agents relatively speaking.

1

u/KELTONDREY Oct 20 '26

Skill issue

7

u/Natehhggh Oct 16 '26

Rusts borrow checker turns some/most bad memory management practices into compile errors. but those stay as runtime errors in other manual memory languages, which are difficult to debug.

2

u/Dihedralman Oct 19 '26

It saddens me that people don't realize that this is 100% the answer. I remember the relief of learning Rust didn't segfault when I dabbled. 

2

u/stewsters Oct 17 '26

When you compile rust it gives you a text description of the error, but with c++ if your pointer math is off you often get a segfault with very little information.

2

u/wallstop-dev Oct 18 '26

There is a large surface of types of errors in C and C++ that compilers will happily generate code for, which will fail to compile for "equivalent" Rust.

Rust is stricter about what "valid" code is.

1

u/Randommaggy Oct 18 '26

The Rust compiler has a lot of opinionated feedback. You can use a few third party tools with C++ to get close to getting as much high quality feedback without added effort but it's not out of the box in the same way.

1

u/NoAlbatross7355 Oct 18 '26

Not having to deal with undefined behavior is pretty nice.

1

u/mikaball Oct 20 '26

The safety features Rust has can't even be compared.

1

u/Stock_Test2326 Oct 30 '26

am a total noob, so in C, C++ the compiler won't do that? I thought we can't compile in C C++ if code is not right.

1

u/scrdest Oct 30 '26

All three check stuff, but Rust's checks are far stricter - if you wrote exactly equivalent C/C++ and Rust code side, all programs that compile in Rust would compile for the Cs, but some programs that compile for C would be rejected by Rust (assuming no `unsafe` etc.).

This is most prominent for anything that deals with pointers - C trusts you to not do something stupid like dereferencing a null pointer and assumes you've handled edge-cases, Rust checks itself and will slap you (with quite nice and helpful error messages) if your code would potentially allow something bad to happen to your memory - though again, there's `unsafe` to tell the compiler to chill if you know for sure the edge-cases are handled in this specific piece of code.

1

u/Stock_Test2326 Oct 30 '26

thanks for the explanation, am just now learning python. I haven't took it as optional subject even in schools. bad teachers.

tbh I have been learning python for a years now but I can't code. can read though.

rust, C & C++ are in my wishlist of languages to learn

1

u/scrdest Oct 30 '26 • Heartwarming

My advice for Python would be to stop reading, start writing - closed book style - until you hit a wall where you cannot remember syntax. Then look it up and back to closed book, rinse and repeat.

This forces your brain to actually retain the syntax and build an understanding rather than subconsciously offloading it to the book/tutorial/snippet/whatever and getting stuck in Tutorial Hell. At least, that's what worked for me a decade ago when I was first picking up Python - and considering I've been a Tech Lead for about half of that, it seems to have worked decently well.

Once you're comfortable with Python, I'd probably go for a bit of C next as a logical progression, though it's a bit of a shock as you lose about 30 years of ergonomics. Rust brings a lot of them back, but it's easier to understand why Rust is being pedantic at you if you understand how C does things and why.

1

u/Stock_Test2326 Oct 31 '26

also regarding DSA, do you think one should learn DSA with python and only then move to C C++ (Abdul Bari videos)

1

u/vermyx Oct 17 '26

Thats only if you dont know what you are doing. Also 100x is a great exaggeration

3

u/User-pain Oct 17 '26

I've told him a million times not to exagerate

8

u/edgmnt_net Oct 16 '26

That's wishful thinking at least in part. There might be some benefits provided the LLMs get good training on common patterns and essentially get that for free. But simply writing Rust code does not guarantee safety unless it's also idiomatic and leverages language goodies appropriately.

Might be a contrived counterexample, but Java isn't memory-safe either if you just get a huge chunk of memory and allocate things manually from it. But more reasonably, whoever writes the code not only needs to produce valid code in a straightforward manner, they also need to think hard sometimes and pick appropriate types etc.. That's not a given, not automatically at least.

Meanwhile, LLMs probably glean some structure even for Python libraries. There's a lot more Python code out there, which may improve things in certain cases (a lot of good usage examples for popular libraries) or hurt things (a lot of semi-crap code floating around).

It's also pretty clear to me that it doesn't quite work as easily as some have implied with theorem provers. It's pretty pointless if you let it vibe-code all the way including the theory, you have no control over what it actually proved. Even if it's legitimate as automated proof search, but that's basically more like autocomplete or enhanced search in ordinary programming.

10

u/oldsecondhand Oct 16 '26

But simply writing Rust code does not guarantee safety unless it's also idiomatic and leverages language goodies appropriately.

It protects against memory leaks and buffer overflows. Those used to cause a lot of security issues, but ofc it won't protect against everything.

2

u/mikaball Oct 20 '26

Rust doesn't protect against memory leaks.

2

u/orangejake Oct 20 '26

for explicit pointers, Box::leak is not marked unsafe

https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak

you can see some motivation for this choice on the page for mem::forget

https://doc.rust-lang.org/std/mem/fn.forget.html

1

u/UdPropheticCatgirl Oct 21 '26

Do you even write rust? There is ton of different ways to actually leak memory… Like having mutual ‘Arc’s, rust does very little to protect you from it, basically the same RAII system as C++. Resource management is in general mostly orthogonal to what guarantees rust cares about.

2

u/max123246 Oct 17 '26 edited 27d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Lavender spotted file license quaint fuel raindrop capable tap

1

u/edgmnt_net Oct 17 '26

Yeah, I also guess that LLMs have some advantage at writing Rust over average coders (including a vast majority of coders who simply do not know Rust at all, so there's that). I might fixate too much on a higher bar for quality, but I would say it's different for open source projects versus personal/company projects. There's also been some effort in devising LLM-first languages I think and, although it's not my cup of tea, it makes some sense. Ultimately I guess that's what OP asked, "why", so the toplevel answer is fine, I just wanted to highlight the limits of the general argument.

1

u/Ollythebug Oct 17 '26

How is the AI generated code unintelligible in your use? I haven't been running into that issue much with our codebase.

1

u/BusinessBandicoot Oct 17 '26

A lot of the llm generated code is not idiomatic. It uses strings for things that would better be expressed as an enum, it doesn't localize error types, it prefers loops to iterators, etc. 

It also generates unit test for things that are tautologically true, or is unit testing the libraries used.

On that last one, I've been thinking of trying to make a code coverage tool that has some checks for "noisy" test(this duplicates a dependencies coverage or this is just always going to be true by definition)

3

u/Sparkly-Sparrow-6893 Oct 16 '26

What I'm hearing you say is that vibe coders should switch to extracting OCaml programs from constructive Rocq developments.

2

u/mister_drgn Oct 16 '26

You can totally vibe code OCaml, but it won’t run as fast.

Also there may be some cases where the OCaml compiler lets you introduce bugs but the Rust compiler wouldn’t. Algebraic effects, at least.

4

u/Sparkly-Sparrow-6893 Oct 16 '26

Rocq is a theorem prover based on the Calculus of Inductive Constructions, which allows you to extract an OCaml program from a constructive proof of a program's correctness.

The joke is that if Rust is better than C++ for vibe coding because its type system catches more bugs, then surely extracting OCaml from Rocq must be better than Rust because its type system can enforce arbitrary correctness properties.

2

u/mister_drgn Oct 16 '26

I did hear a podcast recently where someone claimed languages like Lean would be important in the AI era because AIs can prove the correctness of their programs, but we know everyone just vibe codes in whatever language is most convenient.

2

u/samanzaman Oct 16 '26

I do vibe code in lean. I also experimented with using verus and prusti with rust

1

u/Sparkly-Sparrow-6893 Oct 17 '26

I know that my response was a bit sarcastic, but I actually do think that with good enough compilers - especially whole-program optimizing compilers - this will eventually become a reasonable way to build software.

3

u/7YM3N Oct 16 '26

I always compile my c++ with pedantic wall werror

-3

u/flugi_ Oct 16 '26

I was pretty pissed off a few years ago when I encountered a lib which had -Werror in the cmake settings and also recheck repo and redownload on build, so when I edited the cmakelists.txt file to remove Werror, it did rewrite it and still did not compile because the lib was compiled with a different compiler..

1

u/7YM3N Oct 16 '26

That's not how any of this works

1

u/flugi_ Oct 17 '26

it's pretty unusual to include -Werror in a lib release, yes, with a pretty good reason: code rot is almost instant this way. Normally a lib is released and for a few versions of compilers it still works as code deprecation slowly progress. -Werror lib will not compile on the first compiler upgrade.

So if you use -Werror, when publishing anything on github or other, remove -Werror from the flags.

1

u/LeDYoM Oct 19 '26

you can have -werror as private property.

Anywhay, there is a modern way to do that in modern cmake instead of adding werror:

set_property(TARGET ${current_target} PROPERTY COMPILE_WARNING_AS_ERROR ON)

1

u/ComeSwirlWithMe Oct 21 '26

I don't even know what this means. But I like it.

1

u/prince_0611 Oct 30 '26

Oh that makes sense, I was getting AI vibes every time I hear rust mentioned. I knew my senses were right.

1

u/_usr_nil Oct 17 '26

does it hurt the AI

-7

u/DiamondDramatic9551 Oct 16 '26

That's definitely an argument for static/strong typing but c++ also has that. 

15

u/canarydev Oct 16 '26

true but c++ will happily compile a use after free or a data race and let it blow up at runtime. rust’s borrow checker catches those at compile time, thats the part that matters for ai code

also c++ template errors are a wall of text, rust errors basically tell you the fix. and cargo vs cmake, agents struggle way more with c++ builds

1

u/zsaleeba Oct 16 '26

c++ will happily compile a use after free

For the most part, that's not true. If you use modern C++ constructs like std::unique_ptr and std::shared_ptr, you generally don't have that problem. (There are exceptions) Those constructs have been around for over 15 years now so widespread use of raw pointers in new code is mostly long gone.

3

u/earlyworm Oct 16 '26

I agree. C++ is almost just as safe as Rust as long as every programmer on the team is sufficiently diligent and strictly adheres to best practices and never makes any mistakes and manually does work the Rust compiler would otherwise be doing, and if the authors of all third party packages are trusted to be equally disciplined.

And so for the most part, it’s simply not true that the C++ compiler will blindly compile code that exhibits runtime errors that Rust would catch at compile time although, as you said, there are exceptions.

For a new project, C++ is an excellent choice for an LLM that never makes mistakes.

2

u/DiamondDramatic9551 Oct 16 '26

This, and I assume modern llm's are plenty aware of the modern way of using c++. 

4

u/4xe1 Oct 16 '26 edited Oct 16 '26

The least you have to assume, the better LLMs work. LLMs can probably write good modern C++ if you ask them too, but they cannot write bad Rust even on their own, and that's better (oversimplification, but any hole you can poke usually poke both languages)

2

u/Asyx Oct 16 '26

They probably are but there is still a huge amount of potential C++ that could be generated.

I get the idea and have used modern C++ (not with LLMs though) but you have to push LLMs sometimes to just use modern python. With the amount of deviation from some ideal C++ standard that you find in the wild, I'd rather use a language that just doesn't give me another option.

1

u/TheCh0rt Oct 16 '26

I get way better results writing apps in cpp than in Rust and the llm seems to like it more too

2

u/[deleted] Oct 16 '26

The whole thing about pointers being so dangerous in C++ is vastly overstated as a problem. But the far more dangerous thing is retaining using a returned reference after it's lifetime. It's both valid C++ and doesn't always look bad or dangerous.

9

u/Ulrich_de_Vries Oct 16 '26

C++ also has shittons of UB which is not checked by the compiler at all whereas Rust has no UB outside unsafe blocks (and I guess unintentional compiler bugs).

1

u/LeN3rd Oct 16 '26

Its incredibly different. Just alone from how and what thw compiler vocalizes.

1

u/0DayMaker Oct 16 '26

Or java or C# something that doesn't let you shoot yourself so easily

1

u/YMK1234 Oct 16 '26

Void* enters the chat

39

u/edave64 Oct 16 '26

The more compile time restrictions you can put on an LLM, the lower the chances that it will break things. At least for memory issues, rust forces you to explicitly mark unsafe sections, which reduces the context required to evaluate if the code is actually fine to that block.

So the theory at least, I don't use LLMs enough to tell you how well this works in practice.

For true vibe-coding, it could also just be they feel a degree of "prestige" to being written in rust, or they don't care at all, just let the LLM choose, and it chooses rust because that's what a lot of it's newer training data is in

5

u/edgmnt_net Oct 16 '26

Or it ends up using Rc and then it's not really leak-safe. Or you do your own suballocations from a larger allocated block and then it's not even memory-safe either, if overflows remain viable. It sounds contrived but there are other examples where not keeping up with idiomatic code results in not getting the benefits of the language.

1

u/garagedragon Oct 16 '26

Overflows by escaping the bounds of a subslice of an array are still caught at runtime even when the memory you're trying to access is a valid allocation, unless you really go out of your way with get_unchecked accesses. (which needs marked as unsafe.)

1

u/edgmnt_net Oct 16 '26

You don't really have to go out of your way to do stupid stuff like passing a larger array along with indexes into it, which might be misused. I'm not talking about using a legit subslice, but people did stupid stuff all the time when switching languages, for example. And honestly if we're considering LLMs won't do stupid stuff, well, yeah, that's true to an extent (if it would be too unnatural), but also consider that it might not do really stupid stuff in C or Python either.

1

u/edave64 Oct 16 '26

You don't need RCs to get leaks, just static lifetimes. Same reason why you can still have leaks in GC'd languages.

But that's why I said in theory. That's the justification I heard from people, I don't have any evidence to back it up. Not sure if there are any useful benchmarks of that out there.

1

u/deaddyfreddy Oct 16 '26

compile time restrictions

they don't need to be compile-time, the linting stage is enough

1

u/DiamondDramatic9551 Oct 16 '26

Wouldn't AI be famiilar enough with c++ to use the modern memory safe types/methods anyway? 

11

u/cipheron Oct 16 '26 edited Oct 16 '26

LLM AI only know how to do what they do by reading a lot of example code and following the patterns. If they have bad practices in there then they will break stuff.

Additionally, I've had times when I told the LLM to make a very specific and small change, and instead it decided to rewrite most of a function and just delete all the bounds and error checking. And if you ask it why, it can't give you a reason, because there was no reason it did that, it just did it based on some probability coin flip that it's going to randomly delete necessary parts of a program, after you spent a while getting it to carefully construct it.

The dangerous part is that the wrecked code still compiles, because the one thing LLMs are really good at is grammar, so it won't make the common typos but it does make catastrophic failures at the logic level instead - the type of errors that can creep in and are harder to catch. So you can say "rewrite this script to do X", and you tell it a small and specific change to make, and MOST of the time you get what you asked for, while sometimes it decides to redesign everything from the ground up for some unknown reason, and decides big chunks of the program can go, if the code technically still compiles without it.

So anything you can do to enforce more rails for the AI reduces the chance of catastrophic fuck-ups.

3

u/xenomachina Oct 16 '26

Additionally, I've had times when I told the LLM to make a very specific and small change, and instead it decided to rewrite most of a function and just delete all the bounds and error checking.

Yup. I've also seen agents delete tests or linter rules because they were having trouble getting them to pass. You can nudge agents away from this behavior somewhat with CLAUDE.md, etc., but the only way to be sure is to actually look at the output yourself, or sandbox the agent in such a way that it can't neuter those checks.

1

u/Kaldaien2 Oct 17 '26

Hahah, yeah. Iteratively building on stuff with AI agents isn't really a thing. The AI likes to rewrite stuff on a whim and then find nothing at all wrong with changing the build environment to fix something rather than going back to a previously working solution and avoiding the unnecessary changes. They really need to prioritize leaving the build system alone and solving problems with code the way any rational human would.

3

u/edave64 Oct 16 '26

As the same with human programmers, depending on them to explicitly do the safe thing is much less reliable then having to explicitly do the unsafe thing.

Unless you use something like fil-C, C++ at it's core is an unsafe language and makes unsafe things easy.

You can probably get an LLM to somewhat reliably flag usage of unsafe patterns in C++ code, but it's just easier not to have those patterns in the first place.

2

u/joonazan Oct 16 '26

Those types are not a guarantee of safety. One practical difference you can see is that Rust is full of lambdas and C++ usually isn't because those can hide lifetime mistakes.

1

u/Demiu Oct 16 '26

It would be. But it would also be familiar enough with the "legacy" C++ 

17

u/ern0plus4 Oct 16 '26

Rust's ownership and lifetime restrictions prevents any programmer (human or LLM) to write programs which makes basic mistakes of these types. In C or C++ you can allocate memory, then never free it, or lock a mutex, then never release it. In Rust, you can not do such.

In C or C++ incrementing a lock-protected value looks like:

Mutex x;
(...)
x_mutex.lock();
x++;
x_mutex.unlock();

In Rust:

let counter = Mutex::new(0);
(...)
{
   let mut num = counter.lock().unwrap();
   *num += 1;
}

In C++, if you forget x_mutex.unlock();, it will be locked forever.

In Rust, you can't make such mistake. If you don't put it into a block, it will be keep locked until the next block close, in worst case, until the end of the function.

The glass is half full: using Rust for vibecoding, at least, does not cause a wide range of errors. But a program, which have no memleaks and lock errors, still can be crap. And the glass is half empty: using LLMs, without human architecting and supervision, it will be crap, I promise.

5

u/LeDYoM Oct 16 '26

hi, I am std::mutex_lock and RAII.

5

u/ern0plus4 Oct 16 '26

Yep, sure, but you are not forced to use it. You can use lock without release. Not you or me, but the stupid LLM.

As from Java47384 (I don't remember the exact version number) has Option as well, so null should go out of fashion. And you will use it, and me too (only theoretically, I don't use Java), but not the stupid LLM.

6

u/LeDYoM Oct 16 '26

I supposse you can add "use modern C++" and "make no mistakes".

3

u/ern0plus4 Oct 16 '26 edited Oct 16 '26

No. There are lotsa' non-safe code written in C++, and LLMs are fed with these, so they will spit out such code.

1

u/OrphisFlo Oct 17 '26

Not really unless you are writing a low level container that may want such control.

They could use old patterns for new code, but they don't in general, unless it's used all over the project already and then they might just try to match the existing style. The corpus for LLMs is not that dumb (most of the very dumb code is enterprise software that is not open source and was never upgraded).

2

u/LeDYoM Oct 17 '26

The output of an LLM is random.

1

u/OrphisFlo Oct 17 '26

The output of a human is random. So what?

1

u/LeDYoM Oct 17 '26

Call me selfish but I team with humans. Aaaaand it is less random than the LLM. By definition.

1

u/ern0plus4 Oct 17 '26

Okay, let's see: who should implement your startup's app 1. LLM 2. A team from India

→ More replies

1

u/AnArmoredPony Oct 16 '26

is that C?

1

u/LeDYoM Oct 19 '26

no, C++. In C you might be able to simulate RAII with defines.

8

u/GlobalCurry Oct 16 '26

Rust by design prevents a lot of bug and error classes, the compiler provides verbose output on the problem and it's a fun language to write by hand if the need arises.

12

u/AssistantNo3545 Oct 16 '26

Honestly I see way more Python and TypeScript than Rust when people post AI generated projects.

2

u/pancakeQueue Oct 16 '26

The data scientist who built these LLMs are strong Python users, so it makes sense the first tool Claude reaches for to problem solve is Python. It’s the scripting/prototyping language that is usually OS agnostic.

1

u/SufficientlyEvasive Oct 19 '26

When you get AI to make python it usually bombs out a single file. 

Rust is a whole bunch of files, untill I started using Claude code in terminal I was just copy pasting from one place to another so it was daunting, the whole cargo thing was obscure. 

Now I've been making basically everything in rust since I was making some light weight and performative programs. 

But yeah the whole way it did everything was confusing for me for a bit. And I do have an unprofessional coding background and decent chunk of terminal experience..

0

u/JeLuF Oct 16 '26

Same. I think Rust is what people choose that have IT experience and think about their architecture before starting.

E.g. the people behind ArtCraft, they are experienced programmers. If AI would suggest to build a desktop application in Python, those people would stop this at the start.

But in my experiments with AI, asking it to build a desktop application, the AI came up with Python quite often and I had to push it to use a compiled language instead.

11

u/BeginningPea5674 Oct 16 '26

nah rust is definitely in the hype bandwagon not in the experienced architect camp

6

u/JeLuF Oct 16 '26

The advantage of Rust with LLMs is that Rust by design catches a lot of issues at compile time that are runtime errors in other languages. This allows LLMs to write better quality code.

Rust being hyped does not mean that Rust is bad. It has its advantages.

5

u/BeginningPea5674 Oct 16 '26

and disadvantages

1

u/max123246 Oct 17 '26 edited 27d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Spectacular cobblestone resolute cobalt iron violet flowery airport

1

u/BeginningPea5674 Oct 17 '26

why do you keep on and on with all this rust advocacy 

1

u/Suitable-Name Oct 17 '26 edited Oct 17 '26

What do you explicitly think is bad about it? Where does it lack, besides your feeling it's all hype?

Edit: grammar; added 2 words

1

u/BeginningPea5674 Oct 17 '26

there you go

1

u/Suitable-Name Oct 17 '26

Can't give an answer? So just cool to be against it?

1

u/max123246 Oct 17 '26 edited 27d ago

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Bike outgoing employ offer aback pot history spark north tan

0

u/BeginningPea5674 Oct 17 '26

shut up about it already that's why you lot are so obnoxious 

1

u/SaltContributionsF35 Oct 17 '26

Reading this, I was genuinely curious to hear your opinion on the disadvantages, as someone new to the subject.

→ More replies

0

u/[deleted] Nov 01 '26

[deleted] — view deleted comment

→ More replies

1

u/TheCh0rt Oct 16 '26

I use CPP. LLMs do the best work on that. GUIs on Rust and Python look like crappy Electron interfaces

1

u/Suitable-Name Oct 16 '26

Ever looked at Slint?

1

u/TheCh0rt Oct 17 '26

Oh interesting. I specifically work in audio

1

u/Suitable-Name Oct 17 '26

Check out Indicatrix. I made the UI using Slint: https://www.indicatrix-suite.com

Absolutely a great framework :)

Also just released some test harness with coverage check and so on:

https://www.reddit.com/r/rust/s/3cUGcc7GKq

2

u/Exact-Rabbit375 Oct 16 '26

The people behind ArtCraft are not that skilled, if they were, ArtCraft would actually be half decent, and not just a slopfork. They use Rust because Rust is popular, there is always the tech bro want to say something is "rewritten in Rust" because people think it must be faster.

0

u/Suitable-Name Oct 16 '26

Aren't they still working on it? Do they call it V1 already?

1

u/Esava 17d ago

They don't call it V1, are working on it and honestly for such a short lifetime the ArtCraft Apps are SHOCKINGLY decent. Same with the advancements of SolidCraft (this is not by the ArtCraft team but by TangencyLabs).

-2

u/Mediocre-Brain9051 Oct 16 '26 edited Oct 16 '26

Well, only when performance is not an issue. Rust is compiled, statically typed and has no Garbage collector. You can't beat that with any other memory-safe language.

8

u/Adorable-Strangerx Oct 16 '26 • Bravo

Because each language has it niche - for example python is widely used by scientist. And rust's niche is "language for rewriting stuff into".

3

u/DDDDarky Oct 16 '26

Because they produce so much broken shit they hope a restrictive language will prevent some of it.

4

u/ChickenSpaceProgram Oct 16 '26

some people want to use the new shiny thing. that can be LLMs, and it can be Rust, and the type of person to want to use one is probably also going to want to use the other, because shiny.

2

u/cjc4096 Oct 16 '26

It's not a horrible way for an experienced dev to learn a new language. I've learned a ton going thru others code. Tho most wouldn't publish or market it.

For all the reverse engineering work done on existing apps. It's provides an implementation separate. It's created by a spec (even if internal llm thinking) and recreated. Not a derived work. Whether that is sufficient I don't want to get into.

2

u/KnackeHackeWurst Oct 16 '26

Most comments here are just about the language itself but Rust has with Cargo also a very easy to use build and package ecosystem. Compared to C++ it's straightforward to get a native application even for different target architectures.

Yes Cmake, Conan, etc. exists but that all still feels like makeshift solutions and nothing has any "official" blessing or is the default on multiple platforms.

After over 20 years of C++ development I love Rust for Cargo alone.

1

u/do-sieg Oct 17 '26

This. From all the stacks I used over the years, I was really surprised to be able to have an app set up and launch in a few seconds.

1

u/whattteva Oct 18 '26

I personally think Go is better in that regards. And the resulting binary compiles to just a single executable, making it super easy to distribute. 

2

u/KnackeHackeWurst Oct 19 '26

The single binary is true for Rust, too. What personally do you like better on Go compared to Cargo?

1

u/whattteva Oct 19 '26

Ah is that so. I'm actually not too familiar with Rust and didn't know that they are similar in that regard. 

4

u/Luoravetlan Oct 16 '26

Performance comparable to C and C++, no memory leaks, doesn't compile on silly mistakes.

6

u/UdPropheticCatgirl Oct 16 '26

> no memory leaks

People really have to stop saying this shit, leaking memory in safe rust is trivial…

2

u/oscillator-eye Oct 16 '26

They also don't know about C and C++ compiler flags that provide most of the bounds checking you need for memory safety.

2

u/FrE3E Oct 16 '26

At this point so many rust projects are C/C++ rewrites, because that is easy. compared to actually creating new software.

1

u/cogit2 Oct 16 '26

I think it's fair to say that Rust is designed to be more secure than C and C++ by default, therefore people trust it more as a language and trust that intention with the Rust language as it develops. The irony is AI can add bugs and not catch them, although apparently the latest AI models can apparently detect bugs very successfully too.

3

u/Due_Laugh6474 Oct 16 '26

Rust is absolutely the best language for vibe coding, and you’ll never convince me otherwise. Successful agentic coding is all about steering and flagging issues deterministically. Rust gives both. AND it’s super fast and efficient as a language. The hard part of actually learning Rust isn’t an issue if the agent is doing it, so there’s no reason not to use it.

1

u/AccomplishedBrief639 Oct 30 '26

Probably just for promotion

1

u/qrzychu69 Oct 16 '26

It kind of is the new C++ - it takes you VERY close to the performance ceiling when written well, overtaking Rust in C++ means doing "technically unsafe" things, like assuming things are true that cannot be proven true at compile time.

It can be done, but requires a lot of practice and skill to pull off.

Rust is just easier and gets you 99% of the way (or 95% for the C++ fanboys). And it has WAY better error messages, so it's easier to fix issues.

1

u/TheSodesa Oct 16 '26

Because the borrow checker and lifetime mechanisms of Rust make it very likely that if a program compiles, it also works as the program specification intended. This however shifts the burden of correctness to the specification stage, so an LLM prompter needs to think carefully about what they ask from an LLM.

1

u/rogue780 Oct 16 '26

I do most of mine in python and java ¯_(ツ)_/¯

1

u/wunderbarposter Oct 16 '26

they are a particularly good fit as rust prevents quite a few easy to make / hard to debug mistakes... mistakes which are even more difficult to find if you didn't pay close attention to the programming. The syntax/language is also on the more difficult side - AI can be very helpful with that.

1

u/crusoe Oct 16 '26

Strong assertions and types and rust prevents whole class of subtle errors in the code. Such as race conditions, use after free, etc 

Plus tooling is super good and messages super helpful to agents.

1

u/tropic_gaze_v2 Oct 16 '26

the borrow checker acts as the ultimate lint tool, forcing an LLM to respect strict data integrity boundaries before code execution

1

u/No_Strike_6496 Oct 17 '26

I assume because AI can't ensure correctness with a C++ program like it can with a Rust program. The compiler just gives the AI so much for free (memory correctness namely) that it can't get with C++

1

u/huuaaang Oct 17 '26

Rust is easy for AI to write because it gets immediate feedback when it does something wrong. Same as a human programmer. In Rust, if it compiles it probably works.

1

u/biskitpagla Oct 17 '26

Rust takes care of things AI can't guarantee due to being probabilistic unlike compilers. 

1

u/Alex-S-S Oct 17 '26

Because people apparently think that modern C++ doesn't exist.

1

u/Dependent-Net6461 Oct 17 '26 edited Oct 17 '26

Someone is trying to opensource adobe softwares with ai and rust. The clear failure , at the current state and considering the huge amount of burned tokens, shows that rust + ai is not that magical combo "everyone" is shilling about

1

u/texxelate Oct 17 '26

Rust has an amazing compiler and borrow checker in that the cause of a compilation failure is very well described to the programmer in clear language. Agents are also very good at interpreting clear language.

1

u/ImAmalox Oct 17 '26

Don't worry bro in a few months AI won't use programming languages anymore and it will just produce native machine code

1

u/OrphisFlo Oct 17 '26

Another reason is that it's easier to start a new project with Rust than C++. There are a lot of high quality libraries to rely on that are easy to integrate in your project.

In C++, if you try to integrate some libraries with a new compiler, you'll run into so many issues that you have to deal with first as the compilation model allows for a lot of hidden "mistakes" that are hidden behind other "mistakes". For example, some standard library header includes <string>, so you forget to do it in your code, and when the standard library fixed that accidental leak, your program stops working.

There are lots of small problems like that all the time, and it's tiring.

1

u/Low-Set741 Oct 17 '26

Better memory safety and still super fast

1

u/_usr_nil Oct 17 '26

Can someone explain to me why a comprehensive any-SAN toolchain not be enough for LLMs vs Rust ?

1

u/DawnOnTheEdge Oct 17 '26

Rust’s strong type system, and use of sum types for error checking, makes it easier to use typed-hole programming to implement a top-down specification iteratively.

It’s also more likely that a program that compiles without warnings does something related to what the vibe coder wanted. You can’t forget to free heap-allocated memory (because a Box or Vec will be dropped automatically when its lifetime expires) or check for error (because a Result or Option must be unwrapped to use it).

1

u/hunterh0 Oct 19 '26

What I don't understand, is why not simpler languages like C#? which are also safe

1

u/DanKegel Oct 20 '26

If rust compiles, it tends to work  Can't say that about c/c++.

1

u/DrHydeous Oct 16 '26

That's just because you're only looking at Rust stuff. There's plenty in other languages.

-1

u/iSnapThere4iAm Oct 16 '26

Because you’re terrible at developing

0

u/arjuna93 Oct 16 '26

Hipster coders don’t know anything aside of Rust and Go exists.

-4

u/Mediocre-Brain9051 Oct 16 '26 edited Oct 16 '26

Rust replaced C++ and C a long while ago already due to memory safety, having several proeminent institutions recommending it over C++ and C. It is however hard for humans to write rust code when memory management gets challenging, while AI takes care of that problem painlessly.

AI is indeed accelerating the move from those legacy unsafe languages into Rust.

Edit:

Institutions recommending Rust (or other memory-safe languages) over C and C++ due to safety concerns:

  • The White House Office of the National Cyber Director (ONCD)
  • The U.S. National Security Agency (NSA)
  • Cybersecurity and Infrastructure Security Agency (CISA)
  • National Institute of Standards and Technology (NIST)
  • DARPA (Defense Advanced Research Projects Agency)
  • The Linux Foundation
  • Microsoft
  • Google
  • AWS
  • Apple

3

u/Medical-Aerie9957 Oct 16 '26

Source: trust me bro

-1

u/Mediocre-Brain9051 Oct 16 '26

Institutions recommending Rust (or other memory-safe languages) over C and C++ due to safety concerns:

  • The White House Office of the National Cyber Director (ONCD)
  • The U.S. National Security Agency (NSA)
  • Cybersecurity and Infrastructure Security Agency (CISA)
  • National Institute of Standards and Technology (NIST)
  • DARPA (Defense Advanced Research Projects Agency)
  • The Linux Foundation
  • Microsoft
  • Google
  • AWS
  • Apple

3

u/aresi-lakidar Oct 16 '26

haha what...

Rust, C++ and C all have their use cases. As does AI coding and hand coding. I find the "this has to replace that forever" mindset really funny... we didn't stop eating food because nutritional supplements became widely available.

4

u/BeginningPea5674 Oct 16 '26

rust has the most obnoxious community by far 

c, cpp etc? rewrite it in rust!

js, py etc? rewrite it in rust! 

bunch of knuckle draggers 

2

u/aresi-lakidar Oct 16 '26

rust devotee + llm devotee at the same time is a special kind of religious intrusiveness lol

3

u/LeDYoM Oct 16 '26

yeah, Rust is the next "will replace C++". There have been others. Why not another one?

1

u/behindtimes Oct 16 '26

I mean, if LLMs are the future for all code from here on out, and they get good enough to never make mistakes, it will just be pure assembly.

1

u/LeDYoM Oct 16 '26

I dont think (or dont want to believe) that is the future, but if it is, yes, let the LLM write the exe on HD directly.

1

u/code_tutor Oct 16 '26

trash take if not complete lie

0

u/BeginningPea5674 Oct 16 '26

not a long while ago at all and some millennial hires at some corporation or another don't represent the entire corporation, and those governmental entities was a Biden era hype bandwagon cringe thing not too different from cardi b interviewing Biden 

1

u/Mediocre-Brain9051 Oct 16 '26

These are company policies.

Since when does this have anything to do with the orange old man?

0

u/BeginningPea5674 Oct 16 '26

it has nothing to do with the orange old man

some Biden admin era cringe millennials went all in on rust where did i mention orange man 

1

u/Mediocre-Brain9051 Oct 16 '26

You are suggesting that the policies that were enacted before the old orange man were later undone when he sat on the golden toilet, No?

1

u/BeginningPea5674 Oct 16 '26

are you struggling with reading comprehension 

-1

u/IamGah Oct 16 '26

Because it is ‚damn hot right now!‘ and .. really it doesn‘t matter?

crap UI is shot, whatever the <language>

-2

u/code_tutor Oct 16 '26

People who are regarded choose Rust as their first language. It somehow attracted the entire "I want to be unique just like everyone else" crowd. Also they all use vim and can't even type.

Vibe coders are the same way. They think it's cutting edge or something, don't want to use "old" tech, only hyped stuff.

DHH has some things to say about it though, so there are valid reasons.

For game design specifically it's dogshit though.