Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

The only definition I could personally come up with for "scripting language" that C doesn't meet is "a language where a single line of code is interpreted and executed immediately". However, Perl also does not meet this definition (for that matter, neither does Python, Java, VB, or C#). AFAIK, the only true scripting languages left in common use are *nix shell scripts and the equivilents for other OSes (DOS batch scripts, etc.). Perhaps JavaScript, but I haven't dug into much JavaScript, so I don't know for sure. Intrestingly, you could might be able to fit ASM under this definition (since there is (usually) a 1:1 corrspondance between the ASM and the raw machine code).

Defining it as "a simplistic language" might work, but that statement is so vague as to be useless as a working definition. With the right definition of "simple", you could still probably fit ASM in as a "scripting language".

"Dynamically-typed language" might work as a definition, but I doubt you could get most programmers to go along with it. You could still probably sneak ASM in there (since you'd be manipulating the memory at a low-level, you can make it any "type" that you want). For that matter, you could probably program a few libraries to come up with a dynamically-typed version of C (in fact, I know you can, since perl itself does exactly that).

How about "a language which can be compiled directly to machine code without an intermediary interpreter"? This is talking about the details of how the language is implemented, not with how the programmer actually uses the language. Ways exist to compile Perl without an interpeter (they might even work someday :). Ways exist to run C code through an interpreter (often used to shorten the debug cycle). Would machine code suddenly become a "scripting language" just because you ran it on an emulator instead of the actual CPU? VB can be both intrepreted or compiled. So is VB a scripting language or not?

Can anybody come up with a more useful definition?

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated


In reply to Re: Re: Scripting Language Biases: The Tech-Sector's New Menace? by hardburn
in thread Scripting Language Biases: The Tech-Sector's New Menace? by lacertus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others scrutinizing the Monastery: (4)
    As of 2024-07-17 21:44 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?
      erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.