Binary
ELI5 — The Vibe Check
A binary is a file your computer can run directly — it has already been translated from human-readable code into the 1s and 0s the CPU speaks. When you 'compile' code, you turn it into a binary. That is why compiled programs are fast: the computer does not need to translate anything.
Real Talk
A binary (or executable) is a compiled program stored in machine code — the native instruction set of the CPU. Unlike source code, binaries are not human-readable. Compiled languages like C, C++, Go, and Rust produce binaries. The term also refers to the binary number system (base-2) used in all digital computing.
Show Me The Code
# Compile a C program into a binary:
gcc main.c -o my_program
# Run the binary:
./my_program
# Check if a file is a binary:
file my_program
# my_program: Mach-O 64-bit executable x86_64
When You'll Hear This
"Ship the binary, not the source code." / "The build step creates a binary that runs on the server."
Related Terms
Build
A build is the process of turning your development code into something a real computer or browser can run efficiently.
Compiler
A compiler is like a translator that reads your entire code book, converts it all into a language the CPU understands, and hands you the finished translate...
Interpreter
An interpreter reads your code and runs it line by line in real time, like a live translator at a conference.
Runtime
Runtime is the environment where your code actually runs.