Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (-1) | Shanky.com
C++ or Java?
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  RAR-Archive Splitting? Post :: Post Check This out tell me if you like  View next topic  
Author Message
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Mon May 22, 2006 12:12 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
1. Java can do some things faster than C++ because it's interpreted (if you find this hard to believe, think for a moment).


Done thinking. Give me a clue.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon May 22, 2006 11:48 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

If there is only one non-abstract class in existance of a certain superclass, Java doesn't have to do virtual function table lookups, it just compiles the function pointer straight into the code (or inlines it). Of course this compiled code is discarded by the JVM if another non-abstract class comes into play. But with C++, a virtual function always involves a virtual function table lookup.

EDIT: was missing a word
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Mon May 22, 2006 5:15 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Ok, but that's hardly a reason to use Java "for speed". It's still slower overall in every way from a functional point of view.
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon May 22, 2006 6:03 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

No, but JVMs are getting smarter every day.

The difference between a console Java program and a C++ one is not notacable except in certain rare circumstances (doing extremely varied computations (just a simple computation over and over would get compiled to native by the JVM and run the same as C++)).

The differences between C++ and Java GUIs *is* humanly noticable, but this is where I point out that Java GUIs can be developed in a fraction of the time. Unless you're coding professionally (and sometimes even then), the slower GUI is quite worth the quick development time.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon May 22, 2006 7:10 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Brain wrote:
The differences between C++ and Java GUIs *is* humanly noticable, but this is where I point out that Java GUIs can be developed in a fraction of the time. Unless you're coding professionally (and sometimes even then), the slower GUI is quite worth the quick development time.

Which is why I really don't understand the current trend towards Java servers.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon May 22, 2006 7:26 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

The server side JVM is extremely good at what it does. Server programs run for a long time, so the JVM actually takes the time to compile and heavily optimize the native code it generates. This means that for all intents and purposes the server side programs run every bit as fast as C++ programs, but with all the niceities of the Java language.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
SamHughes
Server Help Squatter


Joined: Jun 30 2004
Posts: 252
Location: Greenwich
Offline

PostPosted: Mon May 22, 2006 8:39 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Cyan~Fire wrote:
Which is why I really don't understand the current trend towards Java servers.


Where do you think the bottleneck on the server side is? It's not the programming language, it's the network and storage. There's no point in skimming a few microseconds off the time it takes to call some 10 ms database query, if it requires any amount of extra human labor.
Back to top
View users profile Send private message Add User to Ignore List
SpecShip
Complete twat


Gender:Gender:Male
Joined: Dec 17 2005
Posts: 514
Location: 8025 - Spec Freq
Offline

PostPosted: Tue May 23, 2006 4:36 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

You can lead a horse to water, you may even force it to drink but all the kick ass games and their servers are still being made in C++ and runescape is gay java crap that UO laughs about at nights.
_________________
Replacing yazour untill the whore returns.

"I could run a ss server on my car stereo!" -Xalimar
"Liberta tuit ma ex infernis" -Event Horizon
"I know too much about nothing." - Mine GO BOOM
"Hmm anyway, back to my kingdom hearts." - Chambahs
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 485 page(s) served in previous 5 minutes.

phpBB Created this page in 0.117868 seconds : 28 queries executed (42.1%): GZIP compression disabled