@[email protected] to Programmer [email protected] • 7 months agothe hardest exam questionlemmy.mlimagemessage-square121fedilinkarrow-up1715arrow-down122
arrow-up1693arrow-down1imagethe hardest exam questionlemmy.ml@[email protected] to Programmer [email protected] • 7 months agomessage-square121fedilink
minus-squareshastaxclinkfedilink7•7 months agoA script is just a file that can execute a series of commands without the need to compile
minus-square@Centaurlink2•edit-27 months agoThey compile in some point of time because CPU don’t know shit about Javascript. But that is for some other discussion. Edit: typo
minus-square@[email protected]linkfedilink1•7 months agoAre you referring to AOT compilation specifically? JavaScript in V8 is JIT compiled if it’s “hot” (executed enough that the cost of JIT compilation is less than the cost of continuing to run it in interpreted mode).
A script is just a file that can execute a series of commands without the need to compile
They compile in some point of time because CPU don’t know shit about Javascript. But that is for some other discussion.
Edit: typo
Are you referring to AOT compilation specifically? JavaScript in V8 is JIT compiled if it’s “hot” (executed enough that the cost of JIT compilation is less than the cost of continuing to run it in interpreted mode).