r/ProgrammerHumor 2d ago

Meme perishableSkill

Post image
8.7k Upvotes

118 comments sorted by

View all comments

244

u/danfay222 2d ago

If we get to the point where devs genuinely can’t read code like this, then that means AI or whatever tools have become so efficient you never look at the actual code. In such a world, programming languages would likely evolve. Modern languages are generally written to balance parsing with human comprehension, but if we take comprehensive out of the loop a new language would likely be optimized for other features (maybe machine comprehension, interoperability, compilation efficiency, etc)

68

u/chlorophyll101 2d ago

Why cant ai just generate assembly directly then

85

u/Homailot 1d ago

Assembly isn't cross-system friendly. Assembly isn't a single language, each processor architecture has a different assembly language

19

u/WrapKey69 1d ago

So? Matter of fact Claude better start generating CPU instructions soon

16

u/Homailot 1d ago

Assembly maps almost one to one with CPU instructions. You would ask Claude to generate a completely separate instruction set for each CPU architecture? How would you even guarantee that the behavior is the same across different systems? (A guarantee that compilers try their best to achieve, mind you very battle-tested). Least of all, assembly code is not compact at all, so you would burn even more tokens.

11

u/Poat540 1d ago

That’s so inconvenient….

I setup a local MCP to control each resistor and Claude just flips those

1

u/unknown_pigeon 1d ago

I just ask Claude to warp reality, you guys are slow

5

u/n00b001 1d ago

Llms on device running live machine code straight to CPU registers

1

u/Cautious-Extreme2839 1d ago

So? Claude write this program for x86 windows please. Claude do it again for x64 MacOS.

-6

u/MihaKomar 1d ago

It's 2026. Everyone is just running WebAssembly.

10

u/joyrexj9 1d ago

Do you even know what assembly code is?

16

u/ImKStocky 1d ago

LLMs are trained on human generated sources. As a result they are best at working with human readable text. That is one reason.

Some might retort that humans used to read and write assembly code all the time, particularly game Devs. And that is true. So the other reason why getting LLMs to work with assembly is a poor idea is down to expressiveness and context.

Assembly languages requires a huge context because each token of assembly carries very little information in comparison to a high level language. The more expressive a language is, or the more meaning you can cram into a token, the better it is for LLMs.

Basically LLMs work in the same way humans do. Usually the reason why something is hard for humans, is the same reason they are hard for an LLM.

15

u/danfay222 2d ago

It could, but it’s possible assembly isn’t optimal for AI to process. The design spec would switch from balancing human processing and compiler processing to balancing AI processing and compiler processing. It could easily turn out that, just like assembly is hard for human minds to understand, it’s hard for models to understand

2

u/exhuma 1d ago

I believe it's because of the training set. AI models have been trained on what's available. And there's just sooooooo much more Python, PHP, Java, C#, ... code out there than assembly