|
interpreters are slower than compilers?
|
|
|
|
|
A compiler, interprets the whole program just once (on the developer machine) but an interpreter does it every time you run the program (on the client machine)... that's why its slower.
WM.
What about weapons of mass-construction?
|
|
|
|
|
can some one plz mail me how java actually works?? or suggesting a site wud be better......
tq,
Tej...
000000000 TTTTTTTTTTT
0000000000000 TT
0000000000000 TT
0000000000000 TT
0000000000000 TT
0000000 EEEEEEEEE
0000000 EE
0000000 EE
0000000 EEEEEEEEEE
0000000 EE
0000000 EE
0000000 EEEEEEEEEE
0000000 JJJJJJJJJJ
0000000000 JJ
0000000000 JJ
0000000000 JJ
0000000000 JJ
0000000000 JJ
000000 JJJJJ
|
|
|
|
|
it's not so compilcated...
you have a code source (plain text) that you compile.
but the java compiler won't create an exe file that is the machine code for you processor.
it generates instead an intermediate language called Byte Code, and it is this byte code that is interpreted by the Java Virtual Machine to generate the appropriate assembly for you processor.
Of course, you will ask : "but, why do we need an intermediate if it becomes slower ?"
good question, but the answer is so pertinent :
"portability" !
effectively, the same program generated in byte code can run either on Windows (whatever plateform), MacOS, Linux, sunOS, etc... without recompiling !!! (the only condition is that a virtual machine must be running to execute a java program )
hope this help more now ...
cheers,
|
|
|
|
|
But Java interpreters do JIT (Just In Time) compiling after the intermediate code is validated...
--
Meski
|
|
|
|
|
toxcct wrote:
Of course, you will ask : "but, why do we need an intermediate if it becomes slower ?"
good question, but the answer is so pertinent :
"portability" !
Well, I can write portable C++ code almost as easy as portable java code . Though I canno't create portable executables with a non .NET C++ compiler
Blog[^]
|
|
|
|
|
I think java is not interpreted, its compiled but in run time (JIT). It's like saying that C# is interpreted...
|
|
|
|
|
same here
it does some good caching, but when it starts up it is unresponsive as an KC 85/1 with dysfunctional keyboard.
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
Never thought of that, I can blame java for my phone sucking!!
Matt Newman
Even the very best tools in the hands of an idiot will produce something of little or no value. - Chris Meech on Idiots
|
|
|
|
|
mine must be java base phone because it hangs alot.
My Blog ^
|
|
|
|
|
As a member of the Keep Phones Simple campign, I've have no idea what my phone runs on it. It makes and receives phone calls and that's it. And thats all I want a telephone to do.
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
I don't know if my phone does those things... What menu would I select?
|
|
|
|
|
Michael P Butler wrote:
It makes and receives phone calls and that's it.
That's crazy talk. Where the heck do you keep your recipes?
Charlie
if(!curlies){ return; }
|
|
|
|
|
Michael P Butler wrote:
It makes and receives phone calls and that's it. And thats all I want a telephone to do.
Don't you use it to send/receive short messages to/from other people? This has actually become our culture here. We send messages more than making phone calls.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Luddite! I have 256 Mb on my phone and I can listen to my music on the go. I have a 1.6 Megapixel digital camera which I thought I would never use, but now gets used all the time, and I can browse the web whenever I wan't, wherever I am. I can use the GPS tracking capability to find ATMs, Restaurants etc., which is still basic, but showing promise.
Oh and I can make Video calls to other people with 3G phones, which is admittedly a bit useless currently as I only know one other person with that capability! But who knows...
So my point is that these services become part of the woodwork very quickly. I bet you were the same person who said years ago that they would never need a mobile phone as they don't go anywhere. Go on, admit it.
|
|
|
|
|
I agree. I bought the cheapest phone from Verizon that would both make a call and receive one.
Jeff Martin
My Blog
|
|
|
|
|
Where do I sign up ?
Blog[^]
|
|
|
|
|
to have a clue?
--
An eye for an eye will only make the world blind.
|
|
|
|
|
Don't you live in Nokialand?
regards,
Paul Watson
South Africa
PMW Photography
Gary Wheeler wrote:
It's people like you that keep me heading for my big debut on CNN...
|
|
|
|
|
No, I live in Ericsson-land. Nokia is Finnish, Ericsson is Swedish. (Well it's 50% Swedish and 50% Japanese now)
--
An eye for an eye will only make the world blind.
|
|
|
|
|
Jörgen Sigvardsson wrote:
Nokia is Finnish, Ericsson is Swedish
And both Finland and Sweden are in Denmark right?
Jonathan Newman
blog.nonny.com [^]
|
|
|
|
|
I always suspected that there were something rotten in the state of Denmark...
|
|
|
|