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
1
vote
1 answer

Is compiling code really faster than interpreting code?

Firstly, I want you to check the best answer over here. Compiled vs. Interpreted Languages As you can see, it says, compiled languages are faster. However, what I know for granted is that compilers take the whole source code, compiles it to machine…
Haggra
  • 3,539
  • 2
  • 20
  • 28
1
vote
1 answer

How to make a C-Like Interpreted Scripting Language in C#

Question: I am looking to develop a Scripting Language like Lua, but you use if (paramters) { codeToDo() } rather than if parameters do code_to_do() end but have yet to find a good tutorial out their on the…
Duphus
  • 191
  • 1
  • 10
1
vote
1 answer

Why use an interpreted language to make a compiled one adjustable "on-the-fly"?

I've read about certain programs, such as the Civilization video game series, using interpreted components (Lua in this case) to interface with compiled ones (C++ I assume) to allow for user extendability through mods and such. Why is invoking a…
Aleksey Bilogur
  • 3,686
  • 3
  • 30
  • 57
1
vote
1 answer

Please recommend an interpreted language with pattern matching

I'm looking for an interpreted language that's easy for quick scripting like python or ruby but has more of a Haskell feel to it (i.e. a functional language). Specifically, I want it to have pattern matching features like in haskell. Does such a…
1
vote
2 answers

Can interpreted languages use delay slots?

When dealing with a pipelined architecture for executing instructions, one of the ways to avoid hazards is to use delay slots, or a rule that prevents certain instructions from accessing values computed in the lines above them. My understanding is…
Kvass
  • 8,294
  • 12
  • 65
  • 108
1
vote
0 answers

Need an Interpreted Language with Bayes on Win32 for mini-project

I used to use Python with Reverend Thomas so I could do things like: "Hola, coma estas", Spanish "Hi, How are you?", English "Muy gracias", Spanish But I can't find the Reverend package anymore after upgrading my machine. I need to do very simple…
Adroid
  • 11
  • 1
1
vote
1 answer

If/Else and Switch efficiency comparison in interpreted languages

I know that when source code is compiled, the compiler treats if/elseif/else and switch statements differently making switch statements at least as efficient as a corresponding if/elseis/else and most often more efficient. This is usually done by…
1
vote
2 answers

Multiline comment declaration with flex/bison

I have today a problem with my flex/bison script. It doesn't detect the multiline comment. %x COMMENT_MULTI #\[ yy_push_state(COMMENT_MULTI); "]#" yy_pop_state(); "\n" { …
izanagi_1995
  • 94
  • 1
  • 8
1
vote
3 answers

Performance of computing constants

How do the following two blocks of pseudo-code compare in terms of speed for both compiled languages and interpreted languages? (Ignoring number of digits) Essentially, is there any performance loss by writing variables as a function of several…
Wehrdo
  • 560
  • 6
  • 12
1
vote
0 answers

What is the usefulness of unswitching loops in an interpreted language?

I was looking at what GCC does with the -O3(what I make sure that all of my code compiles with) and I was wondering how much usefullness of unswitching the loops is in an interpreted language. I was was wondering if it'd be worth it for code that is…
133794m3r
  • 5,028
  • 3
  • 24
  • 37
0
votes
1 answer

Python - Interactive mode vs. normal invocation of the interpreter

Is there a difference between the two modes in terms of resources, especially memory? I'm referring to Python in the title but if there is a common explanation to many interpreted languages (Octave, etc...) that would be very helpful. Thanks
mrk
  • 3,061
  • 1
  • 29
  • 34
0
votes
0 answers

Is it possible to capture the bitstream of post-interpreted code? (pre-execution) eg. speedup calls I make often

I've wondered this many times and in many cases, and I like to learn so general or close-but-more needed answers are acceptable to me. I'll get specific, to help explain the question. Please remember that this question is more about accelerating…
0
votes
0 answers

If Javascript code gets executed line by line then, how AST (Abstract syntax tree) works?

Javascript is an interpreted language which executes code line by line. On the other hand, AST (Abstract Syntax Tree) inside the Javascript engine, created the data structure of the whole code and converts into machine code. Then how line by line…
0
votes
0 answers

Does Python basically execute code from the top to the bottom?

I tried to inherit "Person" class to "Student" class: class Student(Person): pass class Person: pass But I got this error: NameError: name 'Person' is not defined So, I changed the order of "Student" and "Person" classes: class Person: …
Super Kai - Kazuya Ito
  • 22,221
  • 10
  • 124
  • 129
0
votes
0 answers

Is Standard ML compiled, interpreted or both?

Is the functional programming language Standard ML (SML) compiled, interpreted or both? From what I have researched, I see that it is a compiled language. Is there an explanation as to why for this?