element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products and Partners
    Products and Partners
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum Favorite Game Programming Language
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 33 subscribers
  • Views 1210 views
  • Users 0 members are here
Related

Favorite Game Programming Language

jds123
jds123 over 13 years ago

I am ordering a Raspberry Pi, and I was wondering which language is best for programming games, because I want to program and cannot decide which programming language to use. I am thinking either Python or C++ but I cannot choose. Ideas?

  • Sign in to reply
  • Cancel

Top Replies

  • oneleggedredcow
    oneleggedredcow over 13 years ago in reply to jds123 +1
    Awesome, in my opinion, OpenGL will be the hardest part. As a shameless plug, I'm writing a C++ tutorial .
Parents
  • oneleggedredcow
    0 oneleggedredcow over 13 years ago

    Python is a great choice for starting out.

     

    Depending on what your goals are, you might want to check out Scratch.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • oneleggedredcow
    0 oneleggedredcow over 13 years ago

    Python is a great choice for starting out.

     

    Depending on what your goals are, you might want to check out Scratch.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • jds123
    0 jds123 over 13 years ago in reply to oneleggedredcow

    I was thinking more along the lines of Minecraft or Legend of Zelda type games (the origionals). I have heard python is very easy to program in and I was wondering if the speed of C++ execution is worth the extra time in development. I can learn new languages quite well as I taught myself OpenGL and half taught myself JAVA.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oneleggedredcow
    0 oneleggedredcow over 13 years ago in reply to jds123

    Awesome, in my opinion, OpenGL will be the hardest part.

     

    As a shameless plug, I'm writing a C++ tutorial.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jds123
    0 jds123 over 13 years ago in reply to oneleggedredcow

    C++ seems like a great language, but is it really as fast as people claim? (I am not going to use JAVA because I strongly dislike the garbage collection)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • oneleggedredcow
    0 oneleggedredcow over 13 years ago in reply to jds123

    Because c++ is compiled to byte code and python is an intpreted language, c++ will be faster for a comparable program.  Sometimes the difference can be dramatic, other times it isn't that big of a deal.

     

    When it comes to performance, it is usually more about how you implement something rather than the language that you write it in.  Usually, the best way to go about things is to get a working prototype and then worry about making it faster/better.  So, I would concentrate on getting something that works how you want it to, and then find ways to improve it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • QuantumAberrant
    0 QuantumAberrant over 13 years ago in reply to oneleggedredcow

    "concentrate on getting something that works how you want it to"

    That really is the most important thing. I must though correct you on you terminology.

     

    C++, on most platforms, is a compiled language that turns source code into machine code not byte code.  Java is compiled to byte code for example. Machine code is specific to a single processor architecture (x86, ARM etc.), byte code is normally an abstract representation of machine code that could be executed on any cpu with the right runtime system. That said CPython, which is what is on the Pi, uses a "byte code virtual machine" meaning that it really is not an interpreted language in the traditional sense.

     

    I am not going to use JAVA because I strongly dislike the garbage collection

     

     

    Well jds123 then you won't like Python either as it also has a garbage collector. What are you writing that is so mission critical that you need to bother worrying about memory allocation manually?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jds123
    0 jds123 over 13 years ago in reply to QuantumAberrant

    Well in JAVA it removes unused variables quite inefficiently which causes lag. Also I think it would be good to learn how to deal with manual garbage collection, because it will allow me to make my programs more efficient for slower devices so it can run efficiently on slower devices such as the RasPI

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to oneleggedredcow

    Hi.

     

    I bought Pi to return to machine-level programming: I'm not an E.E., so I don't care anytthing about the hardware.

     

    I started out writing compliers and operating systems in the 60's: note: not USING compilers and operating systems, but writing them from scratch.

     

    What language is supported by Pi that I could use to get back to basic machine-level programming?  I don't really care if it's compiled or interpretive: simply what is an appropriate, supported language for Pi as of 3/1/2013? and where do I get it and information / documentation about how to learn and use it?

     

    Thanks:

     

    Bob McConnell 

     

    P.S. Remember Stretch?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • e14 Contributor
    0 e14 Contributor over 13 years ago in reply to e14 Contributor

    Hi Bob,

       Yes, remember Stretch and Harvest and compilers written in assembly language.

    Are you wanting a recommendation for an assembly language, or for a high-level

    language?  There are lots of languages available.  C is pretty low level if that's what

    you're looking for.  Python is a more modern interpreted language.  Javascript is

    interesting to learn for creating interactive web pages.

     

    There is a list here:

      http://elinux.org/RPi_Programming

     

    Since you aren't interested in the hardware, you should also consider that a PC

    would have the same languages available, but with better performing development

    environments.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • johnbeetem
    0 johnbeetem over 13 years ago in reply to e14 Contributor

    Robert McConnell wrote:

     

    I bought Pi to return to machine-level programming: I'm not an E.E., so I don't care anytthing about the hardware.

     

    I started out writing compliers and operating systems in the 60's: note: not USING compilers and operating systems, but writing them from scratch.

     

    What language is supported by Pi that I could use to get back to basic machine-level programming?  I don't really care if it's compiled or interpretive: simply what is an appropriate, supported language for Pi as of 3/1/2013? and where do I get it and information / documentation about how to learn and use it?

     

    It sounds like ANSI C is your best bet, since C lets you work close to the machine while using high-level notations.  The standard RasPi OS includes "gcc", the GNU C compiler.  (Strictly speaking, GCC stands for GNU Compiler Collection, but I think the RasPi binary has only been configured for C and C++.)  For learning C, there's good old Kernighan and Ritchie though others may have better suggestions.  GCC documentation is available for free (as in liberty) at http://www.gnu.org/doc/doc.html

     

    GCC includes an assembler "gas".  I haven't use it myself, so I don't know how much it diverges from standard ARM assembly language.  There are some good threads on ARM assembly language at raspberrypi.org.  Search for "ARM assembly" in the Google search box on the front page.  This thread has some good pointers to ARM assembly resources: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=2&t=2910

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube