Page 1 of 2 12 LastLast
Results 1 to 10 of 23

Thread: Unvanquished Begins Landing C++11 Engine Rewrite

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    14,837

    Default 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. #2
    Join Date
    Oct 2012
    Location
    Washington State
    Posts
    462

    Default

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

  3. #3
    Join Date
    Nov 2009
    Location
    Madrid, Spain
    Posts
    398

    Default

    Quote 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.

  4. #4
    Join Date
    Apr 2013
    Posts
    108

    Default

    Quote 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.

  5. #5
    Join Date
    Nov 2009
    Location
    Madrid, Spain
    Posts
    398

    Default

    Quote Originally Posted by gufide View Post
    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.
    Python is not suitable for this "king" of project where every frame is "crutial" as much as there are solutions to overcome it (like Cython, ShedSkin, PyPy, etc.). Anyway, the idea was that people that contribute have something to say about the language to work with... people that don't, they shouldn't.

  6. #6
    Join Date
    Apr 2008
    Location
    Zagreb, Croatia
    Posts
    110

    Default

    Quote 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.

  7. #7
    Join Date
    Oct 2013
    Posts
    195

    Default

    Quote 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.


    Quote 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.

  8. #8
    Join Date
    Jul 2011
    Posts
    366

    Default

    Quote 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?

  9. #9
    Join Date
    Apr 2008
    Location
    Zagreb, Croatia
    Posts
    110

    Default

    Quote 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.

  10. #10
    Join Date
    Jan 2011
    Posts
    1,287

    Default

    Quote 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.

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •