Today, I saw a website that claimed to compile the scripting language such as JavaScript into an executable. I have a skeptical attitude towards the above, because according to the compilation theory I know, the dynamic type language like JavaScript Is unable to compile
Dynamic Type Language is not a weak type language, weak type language is compiled, such as assembly language, but dynamic type language It is dynamically determined, such as JavaScript, a variable can represent one string, also You can represent an array, and you can even represent a function, then when I am calling A, how do I know if I am visiting a string, or call a function? This is not determined in the compile period, so this is unable to compile
But the software above can indeed make a JavaScript into an exe file, and can be implemented, I don't necessarily need to achieve such a goal, such as I can do a housing, and then make this script to be used as resources as resources Encourage my housing, even a EXE file, when you run, then release this JavaScript file, then call the footprint interpreter to explain the execution, actually like a process of packing and unpacking
Unfortunately, I can't find evidence to prove that it is doing this, I don't know why everyone, huh, huh ~~~