▲ | PhantomHour 5 days ago | ||||||||||||||||||||||
> Just beware the “real programmers hand-write assembly” fallacy. It was said that compilers would produce a generation of programmers unable to understand the workings of their programs. In some sense, this is true! But, almost nobody thinks it really matters for the actual project of building things. One of the other replies alludes to it, but I want to say it explicitly: The key difference is that you can generally drill down to assembly, there is infinitely precise control to be had. It'd be a giant pain in the ass, and not particularly fast, but if you want to invoke some assembly code in your Java, you can just do that. You want to see the JIT compiler's assembly? You can just do that. JIT Compiler acting up? Disable it entirely if you wish for more predictable & understandable execution of the code. And while people used to higher level languages don't know the finer details of assembly or even C's memory management, they can incrementally learn. Assembly programming is hard, but it is still programming and the foundations you learn from other programming do help you there. Yet AI is corrosive to those foundations. | |||||||||||||||||||||||
▲ | theptip 5 days ago | parent | next [-] | ||||||||||||||||||||||
I don't follow; you can read the code that your LLM produces as well. It's way easier to drill down in this way than the bytecode/assembly vs. high-level language divide. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | Cthulhu_ 3 days ago | parent | prev [-] | ||||||||||||||||||||||
The other one is that code to assembly is exact and repeatable. Code will (well, should, lmao) behave the same way, every time. A prompt to generate code won't. Some prompts / AI agents will write all the validations and security concerns when prompted to write an API endpoint (or whatever). Others may not, because you didn't specify it. But if someone who doesn't actually know about security just trusts that the AI will just do it for you - like how a developer using framework might - you'll run into issues fast. |