Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java and C++

Name: Anonymous 2012-02-09 6:00

fucking explain fluently why C++ is better than Java and Java will never be used for real games like Assasins creed Battlefield Diablo starcraft 2 fucking 0.001% of the awesome games c++ made.

But ye i need to explain to my friend that java is good and all but c++ is just better eod.

Name: Anonymous 2012-02-09 6:14

Wrong. kisses

Name: Anonymous 2012-02-09 6:53

Tell your friend to read SICP, and that all games should be programmed in Scheme.

Name: Anonymous 2012-02-09 6:53

It's not "just better", nooblet.

Programming languages serve different purposes, that's why there are so many of them. C++ is better suited for certain tasks than Java and vice versa.

Games are a special domain of realtime computing, imposing certain constraints like a guaranteed maximum time spent computing and rendering a frame. C++ does not do anything behind its curtains (unlike Java), therefore you have better control of how much, when and where you spend your cpu cycles. That's the reason why AAA games use C++.

On the other hand, programming enterprise software in C++ is a waste of time, because the user usually does not care if his request is served in 0.0001 or 0.001 seconds. You get the point.

Name: Anonymous 2012-02-09 7:39

i actually am a nooblet^
and seems like a fairly simple response there

Name: Anonymous 2012-02-09 7:51

>>4
Most engines are driven by scripting languages.

>>1
Unless you're writing an engine, there's no need for C++.

Name: Anonymous 2012-02-09 8:04

arent most people who are making games writing a engine.... :p?

Name: Anonymous 2012-02-09 8:40

>>6

That is true and not contradicting >>4

Even if games a driven by scripting languages, the cpu spends nearly all of its time in the C++ part of the engine/game, thus making it the crucial part for AAA games.

Name: Anonymous 2012-02-09 9:05

>>7
No?

>>8
You're supporting a claim that C++ is better than Java for games.
But games are much more than engines, and Java could be better than C++ in other modules.

Name: Anonymous 2012-02-09 9:28

Lisp > © > ©++  > JAVA > ©#

Name: Anonymous 2012-02-09 9:34

>>9
AAA Games, not retarded "What if everything is a block lol so rundum" shit who care a shit about performance

Name: Anonymous 2012-02-09 9:53

>>9

I am not "supporting a claim that C++ is better than Java for games". Again, different programming languages serve different purposes.

I gave the reason why currently C++ is the dominant language used in the development of AAA games.

Name: Anonymous 2012-02-09 10:19

>>11
You don't need real-time performance to load levels, menus, configuration, updater and a some other stuff.

>>12
Ok, but it's even weird that people had chosen C++ before C++98 became common.

Name: Anonymous 2012-02-09 10:31

>>13

Sometimes you do. E.g. GTA is streaming all necessary data while you play. But as mentioned before, a lot of game logic is done nowadays using scripting anyways.

It's not weird if you look at it historically. Before hardware accelerated graphics cards became common in the late 90ies, a lot of code was done in C with performance critical sections (like software rendering) in asm. Transitioning from C to C++ was easy despite the lack standardized C++, as there were no real alternatives back then.

Name: Anonymous 2012-02-09 14:21

""and Java will never be used for real games ""

Shitty inter-op with C++. Shitty installer. Shit language doesn't have delegates. The cultural that comes with the Java language is incompatible with coding for games.

Name: Anonymous 2012-02-09 14:37

>>15
Don't forget the GC.

Name: Anonymous 2012-02-09 16:02

>>16
GC is great. Java is shit.

Name: Anonymous 2012-02-09 16:46

Java's GC is shit.  It's optimised for high typical performance.  Which means that on a regular basis it has to spend a fuckton of time reorganising the heap.  You can't have that in a game.

Scripting languages (with GC even) are used in games.  But Java is too big for that and has poor integration with C/C++.  Lua on the other hand is easy to integrate with C/C++.  And C# (unity) interoperates well with C/C++ libraries.  Not to mention stack allocation, and the ability to manually control the lifetime of objects.

Name: Anonymous 2012-02-09 18:47

Name: Anonymous 2012-02-09 23:01

>>17
Both Java and GC are shit, fuck off and die faggot

Name: Anonymous 2012-02-10 1:02

>>20
GC is great. fuck off and die you fucking piece of shit

Name: Anonymous 2012-02-10 1:26

>>21
GC is for mental midgets who can't keep track of their own memory allocations.

Name: Anonymous 2012-02-10 4:19

>>22
If that's the case, nobody needs any language other than ASM. Higher level languages are for mental midgets who can't design real programs.

Name: Anonymous 2012-02-10 5:06

>>22
This.

Name: Anonymous 2012-02-10 8:59

>>22-24
shit quality trolling, fuck off

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List