The Following User Says Thank You to attila77 For This Useful Post: | ||
|
2011-01-29
, 13:45
|
|
Posts: 3,524 |
Thanked: 2,958 times |
Joined on Oct 2007
@ Delta Quadrant
|
#82
|
For tl;dr people: the holy grail of run-anywhere binaries have (nearly) nothing to do with the language, it's about platform/OS abstraction.
*snip*
|
2011-01-29
, 13:49
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#83
|
This is where all these discussions get derailed. You start comparing the Java platform with the C++ language.
|
2011-01-29
, 14:16
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#84
|
I'm not arguing capability, but reality.
The rest is conversation drift. I stand by my assertions about developers being particular to their environments and that write-once applications have a tendency to be tied to a particular language.
A program that is not run will perform equally well no matter what language is used (speed == 0). If any comment is to be made about how "fast" or "slow" it is, the environment it is run in must be included
The Following User Says Thank You to attila77 For This Useful Post: | ||
|
2011-01-30
, 02:26
|
Posts: 303 |
Thanked: 146 times |
Joined on Aug 2009
|
#86
|
Ok, so you're ignorant about Java. Fair enough.
But if you're ignorant about it, what do you know that you dislike?
You can use compiled C libraries from Java. Just Google it and lessen that ignorance.
The endless speed debate. Java, on the other hand, offers great ways to optimize your running binary by inspecting it which isn't possible in C++. There are nice Java3D bindings using available 3D hardware so you're left with (real) speed differences when it comes to number crunching. How does that apply to you as a "desktop developer"?
How does the CPU type affect this? How is that relevant?
|
2011-01-30
, 10:02
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#87
|
No, you have no idea about programming.
The fact that you can use SOME C libraries in Java doesn't help you that much when the goal of Java is "write once, run everywhere", now does it?
If you can use your C code on other platforms, why use Java for portability in the first place?
Yes, in theory Java is as fast or faster than C++, which is in theory faster than ASM (because hey, the compiler can do stuff better than humans do).
In reality, this is a silly argument, Java and .NET is noticeably slower than C/C++.
ARM CPUs are optimized for low power, not for speed. If you use a VM rather than native code your application is going to be even slower. You don't have the horsepower of a X86 CPU.
The Following User Says Thank You to Joorin For This Useful Post: | ||
|
2011-01-30
, 15:56
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#88
|
On top of that, having as much of the code as possible written in <favorite application framework/platfom> makes it easier to move the code to another <favorite application framework/platfom> platform. You will still need to port the <legacy> parts, but by keeping that bit as small as possible it becomes manageable.
|
2011-01-30
, 18:16
|
Posts: 726 |
Thanked: 345 times |
Joined on Apr 2010
@ Sweden
|
#89
|
The Following User Says Thank You to Joorin For This Useful Post: | ||
|
2011-01-31
, 01:26
|
Posts: 303 |
Thanked: 146 times |
Joined on Aug 2009
|
#90
|
No trolling. Really. You say that you don't know Java but that you don't like it. This really makes me wonder what you actually do know to make you dislike it.
I assure you, I do have "an idea" about programming. And more than that. No need for ad hominem nonsense.
How did the "goal of Java" become relevant? How it actually works is more important. To be able to use snippets of C code actually increases the chances that the rest can be "pure Java".
And, being able to use native code for the heavy number crunching and Java for the rest actually lets you write pretty portable Java code for everything but the most CPU intensive parts.
If you take a look at Android, to name one, the APIs available out of the box differs between native binaries and Java applications.
On top of that, having as much of the code as possible written in Java makes it easier to move the code to another Java platform. You will still need to port the C parts, but by keeping that bit as small as possible it becomes manageable.
I don't know of any compiler that can beat the speed of hand coded assembler unless you're talking of larger frame optimizations. But for "ordinary use", I do agree on the compiler being very good at generating fast code.
With you being a "desktop developer", how did you come to this realization? A widget taking 74ms to update instead of 61ms?
1Ghz ARM CPUs offer some kick, though. And the benefits of Java/.NET might very well be worth the potential loss of milliseconds in update time.
Tags |
bada rox, dalvik, future, java haters, meego, meego?fail, nokia, sandbox sucks |
Thread Tools | |
|
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc