this post was submitted on 21 Apr 2024
707 points (96.9% liked)

Programmer Humor

32041 readers
1168 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] shasta@lemm.ee 7 points 4 months ago (2 children)

A script is just a file that can execute a series of commands without the need to compile

[–] Centaur@lemmy.world 2 points 4 months ago* (last edited 4 months ago)

They compile in some point of time because CPU don't know shit about Javascript. But that is for some other discussion.

Edit: typo

[–] dan@upvote.au 1 points 4 months ago

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).