1
General / Re: Deciding on a language
« on: August 11, 2014, 03:40:52 pm »Quote
I'm planning on writing a graphical program using SFML for the first time. The only language I know is javascript, so I have to learn a new programming language for this project. I want something simple and efficient, so Golang and Python both look appealing to me.From your post I suspect you are very new to programming, so forgive me if my assumption is incorrect.
You shouldn't be worrying (too much) about efficiency, it is unlikely to be a limiting factor in any program a beginner would write. If you find your code is slow, a poorly written algorithm will be the culprit 99% of the time unless you are doing something very ambitious. As an aside, python is quite a slow language (although very elegant).
I would also strongly recommend against learning go-lang. As a new language it lacks the learning materials (books, tutorials, source-examples) that more established languages have. Picking something more mainstream will make your life easier.
Quote
I'm wondering about performance, because I will most likely be rendering 3D graphics and doing physics math.
SFML doesn't support 3D, and you would be better off starting with 2D games anyway. Don't underestimate how challenging they can be. If you don't believe me, try and make a polished clone of a popular 2d game like super mario bros.
Python is my favourite language and for simple games it will suffice. However, it isn't well suited to hardcore graphics/physics programming which is more the domain of c++.
C# is a good in-between, very modern, and has some great engines in xna/monogame and unity.
Good luck with whatever you choose