Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008, 09:56 PM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
Hello from DanielStoner :)
Hi everybody,

I just joined this community today and I found it fun to browse through the topics and help here and there.

About myself, I am a software designer with some years of experience (say 17 oops this makes me feel ancient in this young world) and I started using Java in a consistent way about 9-10 years ago. But Java is such a vast field now that no amount of years can give one experience in all its aspects.

One of my reasons for joining is to try to get some feedback from community members about my programming oriented site (in blog form for now): Little Tutorials

Enjoy your cup of Java!
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2008, 05:40 AM
roots's Avatar
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 260
roots is on a distinguished road
Nice images by the side .. keep it up ..
__________________
dont worry newbie, we got you covered.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-28-2008, 09:14 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 386
Zosden is on a distinguished road
May I ask why you still program in Java. I understand its easier to write in then c++, but its also forty times slower.
__________________
My IP address is 127.0.0.1
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-30-2008, 01:44 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
Sorry Zosden but Java is not 40 times slower than C++. Again this is a myth from early days of Java 10 years back. Today Java is maybe 6-10% slower than C++ in benchmarks. But to get C++ that fast you have to be a real wizard. In practice the traps in C++ make the average programmer less efficient and also its code less efficient and more error prone. Keep in mind the average programmer in C++ has to compete with the programmers specialized in optimization techniques who implement the JVM and the HotSpot type compilers. While the C++ does a static compilation and the optimizations based on information available at compile time, the just in time compilers in Java have the opportunity to optimize the code based on information available at runtime. For example the compiler might decide to move a variable from the stack into a processor register for faster access if that variable is used a lot. In C++ you are stuck with what resulted from the static compilation. I believe on the server side at least Java makes programmers 10 times more efficient mainly because they don't need to manage memory. Also Java becomes faster and faster at runtime due to advancements in JIT compilers and the JVM. So this is why I still work in Java even if in the past I used for years C/C++. Keep in mind that when I started to use computers I had to use punched cards so I used lots of stuff probably nobody remembers about.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought

Last edited by danielstoner : 04-30-2008 at 01:46 AM.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-30-2008, 02:29 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 386
Zosden is on a distinguished road
This is not true though. C++ can work directly with windows whereas Java has to always go through the JVM this extra step does make it slower. By the way have you ever used a program that was made in Java they are always slow and sluggish because of the extra step and the garbage collect whereas in c++ you end up with massive memory leaks if your inexperienced.
__________________
My IP address is 127.0.0.1
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 04-30-2008, 05:10 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,042
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Hi Daniel,

Welcome to our community.

It's really nice to see a person like you here in our community. Your experience really helpful for all of our members. See around pal.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 05-03-2008, 05:12 PM
Member
 
Join Date: May 2008
Posts: 2
aquaman is on a distinguished road
I remember punch cards
I remember punch cards stacks of them, cool neato stuff. Should have kept some of them for relics sake.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 05-03-2008, 11:19 PM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 183
danielstoner is on a distinguished road
@Zosden,

Performance has many meanings. If you talk about startup time, yes usually a small Java application is way slower than a small C++ application because the whole JVM is loaded. But this is not an issue for most applications.

On the server side it doesn't really matter because the servers start once and they should run extended periods of time after that.

Java code also runs slower in the beginning while it is still interpreted by the JVM. If the operation is only executed once or just a few times then probably the JIT doesn't store the native code translation for later use.

On the other hand the important pieces of code that are run over and over are actually native code and they run very very fast. The JVM and the JIT do amazing things to your code at runtime so the performance of Java code is usually, in real world situations, better than C++ code.

Please read more on the subject before claiming that Java is 40 times slower than C++.

Here is a very instructive link: Java theory and practice: Urban performance legends, revisited

Another feature usually blamed for Java slowness is the garbage collector. But the reality is that most serious C++ applications use garbage collection libraries .
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 05-04-2008, 06:48 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 839
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Welcome daniel.

Zosden, your claim should be included with proof before your final judgment, the points daniel makes are clear. Finally, please take this debate to another sub-forum vs. an "Introductions" forum. This is not a way to welcome new members, even though I'm sure daniel has not minded the fun.

See you around daniel!
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 09:13 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org