Welcome, Guest. Please login or register.

Author Topic: C vs C++ ... or whatever language  (Read 20897 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kamelito

Re: C vs C++ ... or whatever language
« on: February 07, 2018, 04:10:54 PM »
Objects another abstraction that do not comply (map) the underlying HW like assembly or C.
 

Offline kamelito

 

Offline kamelito

C vs C++ ... or whatever language
« Reply #2 on: February 09, 2018, 08:27:52 PM »
It is not denial IMO, in the game industry you've no choice if you're into maximum performance, C++ is the de facto standard. These guys are very talented and experienced developers. They just «suffer» from using C++. Jon Blow wrote that if he had written a new language and wrote The Witness with it, the game would have shipped sooner. Now he is writting it, it is called for now Jai. If you are interested look at his YouTube Channel.
« Last Edit: February 09, 2018, 08:34:34 PM by kamelito »
 

Offline kamelito

Re: C vs C++ ... or whatever language
« Reply #3 on: February 10, 2018, 02:51:39 PM »
@Dayntona, Hand & Thor
I don t think That shipping successfully 2 games like Braid and The Witness make him a bad C++ programmer. Check his YouTube channel or better ask him directly on Twitter.
It seems that not a single C++ book did a good job teaching how to program properly in C++. Who need a phone book size one to just scratch the surface? Why big games companies need to wrote their own STL implementation to have good performance?
« Last Edit: February 10, 2018, 02:56:33 PM by kamelito »
 

Offline kamelito

Re: C vs C++ ... or whatever language
« Reply #4 on: February 10, 2018, 11:04:05 PM »
Quote from: Mr_Capehill;836009
Which game companies rewrite the STL lib in 2015-2018? What exactly was the reason?

Something like std::vector is as fast as the C array.

C++ is a complex topic, that cannot be denied. But C++ today is also quite different to what it used to be. Check constexpr, auto, unique_ptr and ranged-for...


Performance was the reason, EA for example their implementation is now open source.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2271.html
 

Offline kamelito

Re: C vs C++ ... or whatever language
« Reply #5 on: February 10, 2018, 11:06:14 PM »
Quote from: Mr_Capehill;836009
Which game companies rewrite the STL lib in 2015-2018? What exactly was the reason?

Something like std::vector is as fast as the C array.

C++ is a complex topic, that cannot be denied. But C++ today is also quite different to what it used to be. Check constexpr, auto, unique_ptr and ranged-for...


Reasons explained in the link below, EA for example their implementation is now open source.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2271.html