interpreter

Do any languages have neither an interpreter nor a compiler?

Note:I don't mean some theoretical question which don't have any implementation just languages that don't have both!!!!! These days there exists a c/c++ interpreter(cint) and a python compiler(to python bytecode). I understand that the simplest definition is that a compiler just converts code from language a to language b, and then y...

Are there any languages that use PHP as a virtual machine?

Hi, I am wondering if there are any languages that extend PHP into something ahem "better"? They don't have to necessarily be able to interact with PHP, but it is certainly a benefit if they can (e.g. call PHP functions or even be called from PHP). ...

Compiled vs. Interpreted Languages

I'm trying to get a better understanding of the difference. I've found a lot of explanations online, but they tend towards the abstract differences rather than the practical implications. Most of my programming experiences has been with CPython (dynamic, interpreted), and Java (static, compiled). However, I understand that there are oth...

Implementing a stack based virtual machine for a subset of C

Hello everyone I'm currently implementing a simple programming language for learning experience but I'm in need of some advice. Currently I'm designing my Interpreter and I've come into a problem. My language is a subset of C and I'm having a problem regarding the stack interpreter implementation. In the language the following will comp...

Python Compilation/Interpretation Process

Hey all, I'm trying to understand the python compiler/interpreter process more clearly. Unfortunately, I have not taken a class in interpreters nor have I read much about them. Basically, what I understand right now is that Python code from .py files is first compiled into python bytecode (which i assume are the .pyc files i see occasio...

Perl: Why is it slower to declare (my) variables inside a loop?

What's the difference, from the interpreter's POV, between the following the following programs: #!/usr/bin/perl -w use strict; for (1..10000000) { my $jimmy = $_**2; } and #!/usr/bin/perl -w use strict; my $jimmy; for (1..10000000) { $jimmy = $_**2; } "time" reports for the first program: real 0m1.519s user 0m...

Language history: origin of variable 'it' in read-eval-print loop?

Some interactive systems, including Standard ML of New Jersey and GHC, offer an interactive toplevel loop where you can type expressions and see results. A nice little convenience is that the result of the most recent expression is bound to the variable it. Here's an example from GHCi: Prelude> 3 + 5 8 Prelude> it 8 Prelude> 2 * it 16...

How to execute C++ code without compiling it?

In order to pass some code to an application created with C++ I have used a C++ open source code which acted as a TCL interpreter. So I could create a file, in there put some XML data and in some tags some TCL code. Finally it is possible to read the file configure some structure and execute the TCL script snippets from the XML file in a...

lisp interpreter

Possible Duplicate: Whats a good Common Lisp implementation for Windows? where can I get common lisp interpreter for windows? ...

Is there an online interpreter for python 3?

Where can I find an online interpreter for Python 3? I'm learning Python but can't install it at work where I'd like to do some practice. Thanks! Sorry to repeat the question; I can't bump earlier posts and was just hoping there is one out there now. ...

Is there an interpreter for a stack-oriented programming language available under LGPL / GPL license?

I am looking for an interpreter for a stack-oriented programming language released under GPL or LGPL license, written in C or Objective-C. ...

Drop into Scala interpreter during execution of Scala program

Hi! I am trying to drop into the Scala interpreter in the middle of my Scala program. I've seen this very interesting question but it does not seem to be working in Eclipse (3.5.2 + Scala plugin). I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: scala/io/LowPriorityCodecImplicits at scala.tools.n...

Building a compiler or interpreter using Python

Right now I'm writing my PhD proposal to build a language processor for a new specification language for Java (cf. JML, or Spec# for C#) and need to nail down an implementation tool to start development. The research aspects of the language (syntax, semantics, theoretical results) are orthogonal to my choice of implementation, so I'd lik...

Ch and CInt C interpreters

Possible Duplicate: Have you used any of the C++ interpreters (not compilers)? probable duplicate: http://stackoverflow.com/questions/69539/have-you-used-any-of-the-c-interpreters-not-compilers Who has used Ch and CInt? Does anyone have a preference for either? Differences/Disadvantages/ advantages of each? ...

Python 3.2 - GIL - good/bad?

Python 3.2 ALPHA is out. From the Change Log, it appears the GIL has been entirely rewritten. A few questions: Is having a GIL good or bad? (and why). Is the new GIL better? If so, how? UPDATE: I'm fairly new to Python. So all of this is new to my but I do at least understand that the existence of a GIL with CPython is a huge deal...

What is the difference between a REPL and an interpreter?

Hi, I was just wondering if there is any technical difference between a REPL and an interpreter? ...

There is no such thing as a "compiled language" or "interpreted language"

"There is no such thing as a "compiled language" or "interpreted language". Whether a language implementer chooses to write a compiler, an interpreter or anything in between is an implementation detail and has nothing to do with the language. " Is the above statement is true ? ...

Difference between java interpreter and JVM

I have heard people saying "a JVM is necessarily a java interpreter but a java interpreter is not necessarily a JVM". Is that true? I mean is there a difference between java interpreter and JVM? ...

"all java interpreter are JVM but all JVM are not java interpreter" ?

can anybody explain "all java interpreter are JVM but all JVM are not java interpreter" ? I am really confused as JVM is used for to run java program only or it can do anything else too. ...

Embed a Language interpreter but hook/control variable resolution ?

Sorry, if the topic title does not convey the problem. As part of a project we want to expose an expressive language to the User, mostly for defining simple expressions, but possibly the ability to write procedures as well as any complex calculations they might want to do with the data. Of course, the natural choice would be to expose ...