interpreted-language

Why are Interpreted Languages Slow?

心已入冬 提交于 2019-11-30 01:29:15
I was reading about the pros and cons of interpreted languages, and one of the most common cons is the slowness, but why are programs in interpreted languages slow? Native programs runs using instructions written for the processor they run on. Interpreted languages are just that, "interpreted". Some other form of instruction is read, and interpreted, by a runtime, which in turn executes native machine instructions. Think of it this way. If you can talk in your native language to someone, that would generally work faster than having an interpreter having to translate your language into some

Is Perl a compiled or an interpreted programming language?

不羁的心 提交于 2019-11-29 23:05:18
Is Perl compiled or interpreted? Prof. Falken Well, that depends on what you mean by a compiled language. Maybe this is why googling did not bring forth a clear answer to your question. One viewpoint is that compilation means compiling from a source code description to another, i.e. code generation . If we accept these premises, then Perl 6 can be compiled and Perl 5 and older are interpreted languages. Perl 6 is specifically compiled to Parrot bytecode . Perl 6 is therefore a properly compiled language, in the same way say, Java is . Perl 5 and older parses the Perl source code to an internal

Does it make sense to use Hungarian notation prefixes in interpreted languages? [closed]

╄→гoц情女王★ 提交于 2019-11-29 09:26:34
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . First of all, I have taken a look at the following posts to avoid duplicate question. https://stackoverflow.com/questions/1184717

Is Clojure compiled or interpreted?

為{幸葍}努か 提交于 2019-11-29 02:10:09
问题 I read somewhere Clojure is compiled. Is it really compiled, like Java or Scala, rather than interpreted, like Jython or JRuby? 回答1: Clojure is always compiled . The Clojure compiler produces Java byte code, which is typically then JIT-compiled to native code by the JVM. The thing that can be confusing is the dynamic and interactive nature of Clojure that means you can invoke the compiler at run-time if you want to. This is all part of the Lisp "code is data" tradition. For example, the

Is Perl a compiled or an interpreted programming language?

╄→尐↘猪︶ㄣ 提交于 2019-11-28 20:12:03
问题 Is Perl compiled or interpreted? 回答1: Well, that depends on what you mean by a compiled language. Maybe this is why googling did not bring forth a clear answer to your question. One viewpoint is that compilation means compiling from a source code description to another, i.e. code generation. If we accept these premises, then Perl 6 can be compiled and Perl 5 and older are interpreted languages. Perl 6 is specifically compiled to Parrot bytecode. Perl 6 is therefore a properly compiled

Why are so many web languages interpreted rather than compiled?

℡╲_俬逩灬. 提交于 2019-11-28 18:37:18
Why didn't languages such as C end up being using for web dev? Surely the speed increases from being compiled would be useful for heavy load sites? Stein G. Strindhaug Another good reason is that on a big server execution speed is not so much an issue as the connection speed anyway. Most of the time is spent sending and receiving data, not number crunching. And actually in certain web services which do a lot of computations, the hard crunching is probably run as a compiled program. Plus interpreted languages don't need compiling (which on a large project can take time), thus it's more suited

Is C# partially interpreted or really compiled?

强颜欢笑 提交于 2019-11-28 16:03:17
There is a lot of contradicting information about this. While some say C# is compiled (as it is compiled into IL and then to native code when run), others say it's interpreted as it needs .NET. EN Wiki says: Many interpreted languages are first compiled to some form of virtual machine code, which is then either interpreted or compiled at runtime to native code. So I'm quite confused. Could anyone explain this clearly? C# is compiled into IL, by the c# compiler. This IL is then compiled just-in-time (JIT) as it's needed, into the native assembly language of the host machine. It would be

Is Javascript compiled or an interpreted language? [closed]

半世苍凉 提交于 2019-11-28 15:26:26
Can Javascript be called a pure interpreted language? Or does it also have some compiled flavor to it? Could someone guide at the reasons behind both the things whichever being true. Matt Esch Go and read the answers to this question https://softwareengineering.stackexchange.com/questions/138521/is-javascript-interpreted-by-design The answer I accepted is excellent and should help answer your question. For me personally, I am somewhat cautious of the idea of calling a language interpreted or compiled. It's an implementation decision, not part of the language specification. If you want to talk

Is Ruby really an interpreted language if all of its implementations are compiled into bytecode?

爱⌒轻易说出口 提交于 2019-11-28 06:55:58
In the chosen answer for this question about Blue Ruby , Chuck says: All of the current Ruby implementations are compiled to bytecode. Contrary to SAP's claims, as of Ruby 1.9, MRI itself includes a bytecode compiler, though the ability to save the compiled bytecode to disk disappeared somewhere in the process of merging the YARV virtual machine. JRuby is compiled into Java .class files. I don't have a lot of details on MagLev, but it seems safe to say it will take that road as well. I'm confused about this compilation/interpretation issue with respect to Ruby. I learned that Ruby is an

Why interpreted langs are mostly ducktyped while compiled have strong typing?

和自甴很熟 提交于 2019-11-28 02:47:46
I just don't know that, is there any technical reason for that? Is it more difficult to implement a compiler for a language with weak typing? What is it? Norman Ramsey The premises behind the question are a bit dodgy . It is not true that interpreted languages are mostly ducktyped. It is not true that compiled languages mostly have strong typing. The type system is a property of a language . Compiled versus interpreted is a property of an implementation . Examples: The programming language Scheme is dynamically typed (aka duck-typed), and it has many dozens of interpreted implementations, but