Questions tagged [interpreted-language]

Questions about interpreted languages and program interpretation in general. A language implementation is interpreted if programs are executed by another program (the interpreter) as opposed to being transformed (compiled) into code that is directly executed by the machine.

An interpreted language is a programming language in which programs are "indirectly" executed (interpreted) by an interpreter program. This can be contrasted with a compiled language which is converted into machine code and then "directly" executed by the host CPU.

Theoretically, any language may be compiled or interpreted; this designation is applied purely because of common implementation practice and not some essential property of a language. Indeed, for some programming languages, there is little performance difference between an interpretive, or compiled-based approach to their implementation.

For more information, see the Wikipedia entry about interpreted languages.
See also .

158 questions
2
votes
4 answers

What converts vbscript to machine code?

Compiled languages like C# and java, have just in time compilers, that convert them (from byte code) into machine code (0s and 1s). How does an interpreted language like VBScript get converted into machine code? Is it done by the operating system?
developer747
  • 15,419
  • 26
  • 93
  • 147
2
votes
5 answers

is the code for interpreted languages re-interpreted every time the line is reached?

suppose that no bytecode is generated for a program, like in Ruby, Perl, or PHP, in this case, is line 1 below re-interpreted every time the execution reach line 1 again? while ($indexArrayMoviesData < $countArrayMoviesData +…
nonopolarity
  • 146,324
  • 131
  • 460
  • 740
2
votes
1 answer

Why are there no languages that are both interpreted and (really) compiled?

I am an (old) engineer not a programmer so forgive me for asking a naïve question. My understanding is that to get really fast execution times for a program, it needs to be compiled to native machine code. And there are a relatively small number of…
2
votes
2 answers

Sorting an array in perl and returning the result in one line

I am trying to sort an array in Perl from Z to A and return the sorted array in one line. What I am doing is: sub mainTexts { my @texts = (); print ("Enter text 1: "); my $text1 = ; push @texts, $text1; print ("Enter…
tavalendo
  • 857
  • 2
  • 11
  • 30
2
votes
1 answer

Why in interpreted languages the # usually introduces a comment?

Why in interpreted languages the # normally introduces a comment? This question was asked in an exam on Shell Programming but I don't find any hint on why it's the #. Any ideas?
helpermethod
  • 59,493
  • 71
  • 188
  • 276
2
votes
3 answers

storing multi-dimensional arrays in c

I am working on a simple lisp-style pre-processor language. In the API i want users to be able to pass arrays of any dimension and size to the pre-processor which can be manipulated using the language. Currently i have an enum of types; typedef enum…
jmgunn87
  • 165
  • 2
  • 12
2
votes
2 answers

How to check what shared libraries are linked when I run a interpreted language binary and its script?

I am trying to find every library that is actually needed to run a lua script that requires torch libraries test.lua: #!/usr/bin/env lua print "Welcome to LUA" print('_VERSION = ' .. _VERSION) require("nn") -- this loads torch nn libraries to be…
nico
  • 1,136
  • 1
  • 15
  • 33
2
votes
2 answers

Steps carried out in case of INTERPRETER and COMPILER

What exactly the difference between interpreted and compiled language.For example I want print the numbers from 1 to 100 .How exactly the sequence of operations takes place in case of interpreter and compiler. Further,If possible please provide me…
2
votes
2 answers

i=i+1 in compiled languages?

I'm writing a program for my TI-nspire calculator in TI-BASIC, an optimised version of BASIC. From what I can tell, TI-BASIC is a compiled language. I have had more experience working with scripting languages, where you can define i as i+1, where…
user5331742
2
votes
2 answers

Run-time compilation: How is it possible that this isn't a performance hit?

I've heard that some types of runtime compilation aren't a performance hit. The official Python documentation asserts that running a .pyc file is no faster than .py. (I can't find the link right now.) How is this possible? Doesn't it take time to…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
2
votes
1 answer

Options for dynamic code generation

I have a (hypothetical) question and I think the solution would be to dynamically generate code. I want to quickly evaluate an arbitrary mathematical function that a user has entered, say to find the sum i=1 to N of i^3+2i^2+6i+1. N is arbitrary…
Bernard
  • 5,209
  • 1
  • 34
  • 64
2
votes
3 answers

Understanding run time code interpretation and execution

I'm creating a game in XNA and was thinking of creating my own scripting language (extremely simple mind you). I know there's better ways to go about this (and that I'm reinventing the wheel), but I want the learning experience more than to be…
Bob
  • 7,851
  • 5
  • 36
  • 48
2
votes
3 answers

Compiling Ruby and Python interpreters with Clang?

I'm just curious; are there any benchmarks about how compiling interpreters for dynamic languages with Clang affects the performance of these languages? Do those interpreters even compile?
kerkeslager
  • 1,364
  • 4
  • 17
  • 34
2
votes
6 answers

How to use Subversion for non-compiled language?

I want to use Subversion with a script based development system, and was wondering what to do differently to my usual situation (C#/.NET). The normal day-to-day update/commit cycle will work fine, as will change tracking and comparison of revisions.…
Bevan
  • 43,618
  • 10
  • 81
  • 133
1
vote
1 answer

implementing "this" / "self" in a custom interpreted programming language

I'm working on a custom interpreter for fun ;) What I have so far is assigning variables, defining and calling functions, arrays, loops, if blocks etc... I've started adding OOP elements to my language and I'm having trouble implementing the "this"…