79 points

This might qualify as humor if you don’t know much at all about programming.

permalink
report
reply
1 point

I used to wonder how the first computers were coded without computers in primary school

permalink
report
parent
reply
7 points

For anyone else who wonders: by manually wiring in the circuits and flipping switches.

https://en.wikipedia.org/wiki/Plugboard#Early_computers

permalink
report
parent
reply
62 points

first they had machine code
then they wrote the assembler in machine code
then they rewrote the assembler in assembly
and assembled it with the machine code assembler
then they wrote the C compiler in assembly
and assembled it with the assembly assembler
then they rewrote the C compiler in C
and compiled it with the assembly C compiler
then they had the C compiler
and everything else was written in C

(note: this is a massive oversimplification and ignores much of the history of programming languages, but it at least gets across the idea of how bootstrapping is done)

permalink
report
reply
10 points

And then we fucked it all up by writing the JavaScript interpreter.

permalink
report
parent
reply
1 point

Blame the Brave CEO

permalink
report
parent
reply
8 points

Indeed. And the machine code is created as part of the physical CPU design.

permalink
report
parent
reply
3 points

Also the first version of a new compiler (the one written in another language) is often skeletal, implementing only the features necessary to compile the full version (written in its own language), which is then immediately used to recompile itself.

permalink
report
parent
reply
27 points

It’s programming languages all the way down.

permalink
report
reply
20 points

Assembly. Each command literally translates to a binary number that the processor will interpret to perform certain functions.

permalink
report
reply
6 points

Or bytecode that the runtime will interpret

permalink
report
parent
reply
1 point

Or black magic that the gods will interpret

permalink
report
parent
reply
18 points

You might want to put down that bong.

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.9K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments