Questions tagged [interpretation]

An interpretation is an assignment of meaning to the symbols of a formal language.

Many formal languages used in mathematics, logic, and theoretical computer science are defined in solely syntactic terms, and as such do not have any meaning until they are given some interpretation. The general study of interpretations of formal languages is called formal semantics.

169 questions
226
votes
9 answers

Is Java a Compiled or an Interpreted programming language ?

In the past I have used C++ as a programming language. I know that the code written in C++ goes through a compilation process until it becomes object code "machine code". I would like to know how Java works in that respect. How is the user written…
Eduardo
18
votes
2 answers

What is the difference between compilation and interpretation?

I just had a conversation with a colleague and where were talking about the V8 JavaScript engine. According to Wikipedia, V8 compiles JavaScript to native machine code [...] before executing it, instead of more traditional techniques such as…
14
votes
2 answers

HTTP: What is the preferred Accept-Encoding for "gzip,deflate"?

This question is regarding the order of precedence for the media-types of the HTTP Header "Accept-Encoding" when all are of equal weight and has been prompted by this comment on my blog. Background: The Accept-Encoding header takes a comma separated…
Dave Transom
  • 4,085
  • 3
  • 21
  • 22
13
votes
1 answer

Decode and dispatch interpretation vs Threaded interpretation

I am trying to understand the practical difference during the execution of a program in Decode and dispatch interpretation and Threaded interpretation. Example of both will really help. I understand how Java bytecode works and how an assembly…
zengr
  • 38,346
  • 37
  • 130
  • 192
10
votes
2 answers

Using and interpreting output from gvlma

I want to test whether all assumptions for my linear regression model hold. I did this manually and it seems to be fine. However, I want to double check with the function gvlma. The output I get is: gvlma(x = m_lag) Value p-value…
PCUnique
  • 127
  • 1
  • 1
  • 8
9
votes
3 answers

interpret Parigot's lambda-mu calculus in Haskell

One can interpret the lambda calculus in Haskell: data Expr = Var String | Lam String Expr | App Expr Expr data Value a = V a | F (Value a -> Value a) interpret :: [(String, Value a)] -> Expr -> Value a interpret env (Var x) = case lookup x env…
Bob
  • 1,713
  • 10
  • 23
8
votes
4 answers

Printing chars as Integers

I want to control whether my ostream outputting of chars and unsigned char's via << writes them as characters or integers. I can't find such an option in the standard library. For now I have reverted to using multiple overloads on a set of…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
7
votes
4 answers

Online c# interpreter security issues

I am toying around with the idea of building an online C# interpreter, a bit like Codepad. Now there are obvious security issues: Infinite loops System.Diagnostics.Process.Start Pretty much the whole System.IO namespace My knowledge of C# isn't…
Alex Turpin
  • 46,743
  • 23
  • 113
  • 145
7
votes
1 answer

Is lua called from redis interpretted or compiled?

Redis supports lua scripting. Using eval command, we can execute a lua script in redis. Is the lua script compiled or interpretted when redis calls a lua script?
Ridhima
  • 308
  • 1
  • 3
  • 14
7
votes
5 answers

Technial confusion between compilation and interpretation

I've read many definitions and statements about "Interpretation" and "compilation". But I am still very much confused. Technically speaking, what is REALLY the difference between interpretation and compilation under the hood? Let me elaborate…
finitenessofinfinity
  • 989
  • 5
  • 13
  • 24
6
votes
2 answers

Java expression interpretation rules of decrement/increment operators

This is a purely theoretical question, I wouldn't write this code normally, for clarity's sake. Why is this quite ambiguous statement legal int a = 1, b = 2; int c = a---b; // a=0, b=2, c=-1 (it is interpreted as a-- -b) and this one isn't? int c…
radoh
  • 4,554
  • 5
  • 30
  • 45
6
votes
1 answer

Orthogonal state interpretation

What is the interpretation of the following quoted sentences from UML Reference Manual? When an orthogonal state is entered, the number of control threads increases as a direct substate in each orthogonal region becomes active. When the orthogonal…
Andrew
  • 713
  • 3
  • 10
  • 19
5
votes
1 answer

Why does recursive binding of arrow function in Haskell loop infinitely?

I'm learning how to use Arrows in Haskell by implementing a simple interpreter for the comm language. I have an eval function which evaluates an expression into a value, but eval loops indefinitely when feeding in any expression. -- Interp.hs eval…
Myuri
  • 55
  • 1
  • 7
5
votes
1 answer

How to read Prolog documentation?

If, for instance, I type help(bagof). into the Prolog REPL, a window pops up with some documentation, the first line of which reads bagof(+Template, :Goal, -Bag). Are the arguments Template, Goal and Bag just names, or are they formal types that…
Jeffrey Benjamin Brown
  • 3,427
  • 2
  • 28
  • 40
5
votes
2 answers

Normal Probability Plot interpretation

I have a very basic question. What is the basis of the normal probability plot i.e. what do the probabilities represent? I am testing for a standard normal distribution. My normplot (in MATLAB) revealed that the values were more or less in a…
Imelza
  • 301
  • 1
  • 7
  • 19
1
2 3
11 12