Feb-17-2026, 08:23 AM
I was watching this video, "How the C++ Compiler Works"...
The author showed that how this...
This makes me wander about a standard practice that I've picked up about readability in Python code...
I'm wondering how much of this would become redundant after it has been compiled into bytecode. This also makes me wonder what Python's bytecode would look like after translating it to ASM.
How redundant can your code become in python? Does anyone have any input on this?
The author showed that how this...
int Multiply(int a, int b)
{
int result = a * b;
return result;
}Became redundant in the ASM output...mov eax, DWORD PTR a$[rsp] imul eax, DWORD PTR b$[rsp] mov DWORD PTR result$[rsp], eax mov eax, DWORD PTR result$[rsp]
int multiply(const int a, const int b) {
return a * b;
}mov eax, DWORD PTR a$[rsp] imul eax, DWORD PTR b$[rsp]
This makes me wander about a standard practice that I've picked up about readability in Python code...
completed_width = int((current_items * width) / total_items)
remaining_width = width - completed_width
progress = f"[white]{'─' * completed_width}[/][gray]{'─' * remaining_width}[/]"
console.update(progress)I can somewhat understand this. This is like following the English language as if you were writing a book, over using slang written in English, but...I'm wondering how much of this would become redundant after it has been compiled into bytecode. This also makes me wonder what Python's bytecode would look like after translating it to ASM.
How redundant can your code become in python? Does anyone have any input on this?
