Recent explosion in Rust Rewrites and Reimplementations with LLMs. Thoughts?

But the problem, that for larger projects often after a few decades no one really understands the structure and details of a project is not uncommon for open source projects -- and I heard that it even occurs for commercial closed source projects. In the last 30 years I saw at least a dozen of projects, once started by a smart and motivated individual, that finally stalled or died, because new developers were unable to really understand it, and so could at least apply tiny patches. So, AI might actually help to structure and develop large projects over a longer period of time, when the project is planned carefully from the beginning and when a part of the AI works as a project manager instead of a simple agent which outputs only a bunch of unmanageable code.

Eh, if just writing docs was enough to understand large projects it wouldn't be that big of a problem, and agents don't really have much better options, everything is just another markdown file eventually. They rather unsurprisingly show a pretty similar type of falloff in ability to make functional changes as humans as the code starts to outgrow their context window - but it's more like they're always new to the codebase rather than becoming familiar with their little patch like with human developers.

But I'm generally pretty bearish on AI ability claims so this is really just a "I'll believe it when I see it" than actually a strong argument it can't happen.

Any sufficiently large quantitative difference is indistinguishable from a qualitative difference.

I suppose that when the quantity is sufficiently altered to break the dynamics of the system as it used to exist, one could speak of a qualitative difference. When that happens, the necessary responses are likely to change together with the occurrence of the qualitative difference.

In this case, would you say that the responses to this altered quantity (e.g. a higher submission rate of low quality crates) would be different than what I outlined?

Earlier, we had high level languages being easier to write and they would save tons of time while serving the purpose of being more efficient and higher compute power and being harder to run, "just a bit"
but now with the power of ai, I think it's pretty good and promising for Rust community to see it being more adapted, and in dimension of world's hardware allocation, the fact we can use less CPU and Ram and have the same software, and faster ones, I'm replacing many of my python scripts with Rust and the Ai handles all the compiler errors and issues and then i have a memory safe fast and lightweight program to meet all my needs, I love how it's going and that might be sad for some but everyone is less interested in the tech itself and they want the better output!
so this is the big change and i think Rust will have a great future in it!

the understanding will eventually become the .md files that ai has written, if we get some 10M context window in future, do we really need to understand all the code or we just need to get what's there overall?

We need to be able to understand, even if we don't do this often. Just like we (not all of us, but some) need to be able to understand assembly, even if in a vast majority of the times the high-level language is enough.

can you break it down to me on why that's the case and why the vast majority should understand?

I didn't say that vast majority should understand. On the contrary, in vast majority of the times this would not be necessary (if - and that's a bit "if" - everything goes the way you describe). But in the rest of the cases some people will need to understand everything, because no system is infallible, and when it fails, it might be necessary to dig into the source.

I would also argue this is based on the premise that Rust is actually harder to write than Python, which is a surprisingly hard case to make if you're correcting for familiarity and assuming it needs to actually, you know, work correctly.

Rust has a hard learning curve in comparison to many other languages, true, but in many cases this is only because it turns what in other languages would be a silent and subtle bug into a clear compiler error.

Once you get over that hump, which with support isn't even that long, you can create very complex programs at least as easily as in other languages, even disregarding performance.

I also take issue with:

this apparently manages to both claim that nobody likes the programming itself and that AI produces better output than humans?? Both are clearly false.

  1. The code training sets of mainstream large models tend to favor high-star open-source projects, official documentation, and highly upvoted answers. This code is itself the crystallization of human intelligence and represents best practices, not "mediocrity."

  2. "Average" ≠ "Mediocrity"

  3. LLM performance depends heavily on context and guidance. If you only input "write a sort," it will of course give you the most basic bubble sort or quicksort. But if you input: "Please write, in Rust, a deduplication-and-sorting algorithm suitable for a memory-constrained environment handling tens of millions of records, with concurrency taken into account," it will draw on higher-order algorithmic patterns from its training data (such as bitmaps, divide-and-conquer, etc.).

  4. An LLM is not merely "copy-pasting" the highest-probability code. When the model is large enough, it exhibits logical reasoning ability. It can transfer architectural patterns from domain A to domain B, and can even perform correct logical derivation based on the latest API documentation (not in the training set). The latest reasoning models can even, through self-play, produce efficient algorithms that no human has ever written.

  5. Human programmers likewise "learn from existing codebases."

Oh, this might be a bit off-topic, but this comment actually makes me feel quite sad. I once tried to use Claude to explore the 196 problem, and it flat-out refused me. I've always firmly believed that I'm not stupid.

Ha, sorry about that! IIRC that was in the context of people testing if you could get these models to agree to clearly false premises or statements because they're trying to please you, rather than help you; but it's been a while so I've forgotten all the details.

That doesn't mean you can assume that it's correct whenever it disagrees with you, and it certainly shouldn't mean that if it disagrees with you that you're not smart! At least I hope so, I disagree with it all the time :face_savoring_food: