473,756 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java's performance far better that optimized C++

133 8573
So there are something that may be do in C++ and not in Java?


writing an OS ( Kernel ) ?
Jul 22 '05 #11
Jorge Rivera wrote:
[...]
How many of you guys actually work on projects in which performance is
critical? (Something written in Java is unacceptable)
In every application (unless it's a really simple one) there are critical
parts where performance is paramount. Whether performance takes front
seat in that case is up to the managers. I've worked on systems where
performance-critical parts were written in C++ (and the rest in Java) and
where everything was required to be written in Java (and the performance-
critical parts were licked out as good as it gets in Java).
I see value in both languages, however, it appears as though many people
immediately dismiss Java, regardless of the scope and requirements of
the project.


"All generalisations are wrong" -- unknown author. You would have to
put some numbers showing what you mean by "many". Is 10 out of 100000
-- many? IOW, how many is "many"? During my career I've never seen or
spoken to anyone who'd "immediatel y dismiss Java". And, believe me,
I've spoken to _many_.

V
Jul 22 '05 #12
Rainer Hausbach wrote:
So there are something that may be do in C++ and not in Java?


writing an OS ( Kernel ) ?


The "Church Thesis" or "Turing-machine-computable" or ...
.... means anything to you?

- Dario
Jul 22 '05 #13

"Gaurav" <ga********@yah oo.com> wrote in message
news:71******** *************** ***@posting.goo gle.com...
http://www.sys-con.com/story/print.cfm?storyid=45250

Any comments?

Thanks
Gaurav


Have you seen the size of the programs he is running? This is no
comparison, as the JVM may be much faster since the environment is already
loaded into memory. If he was medium to large scale projects, I would be
more keen to read the results.
Allan
Jul 22 '05 #14
> >> So there are something that may be do in C++ and not in Java?

writing an OS ( Kernel ) ?
The "Church Thesis"


nope.
or "Turing-machine-computable" or ...
... means anything to you?
partially (that's the way lots of cpu's work)


so please:
-verbose

TIA
Rainer
Jul 22 '05 #15
> So there are something that may be do in C++ and not in Java?
Interesting...

Please give me your curriculum, so I can hire you in my company!


Well, how about:

long a, b, double c;
memcpy(&c, a, 4); memcpy(&c+4, b, 4);

or:

template <class T> T& min(T &tParam1, T &tParam2) ...

or:
#ifndef DONT_WANT_THIS
gagagugu
#endif

Jul 22 '05 #16
In article <2j************ @uni-berlin.de>,
"Gernot Frisch" <Me@Privacy.net > wrote:
Next, gcc 3.3 is not really a good optimizing compiler. Better than
2.95, but not as good as say the intel or the codewarrior compilers.


Interesting. I heard good things about the Intel compiler, so I
downloaded a demo and compiled my code with it (simulation, physics,
lots of object creation/destruction). And I found the code generated by
Intel to be 10% slower than that from GCC 2.95. That was one year ago.
Of course, I used the maximum machine specific optimization flags on
both compilers.
Jul 22 '05 #17
> Interesting. I heard good things about the Intel compiler, so I
downloaded a demo and compiled my code with it (simulation, physics,
lots of object creation/destruction). And I found the code generated by Intel to be 10% slower than that from GCC 2.95. That was one year ago. Of course, I used the maximum machine specific optimization flags on
both compilers.


I use the GCC 3.4 vs the VS.net 7.1 compiler (which is from intel I
think) and it gives me you experience in reverse...
Maybe this is an ethic question? :)

-Gernot
Jul 22 '05 #18
I use the GCC 3.4 vs the VS.net 7.1 compiler (which is from intel I
think) and it gives me you experience in reverse...
Maybe this is an ethic question? :)


VC++ compiler is from Microsoft and Intel C++ compiler is from.. well,
obviously Intel.
Jul 22 '05 #19
In every application (unless it's a really simple one) there are critical
parts where performance is paramount.
An here is the contradction: "All generalisations are wrong" -- unknown author. You would have to
put some numbers showing what you mean by "many". Is 10 out of 100000
-- many? IOW, how many is "many"?
During my career I've never seen or
spoken to anyone who'd "immediatel y dismiss Java". And, believe me,
I've spoken to _many_.


I did. All of them are VC++ programmers.
Jul 22 '05 #20

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

114
9878
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
11
9267
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9872
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.