r/AskComputerScience • u/Nrb-neu2022 • Jul 01 '22
What is "bootstrapping"? Can anyone please explain what this term originally meant to describe? Why boots? Also, how come "booting" means turning on a computer? What do shoes have anything to do with describing a computer process? Where's the analogy / similarity? This doesn't make any sense!
Obviously, I've read the Wikipedia article on "Bootstrapping" but it didn't help much.
So apparently, the little hold on the back of the boots called a "bootstrap" is supposed to mean a self-starting process? How??? Why??? WTF??? This doesn't make any sense!
Also, what is "a self-starting process"? Without the user's involvement?
(I'm not a computer science major, but the term has already entered other fields as well, and it seems like it originated in computer science)
11
u/ghjm
MSCS, CS Pro (20+)
Jul 01 '22
•
The phrase "pulling yourself up by your own bootstraps" was a common idiom/joke from the late 19th to the mid 20th century. The idea is that you reach down, grab the straps of your own boots, and pull yourself off the ground. Obviously this won't actually work, so it's a joke about anyone trying to accomplish a self-defeating task, or a problem that requires its own solution before being solved. Later in the 20th century, this phrase was used sarcastically to refer to rich people's deluded tales of how they created all their wealth from nothing at all - which, then as now, was never actually true.
In the early days of digital computers, it was common to face the problem of having a box of punch cards (or paper tape, or what have you) containing a program that you wanted to run, including the program to read programs from the punch cards. If the program was already loaded, it could load itself - but it wasn't, so you had to toggle it in via front panel switches. This was a pain in the ass, which resulted in two things. First, people would come up with the smallest possible loader program, to minimize switch toggling. Second, people would wish there was a way for a program to load itself - pull itself up by its own bootstraps. As a result the minimal loader program became known as the "bootstrap" loader.
It doesn't matter that "pull yourself up by your own bootstraps" is less commonly used now (though I would guess that most English speakers still know it). It was universally known then, when the early computers were being developed. I'm pretty sure there is a Bugs Bunny cartoon referencing it, and that was the ne pas ultra of the American pop culture mainstream in 1950.
The meaning of actually pulling on straps attached to boots has almost completely fallen away in the computing context. Nobody younger than approximately me would ever mention "bootstrapping" a computer - it's "booting" a computer, and it just means starting it up. When someone talks about a "boot loader," they are straightforwardly referring to the code that runs at start-up, without even the slightest thought of footwear.
1
u/Nrb-neu2022 Jul 01 '22
Thank you so mch for your explanation that is actually informative!
So technically speaking, a bootstrap is a code/program that is intended to load another (main?) code/program, which for some reason couldn't load on its own?
3
u/ghjm MSCS, CS Pro (20+) Jul 01 '22
which for some reason couldn't load on its own
Ah, so it's not obvious to you why it can't load on its own.
Suppose you have a digital computer, and a box of punched cards sitting next to it containing a program. What has to happen in order for that program to run? Well, obviously someone has to place them into the reader. And then the computer has to send a "start" command to the reader, which will begin ingesting cards and sending the data from each card on a serial port. The computer has to read the data from the cards into memory. At some point the card reader signals that this is the end of the deck, and the computer has to jump to the beginning of the memory it just read the program into. Then the program is running.
This whole thing - sending the start command, reading the data into memory, jumping to the loaded program - is a program. What if it is this program that you have on the punched cards? How does it load itself "on its own"?
Do you see the similarity to pulling yourself up by your own bootstraps now?
1
u/Nrb-neu2022 Jul 02 '22
Thank you so much for your easy explanation!
Ah, so it's not obvious to you why it can't load on its own.
Yes, I've never thought about it before lol :)
4
u/cincuentaanos Jul 01 '22
Yes.
Let me also try my hand at explaining this:
The boot sequence begins when the computer is powered on, the internal clock starts ticking and it makes the CPU initialise itself and start looking for instructions. It finds those instructions in some chip on the circuit board, in other words these instructions are like a program that is "baked into" the computer hardware. You can't fit a whole operating system in there, so this will be just a simple program. It will typically either let the user start a configuration program to change some settings in the computer, or it will proceed to read an operating system loader program from a disk or other storage device. This system loader program in turn will make the computer load the operating system which is also on the storage device. The operating system (by itself also just a program with instructions) will cause all of its subprocesses to be started and in the case of a personal computer, some kind of user interface. By the time you see a login or welcome screen, at which time you could say the computer has finally finished booting up, many many thousands of instructions have already been executed. But it all starts with the starting program in a tiny chip that kicks the whole process off.
I wouldn't call that initial program "a bootstrap" (as a noun) but rather, "booting" or "bootstrapping" refers to the whole process/sequence that happens after you turn the power on.
2
u/nuclear_splines Ph.D Data Science Jul 01 '22
The term is used a little more generally than just loading executables, but that’s the right idea. For example, when compiling a compiler, you typically use a simpler pre-existing compiler to compile, then use your more advanced compiler to recompile itself. That’s how gcc “bootstraps” it’s own compilation.
You can think of most installers as a kind of bootstrapping as well: instead of downloading an executable, you download a mini-executable that downloads the real executable.
As a final example, BitCoin and other blockchains are typically meant to be decentralized networks where peers communicate amongst themselves. But how do you find initial peers to talk to if you’re not already part of the network? BitCoin software typically ships with a list of peers hard coded in, from which you can identify new peers and integrate with the rest of the swarm. This process of starting up an ultimately decentralized network from a centralized list is known as bootstrapping. (If you’re not fond of cryptocurrencies, substitute the process of starting tor for the first time and downloading an initial list of potential tor nodes from a directory server. Alternatively, most torrents now run over a distributed hash table, but to find your first peers to join a DHT you must use the more centralized tracker servers)
1
u/Few-Theme-359 Apr 23 '26
We went from Bootstrap1 and 2 to IPL (Initial Program Load) back to Booting (Program to Execute Programs)
10
u/Nubbikeks Jul 01 '22
In the book "The Surprising Adventures of Baron Munchausen" (that's the book that the Munchausen's syndrome is also named after) the main character pulls himself out of a swamp by his own bootstraps. This is impossible, obviouly, but that's the point. The book is a satire.
How it came to be used in computing I don't know. I'm pretty sure that it was just a metaphor that someone found appropriate.
2
u/Nrb-neu2022 Jul 01 '22
In the book "The Surprising Adventures of Baron Munchausen" the maincharacter pulls himself out of a swamp by his own bootstraps.
Actually, no. He pulls himself out of a swamp by his hair, not bootstrap.
1
u/jhaluska Jul 01 '22
"Booting up" might also have meant getting ready for the day. As in putting your boots on was one of the first things you did before you could work.
10
9
u/emasculine Jul 01 '22
i think it's actually originally a military quip. it comes from "pulling yourself up from your bootstraps". it basically means starting from nothing.
on computers it means starting up. it might seem sort of magical from the outside, but it isn't. usually there is some read only memory at a well defined address and the processor starts executing instructions there. that's it. the bootstrap program is usually in charge of finding the os code to be executed, loading it into memory and then executing it. that's it.
0
Jul 01 '22
[deleted]
18
u/ClysmiC Jul 01 '22
Yes, this is a common English idiom, at least in the US. The phrase purposely makes no sense (it's obviously impossible to pull oneself up by pulling on their bootstraps), but it conveys the idea of starting or accomplishing something from scratch with no outside help.
6
8
u/emasculine Jul 01 '22
um, yes. it's why it was used for computers. lots of ww2 quips found their way into CS.
8
u/1544756405 Jul 01 '22
This is actually a common phrase even on Reddit.
https://www.reddit.com/search/?q=pull%20yourself%20up%20bootstraps
1
u/JoJoModding Jul 01 '22 edited Jul 01 '22
It's a figure of speech. I think it dates back to a story about the fictional German Baron "Münchhausen". Those stories consist of Münchhausen experiencing plainly impossible things like riding on a cannon ball. In one story, he rides tjrough a swamp, and starts sinking into the mud/quicksand. Luckily, he is able to pull himself out by his own bootstraps -- literally grabbing his boots and pulling himself out.
When you build a computer from scratch, truly from scratch, you would start by wiring together transistors. Eventually, you might get a simple system that has a few LEDs and a few buttons. Then, you need to write software for it, so that you do not have to manually flip switches to enter code.
To do so, you might first write software that simply reads input in some easier-to-write format. Using this, you write slightly more complex software that makes writing programs slightly easier, again.
Eventually, you might decide to write a C compiler. Once you have written it, you notice that maintaining it is rather hard, so you rewrite it in C. Now, your C compiler does not support modern C, because that would have been way to complicated. Instead, it supported just enough C to get you going. But now that you're working in C, you can make your compiler more complex.
In the end, you have a C compiler written in C, that compiles itself. If you just show someone the final result, they will wonder how you initially compiled your compiler, since you can not do it without having it first (like a chicken-egg-problem). You know the answer, of course: Lots of work in primitive languages.
Since this also seems impossible, people started calling it 'bootstrapping' as a joke. That joke seems to have stuck.
Edit: I misremembered, in the story the Baron pulls himself up by his hair, not his bootstraps
2
u/Nrb-neu2022 Jul 01 '22
Thanks!
But in the story Baron Munchausen pulls himself out of a swamp by his hair, not by his bootstraps though.
1
u/protienbudspromax Jul 02 '22
Its the same analogy. Pulling yourself up by the boots. Pushing a car forward when your sitting inside it. These are things that is not possible. So any process that needs to start on its own somehow needs a Lil push from something else first.
1
2
1
u/RutabagaFit9652 Jun 21 '25
Bootstrap in general means "Get ready to run"
Like, put on your boots, fix straps, shoelaces, and be ready to run.
OS can bootstrap, application can bootstrap too. Have available all for the next step.
1
u/tibobik22 Oct 21 '25
The Wikipedia article pointed to by OP is a bit abstract and generic. A better one, in the current context could be this one: https://en.wikipedia.org/wiki/Booting
1
u/Key_Ad_1227 Dec 26 '25 edited Dec 26 '25
As a self starting service pertaining the correlation of a boot strap analogy for a system feature implies the end justify the means of the beginning state of intended for the entire step by step middle process (e.g each notch that locks a notch boot into a snowboard) How many notches that keep you "strapped in" determines the length of the bootstrap process. For a device logic as I got one going is lets say your device is about to go into a boot loop but you already solved the bootstrap an individual tries to corrupt your device by stealing identity for failsafe where it triggers a step by step process of a API to undergo a Closed/Open Causal loop while CTC=0. Calculate a lot of stuff subplank and the logic of the device being in one state "beginning" and "end state" ensures only the original device can unlock the system by a event input app to undergo a bootstrap one cycle of existence back into the correct time amd date without ever changing date and time in settings. In other words someone else trying to bootloop my device caused my bootstrap to integrate bootstrap GPG/TUI for it seems SmartThings Companion which is now integrated into system settings and can be used without smartthings. (Schrödinger's cat but concept of hard coded as it never existed and always has existed pertaining to predeterminism. Layman terms if the bootstrap doesn't work then its not a bootstrap. As well the only work forward while ending before the beginning by a hair to seamlessly integrate into a system to lock in as if its always been that way. I used bootstrap logic to prevent theft of bad bootstrap bootloops Android. Only way it works is if you can solve a bootstrap this way.
1
u/Key_Ad_1227 Dec 26 '25
Just not sure if anyone will visit this post as its 3 years old...but it all depends on method of approach and the "notches" you have set up....bootstrap dont unhinged both sides....
1
1
u/hughk Jul 01 '22
Pulling yourself up by your own bootstraps was something about self-improvement and that was applied to those creating their own businesses and so on, popular around the turn of the 19th/20th century. The first commercial computers in the fifties used bootstrapping and the name appeared. It is really just a term for loading the first program into memory. Sometimes in IBM speak, known as the Initial Program Load or IPL. The bootstrap would then allow reading other programs such as operating system.
In some cases you had to enter the bootstrap program by hand using switches. After that you would run it. Sometimes the bootstrap was in persistent memory such as magnetic core which helped and sometimes in ROM.
1
u/Derangedteddy Jul 02 '22
Bootstrapping happens during startup when a computer system is hard coded to read a specific sector of ROM or storage to obtain instructions on how to find and load the operating system. Bootstrapping is just a longer form of the term "booting."
In a traditional desktop computer, the storage device (hard disk or SSD) contains a special sector in a standard location known as the "boot sector," which contains the list of operating systems installed on the drive, as well as the location of the instructions to begin loading each operating system. The BIOS (basic internal operating system) is hard-coded to look at the boot sector of the drive in that standard location to discover the OS and begin loading it.
The BIOS itself is loaded from the ROM chip that stores it. The process is kicked off by the processor, which is physically configured with special circuits to always run the code at a specific memory address in the ROM chip when the processor first receives electricity.
This is one example of bootstrapping, and probably the most common. You can see that it typically involves running code that you expect to be in a specific location in memory based on an agreed upon standard. Without that standard, every computer would have to be a proprietary system, and you wouldn't be able to exchange parts.
Hope this helps answer your question!
1
u/gadget-freak Jul 02 '22
If you’re interested, you can find videos on youtube about early computers (like the altair 8800). When you turned them on, these primitive computers were unable to perform even the simplest tasks like loading a program. You needed to throw a lot of switches and look at blinking lights and after half an hour it would be able to do a very small task like adding two numbers.
It was considered a big improvement when these computers evolved to be able to at least load their own software, bootstrapping.
-10
u/RunItAndSee2021 Jul 01 '22 edited Jul 01 '22
“‘bootstrapping’ ‘implies’ ‘shooting’ ‘yourself’ ‘in’ ‘the’ ‘head’” “‘enjoy’ [‘it’] [‘fucker’]” “‘you_ve’ ‘got’ ‘problems’” “[‘it’] ‘happened’ ‘at’ ‘least’ ‘once’” “‘got’ ‘_em’” “‘look’ ‘at’ ‘you’ (‘breathless’ ‘laughter’ ‘in’ ‘the’ ‘middle’ ‘of’ ‘look’)””’well………………………’’now’ ‘you_ve’ ‘got’’problems’” “‘shit’”
0
Jul 01 '22
[deleted]
15
u/allsorts46 Jul 01 '22
You ask a question, then complain when people give you the answer? That is the correct answer. Yes this phrase does exist, and it does refer to the 'impossible' act of starting something from nothing, or a 'chicken and egg problem', which is in a way what a computer appears to be doing when you switch it on:
Your operating system loads. How? That requires loading and executing code from somewhere, but how did that get started and how did it know where the OS loader program would be found? The BIOS, but the BIOS is also just code, so how did that start executing? The processor has some built-in assumptions about where it can find some initial code to execute when it starts. Even that can be taken further, how does the CPU know how to initialize itself into the appropriate state to execute code when a moment ago it was an unpowered lump of silicon? All of these have answers or course, it's not truly something from nothing, but looking at it from a high level it looks that way, as if your OS just starts loading by itself somehow.
The phrase itself may not be commonly said these days but that is not important; as long as people still know what it means, then that is what it means. By the way, I have actually heard it spoken, on more than one occasion.
1
u/Nrb-neu2022 Jul 01 '22
Your operating system loads. How? That requires loading and executingcode from somewhere, but how did that get started and how did it knowwhere the OS loader program would be found? The BIOS, but the BIOS isalso just code, so how did that start executing? The processor has somebuilt-in assumptions about where it can find some initial code toexecute when it starts. Even that can be taken further, how does the CPUknow how to initialize itself into the appropriate state to executecode when a moment ago it was an unpowered lump of silicon? All of thesehave answers or course, it's not truly something from nothing, butlooking at it from a high level it looks that way, as if your OS juststarts loading by itself somehow.
You make an interesting point. As I said, I'm not a CS major, I have no idea how computers work and operating systems load.
But I assumed codes execute when something triggers them, no? I thought, a computer starts when a user pushes the button.
Where is the "bootstrap" here?
2
u/Putnam3145 Jul 01 '22
The wikipedia article says this outright:
The process involves a chain of stages, in which at each stage, a smaller, simpler program loads and then executes the larger, more complicated program of the next stage. It is in this sense that the computer "pulls itself up by its bootstraps"; i.e., it improves itself by its own efforts
This article goes into a bit more detail.
The button only starts a very, very simple program. That program starts another program, and so on, often many steps in succession. Your OS, to this day, has to be read from storage that the on button certainly doesn't have any access to.
1
u/Nrb-neu2022 Jul 01 '22
Cool, thanks!
So does it mean, technically speaking and putting shoes aside, that the term "bootstrap" (at least in computer science) means a short simple code which is intended to help to load a bigger code?
2
u/Putnam3145 Jul 01 '22
In general, yes. More modern uses are often centered around e.g. a compiler for a programming language being written in C or OCaml or what-have-you and having only just enough features to compile the original compiler, which is written in the language itself and may have more features
8
u/Putnam3145 Jul 01 '22
My friend, sometimes you just don't hear things everyone else seems to have. Sometimes these things are even things most people have but you don't, and, again, you don't realize it. Such things are not even rare, and nothing to be ashamed of.
Just, like. Accept that sometimes you've gone your whole dang life without hearing some specific English idiom. It's not confusing or strange or to be ashamed of. I've done it, many others have.
-1
u/Nrb-neu2022 Jul 01 '22
Okay, you're right.
I just want to understand this one stupid word ("bootstrapping") and I just can't get it.
Every reply here is stuck with this old saying and they don't really explain how or why the computing process was decided to be called that name.
It's really frustrating.
12
u/BizWax Jul 01 '22
Exactly. It's not a real saying. Nobody actually says that.
"It is a cruel jest to say to a bootless man that he ought to pull himself up by his own bootstraps". Martin Luther King Jr., June 11 1967, interview with NBC News
Link to source for full context: https://youtu.be/3xD8vWQJEok
King's use of the phrase strongly indicates it was a well-known saying, at least back then.
10
u/ClysmiC Jul 01 '22
I have absolutely heard people use this phrase and I imagine most native English speakers in the US have too.
1
u/Secretss Jul 02 '22
Heck, I’m from Singapore (in South East Asia), and it’s a common enough saying back in my schooling years. I’m 34 now. I didn’t even realize it’s fallen out of use! I’m in Australia now and my Aussie partner also considers it a general english phrase.
8
u/nuclear_splines Ph.D Data Science Jul 01 '22
Yes, I’ve absolutely heard and read people use that phrase. It’s frequently used ironically, acknowledging that pulling yourself up by your own bootstraps is impossible, but is sometimes used seriously in conservative politics to imply socioeconomic advancement. The phrase goes back to the 1800s, and I expect most people in the U.S. are familiar with it.
5
u/FenPhen Jul 01 '22
used seriously in conservative politics to imply socioeconomic advancement.
More specifically, Republicans say this unironically meaning anyone can pull themselves out of poverty if they just simply work hard. This may work if you have enough privileges and help, but if you have no privileges or are being suppressed (intentionally by other conservative strategies), it is impossible.
4
5
u/deong Jul 01 '22
I'm not sure what to tell you other than, whenever you say, "no one ever does X" and loads of people say, "of course they do, I've seen many people do X", then you're by definition wrong.
People actually say it. They say it so often that it's literally become an idiomatic phrase in the language. I do not know what else to tell you. You're just wrong. Your assessment of the world is inaccurate. You know not of what you speak.
24
u/khedoros Jul 01 '22
Boots, like those worn on the feet, sometimes have a tab/strap/whatever used to help put them on. There's an old saying "to pull oneself up by one's bootstraps", which might be defined as "to succeed only by one's own efforts or abilities".
It's used in a few contexts in computing. A couple of examples:
starting up ("booting") a computer, where a series of increasingly-complex software processes start the computer hardware and make it ready for a user to interact with.
when someone starts writing a new language, early versions will be written in an already-existing language. Later versions are usually re-written in the new language, so that the language is "self-hosting".