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

Error: Conflcting types for xxx pointing to same declaration

I've been writing a tad of C lately. I haven't had too much experience throwing everything into headers, writing their implementations, etc - but I thought I knew enough. At least, until today :P Long story short - I'm getting an error of…
Bobbbay
  • 322
  • 6
  • 18
1
vote
3 answers

How would you create an expression parser in c#?

I am just curious. Like in interpreted languages or even statement calculators how do people convert the strings given by input or files to actual expressions? e.g "Enter Calculation: " and you write "2*7/4" which is a string. How does the program…
ApprenticeHacker
  • 21,351
  • 27
  • 103
  • 153
1
vote
2 answers

Can you do "builds" with PHP scripts or an interpreted language?

Correct me if I'm wrong, but a "build" is a "compile", and not every language compiles. Continuous Integration involves building components to see if they continue to work beyond unit tests, which I might be oversimplifying. But if your project…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
1
vote
2 answers

Is there any interpreted language exposing its bytecode (or any IR)

I'm curious to know if any language exists that gives the programmer the possibility to 'emit' bytecode in the middle of the source code. To be more clear, is there any interpreted language that has a facility similar to the asm keyword for c/c++ ? …
1
vote
3 answers

Does Python/Java program work as fast as C if I convert both of them into exe?

I want to understand this difference between interpreted languages and compiled languages. Lot of explanation is found online and I understand all of them. But question is, softwares are distributed as exe(on windows) as final products. So if I…
Arpan Shah
  • 19
  • 4
1
vote
4 answers

ncurses-like bindings in interpreted languages

Are there any bindings for ncurses or a similar menuing framework in interpreted languages that make the process of creating console menus and interacting with options absurdly simple? I want to quickly prototype out a terminal-only configuration…
VxJasonxV
  • 951
  • 11
  • 35
1
vote
1 answer

How compiled language is better than interpreted language in optimizing the hardware?

Specifically how is compiled language able to better optimize the hardware compared to interpreted language? Other online sources that I have read only gave vague explanations like because it is written in the native code of the target machine while…
Colin Seng
  • 39
  • 5
1
vote
2 answers

Why are scripting languages using weak typing?

Been working with Javascript for a couple of years, and recently I've been using lua quite a lot. My only big beef with these languages are that they use weak typing. And I'm wondering if someone has good answer to; why? The way I personally see it,…
birgersp
  • 3,909
  • 8
  • 39
  • 79
1
vote
1 answer

How actually works javascript's "on the fly" compilation?

I am just reading Kyle's "You don't know JS" book series/watch his lectures and he says, that for following code: var a = 2; 2(); Javascript language is concerned, line two is an error. It's actually syntactically invalid. It's not a runtime…
1
vote
0 answers

Why does referencing a class dictionary from a requests.post() method take longer than from a dictionary in an immediate scope?

My code does the following: 1) Defines a somewhat large dictionary 2) Uses the requests library to send a post request with the dictionary to a webserver. If I set the dictionary up as a class variable (class is defined within the same .py file) and…
1
vote
3 answers

C# Interpreted Language

I am looking to write an interpreted language in C#, where should I start? I know how I would do it using fun string parsing, but what is the correct way?
Dested
  • 6,294
  • 12
  • 51
  • 73
1
vote
1 answer

What is the protocol / relationship between encodings and programming languages?

As a test I created a file called Hello.java and the contents are as follows: public class Hello{ public static void main(String[] args){ System.out.println("Hello world!"); } } I saved this file with UTF-8 encoding. Anyway,…
1
vote
6 answers

What is the best approach to both modularity and platform independence?

I hope this question does not come off as broad as it may seem at first. I am designing a software application that I would like to be both cross-platform and modular. I am still in the planning phase and can pick practically any language and…
Wing
  • 5,988
  • 3
  • 21
  • 12
1
vote
1 answer

The definition of compiled vs interpreted language with respect to node.js

Just recently had an argument on whether javascript in node.js was interpreted vs compiled. I was arguing that it was an interpreted language whereas she was arguing that it was compiled since she had to restart the node app to see changes to the…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
1
vote
2 answers

Interpretted Scripts: Implicit vs Explicit Execution

In this superuser question I was advised that it is better to execute scripts written in an interpretted language (php, python, etc) by explicitly executing the interpretter and providing the script as an argument, like: > php script.php rather…
Jeffrey Blake
  • 9,659
  • 6
  • 43
  • 65