palordrolap
link
fedilink
45M

Depends on how you define “scripting language”.

Older techs remember when it was only browser-based and they thought of, and perhaps still think of, “scripting languages” as something that would run from some command-line or another. Starting a GUI browser to run a mere script was a ridiculous concept. (There was also that JavaScript had no filesystem access. At least initially. And then it became a gaping security hole, but I digress.)

Today, there exist command-line accessible versions of JavaScript but even there (I figure) most people wince and choose anything else instead. Maybe even Perl.

But another definition of “scripting language” is “(any) interpreted programming language” and where it runs is unimportant.

From that perspective, sure, JavaScript qualifies. And so does QBASIC.

shastaxc
link
fedilink
75M

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

@Centaur@lemmy.world
link
fedilink
2
edit-2
5M

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

Sonotsugipaa
link
fedilink
English
15M

Hot take: A scripting language is a programming language whose execution starts from the beginning of the file | stream.

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.5K Comments
  • Modlog