These results will be heavily skewed by the huge amounts of LLM slop with no real value that is being done in rust for hype reasons. Same deal with Lean coming in 6th.
Yep, it means you are actually learning the language and using its features.
Someone telling an LLM "rewrite this codebase in rust make no mistakes" has no idea what "rust" is or how the borrow checker works beyond the fact that other people use it
Perhaps not, but large codebases from established projects (both open source and proprietary) are also getting rewritten all over the place. So I suspect this represents actual industry adoption anyway.
It's not necessarily an issue per se but I do think it makes the stats look way more inflated than what they stand to represent (how much people code in each language)
The stats are just, what are things being coded in, and rust is it. Lean is may be temporary due to all the math hype right now, but I don't think rust has a hype cycle, it is merely growing drastically in popularity because the end result is great.
This graph is actually shocking. Apart from seeing my java nemesis dying off, going to the source of the graph, by some measures javascript and typescript are largely just swapping places. They average about 16% a piece mostly static, individually a little less than the python total. Rust is already at like 9%? If that continues for any length of time, rust will be one of the biggest languages in a couple months.
Obviously this is only github, I'm sure there's a bigger story to be told, but that's still really interesting.
Yes. Every real person writing 'toy' projects is much more valuable to Rust and society as a whole than any AI slop rewrite of something that already exists. You become a better rust programmer and better programmer overall from writing terminal connect 4. AI learns nothing from excreting yet another pointless gui app, and as the slop concentration on the internet increases the slop will only get sloppier
Not for hype reasons, because Rust is really good for vibe coding due to the restrictive compiler. LLMs perform better with clearly defined boundaries and goals, and the Rust compiler provides those better than most other languages.
Go scan r/rust and just look at the number of posts starting with 'I built X'. Almost all of those will have 0 upvotes as obvious AI slop, but may have 10k+ lines of code and hundreds of commits/PRs done very recently, which is exactly what these statistics are measuring
For what it's worth, I don't use AI at all, but I've just not been doing frequent commits in my library that I haven't pushed to crates.io yet, even though I'm working on the library nearly every day.
I'll admit that I should be using git a lot more tightly, especially since commits are free
Ok.. But in order for your statement to be true, you'd have to determine precisely that these commits are in fact AI generated and that they are factually skewing the numbers presented above. You might be right. I have no idea. But you are far from proving it.
Not shitting on rust, it is an excellent language, but everyone and their grandma is currently vibe coding in rust it seems. I do think that this isnât organic adoption but rather an effect of widespread agentic coding.
Looks to me like without the inorganic growth, it would have come in 7th (behind only TypeScript, Python, JavaScript, Go, Java, and HTML). That is very impressive indeed.
Makes sense. its fast, it has a fucking pedantic compiler that screams at you if you cut corners. Perfect for llms that can just deal with these things.
It seems to be one of the best language for agentic coding.
Quite the opposite. It's awful for LLMs, the only thing why it is good for agentic coding is harness. And harness is determenistic code around LLM. But even with harness rust code coming from agents is still bad either in terms of performance or in terms of future maintance.
Do you know how logic works? Something may be bad, yet still not the best possible option available.
That's agentic coding with Rust: it is awful, yet it's still can be better (or not, I'm not familiar with all of the programming language) than agentic coding with most other languages.
Get it now, or you still can't see I've never said there is better option for agentic coding? Or may be you can point where I say than <language_name> is perfect for LLMs unlike Rust? Or did I say that Rust is not one of the best or even one of the worst language for agentic coding?
So watch your tongue before brazenly asking nonsene, schizo. Just the mere fact, that you can't understand the absolutely simplest possible logical assertion don't make me give a damn that you with zero proof decided I did say agentic coding with Rust is a worse solution compared to agentic coding with other languages.
Agentic coding is generally the worst option, no matter the language, but you will discover it lately, victim of "AI" psychosis.
Go getta read a copule of book about FOL right after asking your rented LLM how to answer me.
I mean...yea its like the perfect language to vibecode. Extremely strict compiler that acts as a deterministic guardrail is godsent for the unpredictable word guesser.
I mean that's still a signal. Rust is a good fit for LLMs and this is going to play a lot in its favor, not just for vibe-coded projects, but for real production purposes as well. At least that's what I see in this trend.
Yeah, languages like C and to a lesser extent even managed languages like JS or Python are worse fits for LLMs because they let through code that's syntactically correct but will fall over at runtime, either throwing an exception or just corrupting memory in C's case
Rust is strongly statically typed and memory safe.
This means the compiler has a lot of guardrails against bad code, whereas other languages like javascript and C pretty much let you do anything no matter how stupid.
Rust is a great language for agentic coding because of the compiler being very strict and informative. The agents can reason about failure modes and how to fix them much easier than say typescript.
They donât though? You can grab the largest open weight model and see what it would cost to run. Open weight inference providers are doing 50%+ gross margin. I would not be surprised if at the big lab scale, gross margin on inference is 80% or more.
That's not how it works with frontier labs. They need to recover the money they spent training the models, and they cannot stop training models else they get obsolete. Their API prices have been slashed to compete with the chinese models that cost a tenth or even less already, and their subscriptions (like the ones being used to decompile GTAVI) will give you multiple times the amount in tokens, the more expensive ones usually used by power users. All of this is even more debts on their shoulder.
Open-weight inference providers are just selling compute. They dgaf.
That's not how subscriptions work. You're assuming that all users max out their usage (or at least exceed the nominal cost in token usage). The average is likely well below that, as it is with basically anything like that. It's the gym membership model.
Why would power user with subscriptions costing upwards of 200 dollars not maxing out their usages? lol.
I myself am on a 20 dollars subscription and maxing it constantly. If they gave me the 200 dollars from work, I'd let it reap.
Even at my current client, they're capping on the lower end the tokens because people just spend too much. All my colleagues are experimenting with local models and OpenCode or Pi. It is a power tool and power tools will get used as much as possible, even when not writing the code.
And companies are going to keep subsidizing them. It's much more useful for them than just money.
But even then, if they stop those services, I'm ready to learn. Those who are not won't have a choice anyways. I'm happy for the AI coding age either way because I never would have touched Rust otherwise.
Besides the fact that these plugins are fairly new, I also believe that most of these programs will never touch an IDE ever. It will be generated by LLMs, it (mostly) accomplishes a specific task, but I doubt most people will ever review their Lean proofs.
But for most cases, I'd say it's hardly matters if you use Rust/Go/Python/whatever; the prompts are extremely similar, and I'm curious if programming languages will matter at all, or if LLMs will directly create LLVM instructions, and I'm not sure if that's a good or bad thing, though I doubt it will be that much different from generating Rust (or similar) code.
i believe high level programming languages are better for LLMs for the same reason as for humans. i don't think it's beneficial for LLMs to generate LLVM instructions or any other IR or machine code directly.
it would have to reason about whether the code is provably correct and does what it wants to do, and create abstractions over them, which compilers already do. the only possible benefit of direct machine code is speed, but again i would advise against LLMs doing that for the same reasons as humans; optimize the source code first unless it's literally real time stock trading.
most beneficial to LLMs are probably strict languages like rust or possibly even ada or such. the main benefit is that the language itself prevents lots of little antipatterns. the compiler and clippy's warnings guide it away from certain ideas, instead of just accepting them.
maybe the (perception of) rust's learning curve also created a culture that gatekept less experienced developers away from making subpar training data as well. but i don't know if that's actually true.
i believe high level programming languages are better for LLMs for the same reason as for humans. i don't think it's beneficial for LLMs to generate LLVM instructions or any other IR or machine code directly
Yes, even if humans don't read LLM output, the LLMs themselves do. They can read IR/asm/etc, but they're better at reading higher-level code, partly because that's what they're trained on, but mainly because it retains a lot more information. In theory they could use some yet-unspecified LLM-optimized language, but it's unclear how much there is to win (and quite clear what there is to lose).
As someone that tried your plugin, it's light years behind Rust Rover. It didn't work smothly, dependends on some other plugin that can't find the RA, and when it does it tries calling /opt/homebrew/../rust-analyzer even if I'm on windows.
OOB it doesn't do much more than highlighting. Not even Ctrl+Click worked.
Even if everyone jumped on Rust bandwagon for hand coding Rust exclusively in IntelliJ IDEA you'd probably not see much uptick.
Rust Rover isn't that great either, it's debug often lags behind VS Code, but at least it mostly works.
Honestly because of rust analyzer and LSP we can turn almost any existing ide into very functional rust development environments. Rover of course is unique in they do their own thing but that comes with the overhead and clunk of jetbrains. I personally use neovim and if I must absolutely use a graphical IDE VC or Zed
Sure, but you need to adapt to JetBrains being a Java Project and launching RA, then connecting to it. Which this plugin does not. Especially not for $30 a year.
And rust-analyzer works nicely in VS Code, just not in IDEA. Although that might be just polish. E.g. rust-glancer which is a LSP works pretty badly in VS Code. It's for example missing option to launch tests from the code.
I think you ran into some issue which caused the plugin to work well. Ctrl+click, refactoring support, debugging, framework support, etc should all be working.
As a side note: the announcement of today regarding JetBrains focus on Air doens't give me a huge amount of confidence that something like Rust Rover (or even IntelliJ) will get a lot of attention in the upcoming months. I'll keep on working on improving the Rust support, I do think there's a place for having some insights into code, but let's see.
My version is still quite new and developed by 1 person, so keep that in mind, but some advantages are: better refactoring, better borrow checker out of the box, and framework integration with most popular Rust libraries, like gpui, orms, and rest frameworks. Also more actions to fix issues related to borrow checking out of the box.Â
If you want to try it, keen to hear feedback, and even willing to support complaining Windows users :)Â
You could have told me and I would have fixed it. But now you mentioned it here, I went in and added Windows support in the ci/cd, and I found an issue, so that should hopefully work better nowÂ
Whoâs using JetBrains for Lean? Iâd guess most human users of Lean donât regularly write other languages and would use the free and officially supported VS Code extension.
My apologies, you're right! Every time I mention that 95% of people use LLMs to write code I get downvoted, so I can't really say this in public, so let's just assume there's still people writing code by hand.
How did you come up with this list? I normally choose a language where it needs to run. Shell for Unix systems, c for embedded systems, Java or similar for the JVM. Not everything will run everywhere and not everything is greenfield.
There is no point in using Java for new projects, except if there is strong expertise in the team in JVM-related areas. A lot of things that were optimized for Humans in the past don't make any sense moving forward (Like ORMs ). It is now time to think about what is needed for the agents
If you are writing rust in lieu of shell because agents then you are probably going to have a bad time. Not every tool is a hammer. Shell has a place just as does rust.
Shell is even treated specially by the kernel. Has different security rules and etc.
And on Java some libraries are just Java only. Java would not be my first choice for a new project, but sometimes it makes sense.
One of the use cases for Go's creation was to be an output language for code generation. That's why it has funny quirks like unused variables and unnecessary brackets being a compiler error. If your program is the output of another program, code like that shows a bug in the original program.
Go is also nice that it is memory safe and garbage collected. Avoiding a whole class of headaches.
It isn't the perfect language for LLM code generation but its origin helps out.
As per Rust, one of the big double-edged swords of Rust is how much semantics you can encode in the type system. For LLM code generation this is almost strictly a benefit.
As per TS????? It compiles down to JavaScript and everything and their dog can run JavaScript without much fanfare. Website, mobile app, desktop app, simple (inefficient) backend service, etcetera. If somehow TypeScript survives when it is a worse version of JavaScript.......the world has a sense of humour.
I would say it's âenough memory-safe for LLMâ.
The big problem with memory unsafety is that bugs are unpredictable. Triggering that in Go is possible, but non-trivial, while in C or C++ it's a chronic issue.
The fact that Go is not, strictly speaking, memory safe is hilarious, but is not showstopper, in practice.
I didn't quite get the point. In the example from this article, we have concurrent r/w access to a global shared variable (singleton) that leads to a failure. That sample demonstrates that concurrent access will lead to a failure. Ok. What is novel there? This is a classical concurrency issue presented in most programming languages.
I get that in safe Rust such cases will be prevented by the compiler/linter -- that's fine; Rust is just special in this case -- that's fine.
Groovy, Kotlin, and Scala all compile to Java bytecode, as they are languages that run in the JVM. In other words: you can choose them instead of Java for running in the JVM.
Edit: as stated below, even Rust can run in the JVM!
I've actually been keeping a close eye on the rustc_codegen_jvm project, and it's been going fairly well. Most stuff is fully functional, and as long as you don't need something like std::process, pretty much all of std is available.
I think the same way. For any new project, those are the only three languages as a baseline. Maybe Python for some DS/ML stuff...
Anyway, these days, the high-level languages act as "assembly" for our agents and the choice is more about which "assembly language" you need + ecosystem around it.
248
u/humandictionary 1d ago edited 23h ago
These results will be heavily skewed by the huge amounts of LLM slop with no real value that is being done in rust for hype reasons. Same deal with Lean coming in 6th.
135
u/MeisterBounty 1d ago •
Not shitting on rust, it is an excellent language, but everyone and their grandma is currently vibe coding in rust it seems. I do think that this isnât organic adoption but rather an effect of widespread agentic coding.
21
u/bodiam 23h ago
As the creator of both Rust Pro (https://plugins.jetbrains.com/plugin/35722-rust-pro), and Lean Pro (https://plugins.jetbrains.com/plugin/36350-lean-pro) plugins for JetBrains, I can hardly see these trends.
Besides the fact that these plugins are fairly new, I also believe that most of these programs will never touch an IDE ever. It will be generated by LLMs, it (mostly) accomplishes a specific task, but I doubt most people will ever review their Lean proofs.
But for most cases, I'd say it's hardly matters if you use Rust/Go/Python/whatever; the prompts are extremely similar, and I'm curious if programming languages will matter at all, or if LLMs will directly create LLVM instructions, and I'm not sure if that's a good or bad thing, though I doubt it will be that much different from generating Rust (or similar) code.
7
u/Embarrassed_Cap_9149 20h ago
all thanks to AI
6
u/masonhalla 23h ago
who made javascript orange/pink and rust yellow, haha. it's breaking my brain.
7
u/Fancyness 1d ago
And why? Because itâs just goodÂ
2
u/arjuna93 5h ago
Thatâs a lot of vibe-coded Lean out of the blue
4
u/promethe42 23h ago
LLMs don't get tired of reading that lovely compiler output.Â
1
u/AceJohnny 17h ago
I fear a backlash against Rust because of all the AI coding hype. âOh itâs written in Rust? Must be AI slopâ
-2
u/Trender07 1d ago
ye honestly nowadays theres no point on using anything else besides ts, rust or go. maybe in next years some language for LLMs only
-1
u/Sea-Bench-7487 17h ago
Damn people are excited about an ai lang đđ
-5
u/TashLai 1d ago
Yeah. Who cares at this point.