3 ms·
This is a deeply incurious take. Yesterday I wrote a Python script, used dis.dis(code) to output its bytecode, and gave the bytecode to GPT-4. From the byteco
by cjbprime 3y ago
This is a deeply incurious take.
Yesterday I wrote a Python script, used dis.dis(code) to output its bytecode, and gave the bytecode to GPT-4. From the bytecode, it correctly decompiled the exact script I'd written (python bytecode includes variable names, so this was possible), explained what the code does, and explained what the code would run output if it was executed, all correctly.
It doesn't have access to a Python interpreter. It simulated one, both to decompile the bytecode and to predict its output. That's reasoning.