Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


So I herd C++ has no runtime enviroment.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Nov 21, 2008 11:13 pm    Post subject: So I herd C++ has no runtime enviroment. Reply with quote

This means it's faster than Java and C#, correct?
So you could either make a game in Java or C# and it'd be cross platform so you could release a universal executable.
OR, you could make it in C++, and compile individual executables for different platforms.
It'd be a TINY inconvenience for the player, and the game would run faster overall.
And I don't see how that would affect online play, you could still build a MMO.
Amrite?
Just started reading my book on C++ so I'm learning...
Also, what's the best compiler for just typing in notepad and saving as .cc?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Nov 21, 2008 11:22 pm    Post subject: Reply with quote

It can be faster because it's straight up native code.

C++ can be cross platform, just look at the Quake games for example. They are absolutely everywhere, on phones, on all kinds of OS's... but you'll be using OpenGL for the renderer.

Also, there is a runtime of sorts, but it's usually distributed, or statically linked. You do not NEED to use it... but you'll be left handling some things your self. (and you get the added bonus of a ridiculously small executable)

Java and C# can be plenty fast, I wouldn't doubt that good Java / C# code could outpace shit C++. There's a Java version of Quake 2 somewhere, which is pretty close to the original C code in terms of speed, not to mention there's probably assembly code everywhere in the original code, since speed was so important then.
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Nov 21, 2008 11:30 pm    Post subject: Reply with quote

But there is a difference.
Which means I'm learning something.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sat Nov 22, 2008 3:42 am    Post subject: Reply with quote

C#/Java are interpreted languages which means they are nothing but scripts that run of programs.. java programs run of java.exe and C# runs of .NET framework runs on your pc 24\7 as a service (hidden exe) and scripts just load on it when you open your programs written in C#.

Now C++ if you write a program in that it aint a script anymore it gets translated into assembly and runs straight to CPU and a few common runtime dll files for api calls but those are just for wrapping for functions to write text on console and stuff..

anyways C++ is much faster and cannot be compared to C#/Java as those are not really programming languages.

But Java has applets which work in browsers and C++ doesn't but.. you could still code your own applet (DivX on website player was coded in C++).

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Nov 22, 2008 4:00 am    Post subject: Reply with quote

pkedpker wrote:
C#/Java are interpreted languages which means they are nothing but scripts that run of programs.. java programs run of java.exe and C# runs of .NET framework runs on your pc 24\7 as a service (hidden exe) and scripts just load on it when you open your programs written in C#.

Now C++ if you write a program in that it aint a script anymore it gets translated into assembly and runs straight to CPU and a few common runtime dll files for api calls but those are just for wrapping for functions to write text on console and stuff..

anyways C++ is much faster and cannot be compared to C#/Java as those are not really programming languages.

But Java has applets which work in browsers and C++ doesn't but.. you could still code your own applet (DivX on website player was coded in C++).


.NET languages are JIT compiled to machine code all the same. If you feel so inclined, you can even look at the generated assembly. You can even run them through NGEN to avoid the JIT compilation.

The CRT does a lot more than just wrapping a few functions...

Java / managed code really isn't as slow as you might think.

http://bytonic.de/html/benchmarks.html
http://www.vertigosoftware.com/Quake2.htm

What.
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Sat Nov 22, 2008 4:38 am    Post subject: Reply with quote

pkedpker wrote:
C#/Java are interpreted languages which means they are nothing but scripts that run of programs.. java programs run of java.exe and C# runs of .NET framework runs on your pc 24\7 as a service (hidden exe) and scripts just load on it when you open your programs written in C#.

Now C++ if you write a program in that it aint a script anymore it gets translated into assembly and runs straight to CPU and a few common runtime dll files for api calls but those are just for wrapping for functions to write text on console and stuff..

anyways C++ is much faster and cannot be compared to C#/Java as those are not really programming languages.

But Java has applets which work in browsers and C++ doesn't but.. you could still code your own applet (DivX on website player was coded in C++).


If they aren't programming languages then what are they?
Back to top
View user's profile Send private message MSN Messenger
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Sat Nov 22, 2008 5:05 pm    Post subject: Reply with quote

He wants to say they are 'scripting languages' but that would be claiming that Python, Perl, Lisp et al are not programming languages.

Also, Java and .NET are compiled into bytecode and are therefore not interpreted. They are virtual machine languages - the compiler compiles them into the machine language of a machine that doesn't actually exist. They are then run on an emulator for that machine (JVM, CLR runtime).

Slov, Quake2 and Quake3 are pure C fyi Very Happy.

_________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sat Nov 22, 2008 6:22 pm    Post subject: Reply with quote

nog_lorp wrote:
Slov, Quake2 and Quake3 are pure C fyi Very Happy.


I know, and lots of assembly bits, if I remember right (especially within the renderer). Point still stands though. Smile
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Sat Nov 22, 2008 6:34 pm    Post subject: Reply with quote

So arrite.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Sat Nov 22, 2008 11:09 pm    Post subject: Reply with quote

I can tell you right of the bat why you are wrong and yes the Java/Perl/C# (all .NET's) are interpreted and are scripting languages.


There is a simple way to test this out..

All interpreted languages stay the same when you press the compile button they just get compressed into bytes so it would look like machine code.

But all interpreted languages such as Java Perl C# all have decompilers which means you could easily decompile it back to source code.. by a use of these public software.

Now can C/C++ be decompiled I haven't seen any thats bacause C/C++ does it differently it transforms it into CPU language not just into unreadable symbols so you pretty much got a new language from that point on.

And to decompile that language would be only possible if you could program a human brain into the computer to do your tasks of decompilng assembly code to C/C++.

Now for Java/C#/Perl you don't need to program any brain to do that because all the parts are still they are just compressed.. so how do you decompress a winrar file? you run it threw UnRar.exe.

Thats the big difference.

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Sun Nov 23, 2008 12:04 am    Post subject: Reply with quote

pkedpker wrote:
I can tell you right of the bat why you are wrong and yes the Java/Perl/C# (all .NET's) are interpreted and are scripting languages.


There is a simple way to test this out..

All interpreted languages stay the same when you press the compile button they just get compressed into bytes so it would look like machine code.

But all interpreted languages such as Java Perl C# all have decompilers which means you could easily decompile it back to source code.. by a use of these public software.

Now can C/C++ be decompiled I haven't seen any thats bacause C/C++ does it differently it transforms it into CPU language not just into unreadable symbols so you pretty much got a new language from that point on.

And to decompile that language would be only possible if you could program a human brain into the computer to do your tasks of decompilng assembly code to C/C++.

Now for Java/C#/Perl you don't need to program any brain to do that because all the parts are still they are just compressed.. so how do you decompress a winrar file? you run it threw UnRar.exe.

Thats the big difference.
You're an idiot. How do you think Java/C# actually manages to run? At some point in time it MUST translate to assembly. nog knows what he's talking about as well.
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Nov 23, 2008 12:17 am    Post subject: Reply with quote

pkedpker wrote:
I can tell you right of the bat why you are wrong and yes the Java/Perl/C# (all .NET's) are interpreted and are scripting languages.


There is a simple way to test this out..

All interpreted languages stay the same when you press the compile button they just get compressed into bytes so it would look like machine code.

But all interpreted languages such as Java Perl C# all have decompilers which means you could easily decompile it back to source code.. by a use of these public software.

Now can C/C++ be decompiled I haven't seen any thats bacause C/C++ does it differently it transforms it into CPU language not just into unreadable symbols so you pretty much got a new language from that point on.

And to decompile that language would be only possible if you could program a human brain into the computer to do your tasks of decompilng assembly code to C/C++.

Now for Java/C#/Perl you don't need to program any brain to do that because all the parts are still they are just compressed.. so how do you decompress a winrar file? you run it threw UnRar.exe.

Thats the big difference.


wtf, no.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites