ELI5: Explain Like I'm 5

Just-in-time compilation

Just-in-time (JIT) compilation is like when a recipe is cooked, but instead of cooking with food, it's cooking with code. To understand how, let's think of coding like cooking by using a recipe. A recipe is like a list of steps that tells the cook what to do and when to do it. When you first get a recipe, it's written in a way that a human can understand, but a computer can't. So before the cook can start cooking, they have to translate the recipe into something that the computer can understand, like a set of instructions. This is like the process of compiling a program. With JIT compilation, instead of the recipe being translated all at once before the cook starts, it is translated one step at a time as the cooking progresses. As the cook starts to go through the recipe, each step is translated into something that the computer can understand. This allows for the cook (or in this case, the computer) to make changes during the cooking process that can optimize or improve the dish (or program).