Announcement

Collapse
No announcement yet.

Unvanquished Begins Landing C++11 Engine Rewrite

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unvanquished Begins Landing C++11 Engine Rewrite

    Phoronix: Unvanquished Begins Landing C++11 Engine Rewrite

    While the open-source Unvanquished game's Daemon Engine began as a fork of the ioquake3 engine, it's morphed into a radically different and more advanced creation. As noted recently, the Unvanquished developers are in the process of overhauling the engine and rewriting significant portions of the code. That code is now beginning to land...

    http://www.phoronix.com/vr.php?view=MTUyNzc

  • #2
    Any reason they didn't want to move to C99/C11?

    Comment


    • #3
      Originally posted by Marc Driftmeyer View Post
      Any reason they didn't want to move to C99/C11?
      I think is all related with their experience of C++. Otherwise they would use the best choice: Python, obviously.

      Comment


      • #4
        Originally posted by Marc Driftmeyer View Post
        Any reason they didn't want to move to C99/C11?
        C++ is a safer language, is backward compatible, oop is not an afterthought,
        performance is comparable if not the same, and critical portions can still be
        C and/or even asm. Also there are more people that have some kind of C++
        background. The last, but not least, number of LOC is going to be smaller.

        Comment


        • #5
          Originally posted by Marc Driftmeyer View Post
          Any reason they didn't want to move to C99/C11?
          I guess that's because of flaky compiler support, specially MSVC.


          Originally posted by clavko View Post
          C++ is a safer language, is backward compatible, oop is not an afterthought,
          performance is comparable if not the same, and critical portions can still be
          C and/or even asm. Also there are more people that have some kind of C++
          background. The last, but not least, number of LOC is going to be smaller.
          Problem with C++ is that it's very easy to write overcomplicated, obfuscated and hard to understand code if not careful. C version will be lengthier but easier to understand and debug by newbies.

          Comment


          • #6
            Originally posted by siavashserver View Post
            I guess that's because of flaky compiler support, specially MSVC.


            Problem with C++ is that it's very easy to write overcomplicated, obfuscated and hard to understand code if not careful. C version will be lengthier but easier to understand and debug by newbies.
            No, modern c++ is a lot easier language than c. Do you also think python is harder than c?

            Comment


            • #7
              Originally posted by Marc Driftmeyer View Post
              Any reason they didn't want to move to C99/C11?
              Because you can write C in C++, even just using C++ simply for templates is a step up.

              Comment


              • #8
                Originally posted by siavashserver View Post
                Problem with C++ is that it's very easy to write overcomplicated, obfuscated and hard to understand code if not careful. C version will be lengthier but easier to understand and debug by newbies.
                Not being careful is going to hurt substantially more with C than with C++,
                just when you start wrangling pointers and managing memory... scary. A good
                programming language will help you focus on your task, minimum boilerplate.
                C++ is not ideal, however it's a million miles voyage apart from C. Personally,
                I can't see how anyone could consider C code easier to understand, write or debug,
                provided he's had enough exposure to both to make an informed decision.

                Comment


                • #9
                  Originally posted by Marc Driftmeyer View Post
                  Any reason they didn't want to move to C99/C11?
                  for a small team C++11 is a better choice than C. it's more maintainable

                  Comment


                  • #10
                    C++, C, what's with all this high level crap? They should have used assembler.

                    Comment


                    • #11
                      Originally posted by dee. View Post
                      C++, C, what's with all this high level crap? They should have used assembler.
                      Pfft, real men write the binary themselves. Amateurs.

                      Comment


                      • #12
                        Lol, another day, another pointless debate on programming languages.

                        Comment


                        • #13
                          Originally posted by dh04000 View Post
                          Lol, another day, another pointless debate on programming languages.
                          By more or less the usual suspects.

                          Comment


                          • #14
                            Originally posted by ciplogic View Post
                            I think is all related with their experience of C++. Otherwise they would use the best choice: Python, obviously.
                            Python is slow compared to binary compiled source code. That's not suitable for this king of project, which every frame is crutial.

                            C++11 is less obfuscated than older C++ and C. I think it's a really good choice for a game.

                            Comment


                            • #15
                              Originally posted by siavashserver View Post
                              I guess that's because of flaky compiler support, specially MSVC.
                              That's probably a big reason, too. MSVC doesn't even support the full C99 spec, at least until 2012 inclusive (that's the newest one I tried, and it gave errors when trying to build a project using some C99 features). I doubt that got fixed for 2013, let alone supporting C11.

                              Originally posted by Daktyl198 View Post
                              Pfft, real men write the binary themselves. Amateurs.
                              Real programmers use butterflies.

                              Comment

                              Working...
                              X