Feedback about STL and irr::core

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.

Should Irrlicht replace irr::core containers with STL

Keep Irrlicht independent - no STL
2
8%
Go with the standards - switch to STL
19
79%
Use STL internally - never in the API
2
8%
Do what you want - don't care
1
4%
 
Total votes: 24

AReichl
Posts: 270
Joined: Wed Jul 13, 2011 2:34 pm

Re: Feedback about STL and irr::core

Post by AReichl »

> switch to C++11 + STL after v1.9

Very good.
I also would suggest to ditch compiler support below VS2010. There is a book about C++11 features in VS2010, which then would be the "minimum" C++11 features (or switch to VS2015 directly, considering the time the work will take).
I can take care of the CodeBlocks/gcc/MinGW combo.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Feedback about STL and irr::core

Post by CuteAlien »

We already ditched support for compiler below that in svn trunk. Not quite certain yet about which compilers we support ... right now I'm having the trouble that I'm not getting VS 2015 to work in parallel with older VS versions (I can use VS2015 to compile to older platform toolsets, but trying to use the new one fails because somehow the path to the new standard libraries is messed up when other VS versions are installed as well). But this is getting offtopic...

C++11 with threads might have the problem already mentioned - my current set of compilers will probably not yet support it.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Feedback about STL and irr::core

Post by Nadro »

In v1.9 we support VS2010 (mainly for Win XP users...), VS2012, VS2013 and VS2015. I think that in v2.0/v1.10 we should remove VS2010 and VS2012.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: Feedback about STL and irr::core

Post by devsh »

As long as you keep compatibility with whatever GCC version the newest CUDA SDK compiler is based off, and use C++x11 in a way that doesn't collide with CUDA.... I dont give a poop!
polylux
Posts: 267
Joined: Thu Aug 27, 2009 12:39 pm
Location: EU

Re: Feedback about STL and irr::core

Post by polylux »

Agreed, I think aswell it's a good decision. Nice, then I'll be able to range-based crawl over everything! :)
beer->setMotivationCallback(this);
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Feedback about STL and irr::core

Post by REDDemon »

I think the best option would be someting like I did in my toy engine. Use STL but imported in another namespace. That will allow to plugin custom allocators more easily (if someone want ever to do that), you avoid namespace pollution and possibly you reduce breaking changes (if somewhere in the code a method name does not change...).. Having that one extra header gives the chance to decouple from STL later (what if someone want to use EASTL?)

reference:

https://github.com/Darelbi/Bade3D/blob/ ... tdList.hpp

http://www.gamedev.net/page/resources/_ ... roof-r4229

note that what suggested in the article is generally bad practise, it can come usefull in few cases (like this one).

However i think that will be really a major work/change in irrlicht, the smaller the Api will be used to make it easy to change STL later, the greatest the discipline required.

The bad point is that allocators are (my opinion) a flawed concept in STL, EASTL is a good example in that.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply