Live data from Hacker News

Ask HN: If C++ is so bad, what should game developers use?

news.ycombinator.com

1–10 of 127 posts

Ask HN: If C++ is so bad, what should game developers use?

#1
I've been reading some of the C++ hate that's been on HN of late. I've been successfully convinced (not that it was hard) that C++ is a really terrible language. But, if that's the case, then what else are commercial game developers to use? Is pure C sufficient? What about Haskell, or is that too slow?

Re: Ask HN: If C++ is so bad, what should game developers use?

#3
post #2

What kind of game are you writing? If you're just a hobbyist, you might want to try a popular choice like python. (Pygame is insanely well known.)

I edited the original post. I'm interested in commercial game projects. Real games, the kinds that you see in shops for PS and XBox etc.

Re: Ask HN: If C++ is so bad, what should game developers use?

#5
post #2

What kind of game are you writing? If you're just a hobbyist, you might want to try a popular choice like python. (Pygame is insanely well known.)

I edited the original post. I'm interested in commercial game projects. Real games, the kinds that you see in shops for PS and XBox etc.

Use what most developers are using for the gaming platform of interest.

Re: Ask HN: If C++ is so bad, what should game developers use?

#7
post #5

Earlier quoted context omitted.

I edited the original post. I'm interested in commercial game projects. Real games, the kinds that you see in shops for PS and XBox etc.

Use what most developers are using for the gaming platform of interest.

Isn't that C++? (I'm not very learned, here, I'm really asking about this for a friend).

Re: Ask HN: If C++ is so bad, what should game developers use?

#9
I'm with you. Whatever you use, don't choose C++. Sure, everyone on your programming team knows C++ already. Yeah, your libraries are all written in it. And successful games have used it again and again. But if it's not one of the "cool" languages, you shouldn't be using it.

Modern game developers should code in Ruby/Lisp. By the time you've finished coding all of your graphics libraries from scratch, Moore's law will have made computers fast enough to run them.

Re: Ask HN: If C++ is so bad, what should game developers use?

#10

Don't let them scare you away... C++ is fine if you use what you need and take the time to actually understand the tools you're using.

Why is C++ suddenly "fine" when you have no other options? There could easily be a language with all the close-to-the-metal advantages and none of the baroque, redundant complexity of C++; why must we be content to use the same language as everyone else in the industry, rather that scratching this itch and building a newer, more productive one?
Post reply on HN