Live data from Hacker News

Electronic Arts Standard Template Library for C++ Open Sourced

github.com

1–10 of 60 posts

Re: Electronic Arts Standard Template Library for C++ Open Sourced

#3
STL is maybe a bit missleading because it doesn't seem like it is a drop-in replacement for the STL.

However, this is certainly interesting because the emphasis on speed (and thus also on simplicity) is what I'm sometimes missing in the real STL or in Boost. That's exactly what you need in a game but also in much other performance critical code.

As far as I remember, Chrome has used the STL earlier. But I looked now and I see this: https://chromium.googlesource.com/chromium/blink/+/master/So...

Gecko also seem to have a lot of custom stuff: https://github.com/mozilla/gecko-dev/tree/master/xpcom/strin...

Doom3 idLib: https://github.com/id-Software/DOOM-3-BFG/tree/master/neo/id...

Unreal engine: https://answers.unrealengine.com/questions/2695/rocket-and-t...

You'll find much more similar libs when you search in some of the big games.

Re: Electronic Arts Standard Template Library for C++ Open Sourced

#9

This was open sourced years ago on the EA open source page: http://j.mp/1Kh4L2C It's just on Github now.

The previously released version was significantly incomplete (it only included what was needed for the copy of webkit they embedded in some games), was years out of date, and was GPL rather than BSD.

Re: Electronic Arts Standard Template Library for C++ Open Sourced

#10

STL is maybe a bit missleading because it doesn't seem like it is a drop-in replacement for the STL. However, this is certainly interesting because the emphasis on speed (and thus also on simplicity) is what I'm sometimes missing in the real STL or in Boost. That's exactly what you need in a game but also in much other performance critical code. As far as I remember, Chrome has used the STL earlier. But I looked now…

What parts of the EASTL are faster than the normal STL? Does it have better maps?

Edit: From a look at the source it definitely at least has some extra map classes for more specialized uses.

Post reply on HN