Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java

Name: Anonymous 2010-04-09 5:38

Interpreted or Compiled?

Name: Anonymous 2010-04-09 5:43

From Starbucks.

Name: Anonymous 2010-04-09 5:44

Ruby

Name: Anonymous 2010-04-09 5:45

I prefer mine from my cafetiere, personally.

Name: Anonymous 2010-04-09 10:08

Java is interpreted, which means it's a scripting language, not a programming language. I don't see why people like to use it instead of a real programming language.

Name: Anonymous 2010-04-09 10:22

>>5
I love you. I love this meme. I trolled with it 5 times. And then Prague was a zombie.

Name: Anonymous 2010-04-09 10:22

I compile my Java everyday so that it stays fresh.

Name: Anonymous 2010-04-09 10:26

srsly gais, which 1 is it?

Name: Anonymous 2010-04-09 10:27

>>8
Java is a natural language.

Name: Anonymous 2010-04-09 10:33

>>8
It's both, usually. It gets compiled to JVM bytecode¥. Depending on the JVM version and environment settings, this bytecode might then be interpreted, or it might be JIT compiled to native machine code to improve performance. In reasonably modern implementations, you'll typically see both happen within the same program.

.NET works the same way in theory, but Microsoft's compilers will just AOT compile everything by default.

¥This still counts as compilation even though the target isn't native machine code. Of course, JVM processors muddy this distinction, but we can ignore that for purely academic discussions like this one.

Name: Anonymous 2010-04-09 10:53

Java is both(JIT), but this discussion is pointless.

If you had read your SICP, you'd understand that a language which can be interpreted can also be compiled (Futamura's first projection), of course, this can also be done much more efficiently usually.
Any serious language should have a compiler, there can only be a few reasons why they don't have one:
1)Stupid or lazy language designer and/or coder. Too lazy to write a proper compiler (example: Python, Ruby, not counting 3rd party works, some of which are compilers now)
2)Language is rather complex(read: huge fucking mess) and making a compiler would be too much work(example: Perl, Ruby)
3)Language is so terribly designed from the core, that having it interpreted is more performant than having it compiled (example: newLISP and other Lisps using F-EXPRs, languages which abuse EVAL for everything - this is because they don't have macros, and instead emulate macros using EVAL and global or dynamic scope - this is a terrible way to design a language. Since the use of EVAL either means interpreting most things anyway, or calling the compiler each time, that effectively means an interpreter could be more efficient than a compiler, since a compiler would either waste a lot of time compiling code each time EVAL was called, or everything would run interpreted anyway).

There's also the middle ground, which is the JIT - things are compiled as needed and optimized at runtime, some things will run interpreted if that proves to be faster. JITs can be rather good and may in some cases be smarter than native compilation. .NET/JVM are such examples, however the VM's language is far from ideal, although it's nicely optimized by now.

So as you can see, if a language is interpreted-only, that means that either the language designers were lazy, didn't have coders, or the language is so terrible that it wouldn't benefit much from compilation.

Name: mdickie 2010-04-09 10:57

>>11
Have you read your fanmail today? Didn't think so.

Name: Anonymous 2010-04-09 10:59

>>11
Perl has a compiler, perlcc. Other than that, 6/10

Name: Anonymous 2010-04-09 11:00

>>12
No, I haven't, for I am not an Artist like you, thus I don't deserve fanmail, but I do get random thanks from random people all the time, even though I don't ask them for it.

Name: sage 2010-04-09 11:04

get the fuck out of /prog/
sage

Name: >>15 2010-04-09 11:10

i forgot to add:
you gurgling cockpustule, you festering boil on the distended anus of humanity, you double canlouch!

Name: Anonymous 2010-04-09 11:17

>>16
* African American

Name: Anonymous 2010-04-09 11:28

>>16
Are you frustrated?

Name: Anonymous 2010-04-09 11:39

>>18
* U MAD

Name: Anonymous 2010-04-09 23:30

>>16
double canlouch
>>17
* African American

Is this word some kind of neocon skinhead newspeak I'm not familiar with?

Name: Anonymous 2010-04-10 0:20

News Peak. Peak News. Mountaineer's Magazine. Mountain Life, Monthly Edition. Top Post.

Name: Anonymous 2010-12-27 8:15

Name: Anonymous 2011-02-04 16:47

Don't change these.
Name: Email:
Entire Thread Thread List