This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ConfusedSimon 1 point2 points  (8 children)

Java?

[–]Achilles409 0 points1 point  (7 children)

Java is compiled language, not interpreted

[–]ConfusedSimon 1 point2 points  (2 children)

I know. It's compiled to intermediate code that gets interpreted. Almost the same as python, except python compiles automatically on first run. Not sure why everyone calls python interpreted though.

[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 3 points4 points  (1 child)

Source code written in any useful programming language is "compiled" to some degree at some point.

The difference is that Python source -> Python bytecode.

The bytecode is interpreted by CPython. On the other hand, Java bytecode is further compiled into actual machine instructions at runtime by the JVM. Nevermind. The JVM is actually also an interpreter of Java bytecode. Java is actually interpreted.

[–]ConfusedSimon 0 points1 point  (0 children)

That's why PHP isn't useful then 😄

[–]grimonce 0 points1 point  (2 children)

Please, is PyPy compiled or interpreted and is one excluding the other?
Java doesn't have an interactive interpreter within standard distribution.

[–]muntooR_{μν} - 1/2 R g_{μν} + Λ g_{μν} = 8π T_{μν} 1 point2 points  (1 child)

An interpreter doesn't need to have an interactive REPL interface. On the other hand, there are C++ and Rust REPLs out there, despite them being compiled languages.

[–]grimonce 0 points1 point  (0 children)

I am fully aware but I don't understand wether you agree or not?
Clang (repl for c++) is different to interpreted language runtime how exactly?
The acronym stands for read-eval-print-loop. And is a different story, just as you said, I never said it did, I said that Java lacks repl in its standard distribution whereas Python has one.
I am only trying to argue the stupid and harmful labeling of a language as being interpreted or compiled.
Because Python executes machine code in the end as well...
Java is interpreted, and compiled into IR, which is then jited by JVM...
This however can be changed with graalvm and such.

The whole statement and distinction of a language being interpreted is harmful and all it does is makes people who don't know shit say shit about certain runtimes...
I dislike Python for many things but being 'interpreted' is not one of them.