minauteur,

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

Jumuta,

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

hperrin,

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

en.wikipedia.org/wiki/Plugboard#Early_computers

shiveyarbles,

From energon cubes

arisunz,
@arisunz@lemmy.blahaj.zone avatar

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

BautAufWasEuchAufbaut,
@BautAufWasEuchAufbaut@lemmy.blahaj.zone avatar

guix.gnu.org/…/the-full-source-bootstrap-building…
Is a very interesting read on that topic. It’s about how to get to “full” compilers without using already existing “full” compilers.

Flexaris,

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

olsonexi,

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)

SkyeStarfall,

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

hperrin,

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

SatyrSack,

Blame the Brave CEO

Malgas,

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.

DarkenLM,

With themselves!

ssboomman,

That are almost always built by lower level programing languages

datendefekt,
@datendefekt@lemmy.ml avatar

You might want to put down that bong.

Luvon,

Bootstraps

ch00f,

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

alokir,

Or bytecode that the runtime will interpret

The_Hideous_Orgalorg,

It’s programming languages all the way down.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programmerhumor@lemmy.ml
  • tacticalgear
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • ngwrru68w68
  • JUstTest
  • everett
  • tester
  • cubers
  • normalnudes
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines