DigitalPaperTrail
link
fedilink
6
edit-2
1Y

it’s gatekeeping all the way down

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)

Malgas
link
fedilink
English
11Y

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.

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

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

Blame the Brave CEO

From energon cubes

How did they know the first ruler was correct if they didn’t have a ruler to verify it?

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

Or bytecode that the runtime will interpret

blood, sweat, spit and sometimes a bunch of formal grammar

It’s programming languages all the way down.

@minauteur@infosec.pub
link
fedilink
English
701Y

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

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

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

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

DarkenLM
link
fedilink
21Y

With themselves!

@Luvon@beehaw.org
link
fedilink
English
41Y

Bootstraps

Dandroid
link
fedilink
111Y

I mean, it’s not like this is some thought-provoking concept that no one has thought of before. For my SE degree I took 3 classes that focused heavily on the subject. We even wrote an interpreter for our very own programming language in one of them. And that was just part of the standard curriculum.

datendefekt
link
fedilink
171Y

You might want to put down that bong.

That are almost always built by lower level programing languages

https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-building-from-source-all-the-way-down/
Is a very interesting read on that topic. It’s about how to get to “full” compilers without using already existing “full” compilers.

Create a 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.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.47K Posts
  • 32.2K Comments
  • Modlog