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
0
votes
2 answers

Why is an interpreted language considered more portable?

Java is often cited as being more portable than other, say compiled, languages as the executable can be run on any platform with a JVM. But code written in C can be run on any platform with a C compiler. So, naively, there are two alternatives: make…
Sergio Gliesh
  • 329
  • 1
  • 2
  • 8
0
votes
1 answer

Why must dynamically typed languages store variable names as strings?

I've read that dynamically typed language are slower because they store variable names as string, but can't they use something else? I'm asking this question as a follow up of this question: Why are dynamically typed languages slow? Aren't there…
jokoon
  • 6,207
  • 11
  • 48
  • 85
0
votes
2 answers

Interpretation in scripting languages

Why is pure interpretation more preferred for scripting languages compared to programming languages. I mean why for scripting languages program is not converted to machine language and then executed. From what I have read, one of the reason is…
geek123
  • 9
  • 1
0
votes
1 answer

Accessing an "out-of-bounds" index in an interpreted versus a compiled language

What is the difference between accessing an out-of-bounds (negative, or otherwise inaccessible) index in a compiled programming language (such as C) versus an interpreted language (such as MATLAB)? As per the recommendation of this site, I have…
0
votes
1 answer

Compile java code that references current program classes during runtime

I'm trying to write a program that allows users to create "plugins". Kind of like how the Linux bash shell can have commands added by putting a file in a directory, I'm trying to allow users to put their code in a directory, and have my program…
0
votes
1 answer

executing a parsed script/snippet inside a c++ application

We have a large codebase in c++ and some .NET. Visual studio 2010. A main part of the application is a node graph based around the actor model. The nodes are state machines and turn booleans and numeric inputs into boolean and numeric outputs,…
Tormod
  • 4,551
  • 2
  • 28
  • 50
0
votes
1 answer

Can scripting language and interpreted language force garbage collection?

In javascript, you can't force garbage collection to happen, instead you have to wait for the interpreter to automatically collect it. Does this behaviour exist in interpreted languages like Python and Java as well?
hh54188
  • 14,887
  • 32
  • 113
  • 184
0
votes
4 answers

What is the processes to parse an interpreted programming language?

I would like to know how is the best way to create the syntax tree.
user216441
0
votes
1 answer

Scope in Python and variable definition

I'm reading a wiki book Python_Programming and I'm a little confused about the piece of code below: def foo(): def bar(): x=5 return x+y y=10 return bar() foo() well, I notice that y is defined outside of bar() and it's…
ChandlerQ
  • 1,428
  • 2
  • 21
  • 29
0
votes
1 answer

Is it possible to convert Ruby to C before running?

A problem is what Ruby does at run time. It is an interpreted language as compared to C, which is a compiled language. How feasible would it be? Ruby is getting faster every year, but how? What is being done? Are the methods we use a lot (each, map,…
David
  • 7,028
  • 10
  • 48
  • 95
0
votes
3 answers

Interpreted Languages For Mobile Platforms

I'm starting this community wiki to get all the interpreted languages that can be embedded, but let's begin: Windows CE Perl Ruby Python Palm OS Python iPod Python Now if I missed some language, please post and remember to put the link.…
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
0
votes
2 answers

How do you use CSS LESS in Joomla without a compiler?

I have a webpage that I am converting into a Joomla template. I am using a LESS file and allowing it to just interpret at runtime rather than compiling it. I see that Joomla has LESS capabilities and even has all the libraries to run LESS. The…
BillyNair
  • 277
  • 4
  • 20
0
votes
1 answer

Using Apache Velocity with own interpreted script language

In my Java application I'm using an object-oriented interpreted script language (specified using ANTLR) and would like to use that together with Velocity. An object in my language is represented by an instance of DataObject, which looks like this…
usimon
  • 415
  • 1
  • 5
  • 8
-1
votes
1 answer

Is lisp really the first interpreted high-level programming language?

Lisp is known to be the first high-level interpreted programming language appearing in 1958. Quoting from Interpreter (computing): The first interpreted high-level language was Lisp. Lisp was first implemented in 1958 by Steve Russell on an IBM 704…
-1
votes
2 answers

If Scala is a compiled language, then why didn't it detect an out of bound exception in this program beforehand?

The program is: object Hello extends App { val a: List[Int] = List(1, 3, 4, 5, 8, 10, 11, 22, 33) for (i <- 0 to 11) println(a(i)) } The Output is: 1 3 4 5 8 10 11 22 33 java.lang.IndexOutOfBoundsException: 9 // continues as a…
1 2 3
10
11