|
|
|
|
|
by diath
50 days ago
|
|
Absolutely. This is just some delusions of a vibe coder at best. Not with just current generation of AI tools but essentially never. The conversion from C, C++, Rust or whatever, through post-processing (macros etc), through IR generation, through compile time optimizations, through link time optimizations, to the generated machine code is a one way street for low level languages. You can get a pretty close higher level approximation that matches the flow/logic/structure - but the code will never be anywhere near close to the original source code. I could write the same C++ program in 3 different ways and get identical assembly, how do you go back to the exact source? The answer is that you don't. Here's the same simple program, written in 3 different ways, producing identical binary compatible code: https://godbolt.org/z/qWrc8fEnn How does the AI know whether it should produce back the snippet #1, #2 or #3? It does not. It cannot. |
|
Barring obvious edge cases that could show up but don't usually, like intentional race conditions. Timing is the one area where things get iffy.