Question:
what programming languages use both compilers and interpreters as translators?
anonymous
2011-02-07 08:10:40 UTC
what programming languages use both compilers and interpreters as translators?
Six answers:
?
2011-02-07 08:31:47 UTC
java uses both

compiler to convert into byte code

jvm to interpret byte code
Blackcompe
2011-02-07 08:44:06 UTC
Java, .NET languages (VB.NET, C#, Visual C++), Perl, and PHP all use interpreters.



The former two are compiled into intermediate code, called byte code. Java compiles into byte code, which can be executed in any JVM implementation (linux, bsd, windows, sparc, etc.). That way, it's portable. A Java class can run flawlessly on any platform, making it a network-oriented language.



.NET languages are compiled into CLI (common language interface) code and then executed by a CLR (common language runtime) engine. This is to allow libraries to be created from multiple high level languages. e.g. A module coded in VB.NET and a module coded in C# can reside in the same library once the modules are compiled to CLI code.



Of course all software that requires interpretation runs considerably slower than code that's compiled to native object code.
anonymous
2016-04-27 03:39:18 UTC
You mean compiles into universal "binary" code that runs the same on every operating system? There's java for one(my first programming language). I know you can compile pearl(or is it python?) or just run it in raw text. I think there is a BASIC compiler/interpreter out there somewhere...
Jordan
2011-02-07 08:34:18 UTC
JAVA Programming language.
Chrissprolls
2011-02-07 08:41:52 UTC
OCaml : http://caml.inria.fr/ocaml/index.en.html



F# : http://msdn.microsoft.com/en-us/fsharp/default



Haskell : http://www.haskell.org/haskellwiki/Haskell



PHP is interpreted by a web server but can be compiled for better performances :

http://www.roadsend.com/home/index.php?pageID=compiler

http://www.phpcompiler.org/



the same for python in web programming
buGGedDown
2011-02-07 08:15:22 UTC
java uses a hybrid of those.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...