siriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agothe hardest exam questionlemmy.mlimagemessage-square121linkfedilinkarrow-up1122arrow-down13
arrow-up1119arrow-down1imagethe hardest exam questionlemmy.mlsiriusmart@lemmy.ml to Programmer Humor@lemmy.ml · 2 years agomessage-square121linkfedilink
minus-squareshastaxc@lemm.eelinkfedilinkarrow-up6·2 years agoA script is just a file that can execute a series of commands without the need to compile
minus-squareCentaur@lemmy.worldlinkfedilinkarrow-up2·edit-22 years 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-squaredan@upvote.aulinkfedilinkarrow-up1·2 years 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).