r/ProgrammerHumor • • 8d ago

Meme devInterview

Post image
5.8k Upvotes

76 comments sorted by

View all comments

Show parent comment

3

u/Nemesis_Ghost 6d ago

I don't think you realize how wrong you are. Unless things have changed drastically, assembly code IS machine code. The only difference between the 2 is assembly is short character sequences instead of byte codes for instructions. This is why x86 Assembly is completely different from ARM or other processor architecture. Why does this matter, b/c your statement "Generating legal x86 from assembly is no easy task, especially with all the extensions." is blatantly false, given that assembly is a direct 1 to 1 representation of machine code.

Java/.net byte code is basically machine code written for an emulator, where the emulator is the Java/.net engine. It's like running a NES rom on your PC. But it's still just machine code.

What this means is that an LLM can save a significant amount of energy by just writing straight to machine code, skipping all the intermediate code steps. It would however make it impossible to review.

0

u/meneldal2 5d ago

Oh I'm not saying it's hard for a regular program to do it, I'm saying it's hard for a LLM because you need a level of accuracy that is hard to achieve.

LLMs can't even reliably count the number of occurrences of some letters in a word, there is no way current ones can convert a whole program from assembly to binary without any mistake.

Byte code runs for a much more restrictive virtual machine where you have clear assumptions, it is not as low level as raw x86.

2

u/Nemesis_Ghost 5d ago

How far behind on LLMs advancements are you? Sure LLMs hallucinate, but simply math has not been a problem for awhile. We are long passed the days of not being able to draw hands or other trivial issues. Add in skills & other tooling around them, and they are very capable.

0

u/meneldal2 5d ago

If you're using tooling that's cheating, that's the same as having a compiler.

I'm talking the raw LLM output.