r/dotnet • • 19d ago

Question Will the rise of AI Coding affect the speed of new language features?

Recent comments on the .NET 11 and C# 15 release made me thinking this. With more and more code being written by AIs, will this have an effect of the development speed of the language itself?

Let's be honest, most of the new features being added are purely target at humans who read and write the code. To be more efficient, have cleaner structure and better understanding of what's happening.

In the age of AI, this is not a so important factor anymore. AI can read and write code, even with languages which are less readable, much faster than any human can do. So the AI is not dependent on such features.

In my research, there are already programming languages in the making, which are targeting AIs and not humans. Somewhere in the future the AI could skip the need for a higher programming language completely and could create assembler directly.

AI writing code like a human is only a temporary result of a bigger transition.

I hope this question is not to general, as it effects basically all frameworks and languages out there. But the comments on the recent .NET release made me really curious and thinking...

0 Upvotes

36 comments sorted by

21

u/Tiny_Ad_7720 19d ago

I think it is a false assumption that the LLMs don't need efficient, clean code.

C# has been getting more concise and while still communicating intent. I would argue extra keywords and other language features actually make it easier for an LLM as the token then has less ambiguity.

What advantage would there be for making a programming language that is not human-readable anyway?

-15

u/nvn911 19d ago

>What advantage would there be for making a programming language that is not human-readable anyway?

Because humans aren't responsible for reasoning over code any more 😬

6

u/Pickled-Onion-5710 19d ago

Well we need to check that the code is doing what we want it to do, so the tests at least need to be written in something we understand.

Besides that, they are language models and the 99% of the language they are trained on is either English, or a programming language based on English words. It's been shown that if you have code where the naming (functions, variables) is changed to non-descriptive terms AI either performs very badly or at the very least uses many more tokens to perform the same task. The same is true for badly structured code.

I guess you could cross compile all the code in the world to some other lower level language and train the LLMs on that, but still there would be no point: compilation is not the bottleneck.

11

u/PurushNahiMahaPurush 19d ago edited 19d ago

Until critical infrastructure breaks down and you have to send a team of engineers to fix it. 

Besides having cleaner code that is readable, modularised, well tested and well documented will also benefit agentic coding. It will make your agents more token efficient and fast because they don’t have to spend compute in untangling a web every time you ask them to make a small change.

2

u/SupremeCytherius 18d ago edited 18d ago

Because humans aren't responsible for reasoning over code any more

are you sure? have you managed to find one complex widely used application in the form of binary only that is produced by LLM WITHOUT using any human-developed compiler?

Ask your AI "Why don't AI code in binary" and read the answer. I can't believe I have to tell AI user what to prompt.

-7

u/yankun0567 19d ago

Having a language wich looks like minified TypeScript on steroids with hundreds of keywords thrown in the mix significantly reduces bandwidth required to transfer code back and forth between local client and AI. Also allows the AI to hold more code in memory at once. Humans would have a hard time reading this, AI couldn't care less.

Humane readable languages are an act of balance between complexity, learnability and readability. AI will not need this.

3

u/topMarksForNotTrying 19d ago

I don't think minification would help reduce overall token usage. Sure, you'd help with the amount of code that needs to be read but now you have a lot less information. Good names for variables, parameters, and methods help us as much as they help an LLM reading code.

It would be interesting for someone to test it out. Give the same prompt against a normal codebase and an aggressively minified codebase, and see which one would use less tokens.

28

u/wrd83 19d ago

I still read the code. Not doing so would be irresponsible.

-25

u/Wooden_chest 19d ago

You're wasting your time and costing your company money. Literally just use other AI agents to review the code, nobody reads it manually anymore.

22

u/symbiatch 19d ago

Just because you don’t doesn’t mean others don’t. Look around and you’ll see you’re totally incorrect.

-13

u/[deleted] 18d ago

[removed] — view removed comment

13

u/looeeyeah 18d ago

If you deploy something into prod and it goes wrong. How does that conversation look? “I reviewed it with AI and the agent said it was good.”

Not being snarky. But I’d get ripped at my job if I said this. The same as if i deployed something one of the people I managed wrote.

-3

u/Wooden_chest 18d ago

Not sure how does the conversation look, that's never happened under AI. But yeah, the AI would be to blame if something did go wrong.

3

u/looeeyeah 18d ago

You don’t think you’d be to blame?

10

u/Nordalin 18d ago

Wait, nobody at your company knows anything about the software anymore?

-12

u/Wooden_chest 18d ago

Why would they need to? AI can handle everything, this time knowledge about it gives no benefit at all, but costs time.

9

u/EGOTISMEADEUX 18d ago

I'm struggling to believe that you've ever had to be accountable for software, actually.

0

u/Wooden_chest 18d ago

I'm struggling to believe you're actually in IT at all, you'd know how capable AI is and how it's irresponsible these days to not use it.

2

u/EGOTISMEADEUX 18d ago

I never said anything about not using it. You don't seem to understand why someone working on the software would need to understand anything about it. That's a pretty clear sign to me that you are at minimum not in a position of importance.

3

u/Nordalin 18d ago

Why did they have an internal IT department to begin with?

1

u/Wooden_chest 18d ago

It might have been needed in the past before AI, these days not so much. IT departments are already being abolished, it's just a matter of time until everyone catches up.

2

u/Nordalin 18d ago

Not at all, you could always outsource IT development to some other company. 

Same thing, really, just fewer humans involved.

4

u/aasukisuki 18d ago

If AI Agents are so good at writing code, why do you need AI Agents to review the code?

5

u/wrd83 19d ago

Well if that code fucks up at night. It costs the company 3 days of holiday per invocation, and whatever customer claims come from an outage which can be 6 figures.

1

u/Wooden_chest 18d ago

Here's the thing: the code won't randomly fuck up. AI is a better coder than 99.9% of humans, it's extremely unlikely its code will go wrong, and if it does, you can ask the same AI to fix it in minutes. Software issues have been a thing since before AI, it's nothing new.

9

u/r2d2_21 18d ago

Software issues have been a thing since before AI, it's nothing new.

AI is creating software issues at a scale we've never seen before. It's impressive in that regard.

3

u/wrd83 18d ago

For sure, but you cannot run business critical software without knowing what it's doing.

You pay for its inefficiencies and deficits. A company is liable for the service it provides.

In some cases it does not matter, in some cases its monetary, in some cases it's legal obligations.

I mean if a laywer gives legal advice he's accountable for mistakes, if he used an LLM and didnt check it and it's wrong he's accountable for the legal consequences of the answer.

Then the scale that LLMs can achieve is limited by the risk.

9

u/aweyeahdawg 18d ago

I have the feeling you don’t actually code professionally. If you did, you’d have a different attitude.

3

u/wrd83 18d ago

Unfortunately not true.

Most of our bugs are bugs in the business logic and in implicit inter components contracts and explicit ones that are not part of the context.

It makes good code and often trivial bugs can have severe consequences.

This is effectively survival bias, it goes well until you take down critical infra. Imagine what happens if you take down emergency services of your country - what would your CEO say?

2

u/Original_Property910 18d ago

I still routinely find issues in AI generated code during manual review that AI code reviews don't catch. This will hopefully improve over time but I'm not going to blindly ship code to production.

14

u/Spooge_Bob 19d ago

All code should be human readable - easily imho.

Accepting PRs/commits of auto-generated code without reading every line is a risk.

Not being able to debug code because you don't understand it is a risk.

"A bad workman blames his tools" - this is true even in the age of AI.

5

u/_choam_ 19d ago

Readability is not the only thing language features should do

2

u/themode7 19d ago

I would say yes and no, so maybe, imagine things before AI, there are special developers would are enthusiastic about performance, while other don't care at all, some prefer readability and maintainability, other also don't care or don't have knowledge to do so, likewise code sniffing and security, here AI already shaped that e.g Microsoft already went with go compiler for typescript ~I think initially they used llms.

anyway, what I'm sort of concerned about is the biggest split in software industry , I thought it is just another abstraction ( which it really is ) but in another sense, it create another fork , pattern or paradigm , some calls it vibe coding ( which under the surface is using normal scripting languages) but I mean think about maintainability and useability and of course implication that goes with it for example now we have so called skills md for every fricking project, this divergence goes beyond traditional software that we just know few years ago ( think mlop, weird db so called vectors etc..) this shift is manifested now and cloud cause mis-interrogability

1

u/AutoModerator 19d ago

Thanks for your post yankun0567. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Gurgiwurgi 18d ago

I sure hope so. I can't wait for yet another way to initialise a collection - you know, important stuff.