Comments (6)
I'd agree with @swardle.
EASTL is indeed growing but I believe the growth has been manageable thus far with not that much duplicated code. I'd say most of the recently duplicated code I have a strategy to centralize it but I avoided doing so to prevent breaking users of our most commonly used types (eg. strings and vectors). It wasn't done for any kind of runtime or compile-time performance. I will be doing that work in the future as I bring other implementations online designed for that purpose, for example of eastl::char_traits.
The thought of preprocessing our code with an external tool (despite its popularity within the games industry) doesn't thrill me. I really wouldn't even consider a solution that involved the preprocessor. I'd rather deal with standards conforming C++ code being given to a compiler and not obscure the EASTL implementations at all unless there is really a compelling reason to do so. This is a feature that the community has told us they really appreciate about our implementation and I would hate to make contributing code/fixes to the library more difficult.
from eastl.
Absolutely. The standard is growing and we should keep this in the back of our minds. Thanks for starting the discussion.
from eastl.
from eastl.
from eastl.
With macros I meant not one that is handled by the c++ compiler, I meant one that is processed by an external tool, sorry if that wasn't clear.
And I think having a generator "manually" inline the code is not a bad solution, especially if it were to insert comments like what I've suggested. You're right in that it can break though, it's a trade off you have to think about, but I think it can be worth it considering the growing size of EASTL.
Offtopic: I really enjoyed your talk, lots to learn from it :)
from eastl.
Alright, I can respect that. Maybe this would be something to think about again later down the road.
from eastl.
Related Issues (20)
- Incorrect behaviour of vector (and other) with switched off exceptions HOT 1
- [MSVC][std:c++latest] EASTL failed to build with msvc due to error C2338 on Windows
- Eastl is susport windows kernel? HOT 1
- Building EASTL HOT 1
- [MSVC][std:c++latest] EASTL build failed due to error C2666: 'TestLruCacheInternal::Foo::operator ==': overloaded functions have similar conversions HOT 2
- intrusive_slist is not implemented
- No signed tarball for releases
- Build with Clang15 results in warnings about deprecated builtins HOT 1
- Inquiry about the expected behavior of the comparison operators in RingBuffer HOT 1
- compilation error due to `std::remove_reference` HOT 5
- Tests fail to compile: error: use of undeclared identifier 'getpid'
- Tests fail to compile: error: use of undeclared identifier 'pthread_attr_get_np'
- Tests fail to link: ld: error: undefined symbol: EA::EAMain::InitializeSignalHandler()
- Consider using reset() for fast container teardown - Best pratices HOT 2
- emscripten support? HOT 1
- [Question] Should eastl::unordered_set.reserve not check if a change is required?
- Error of RBTreeDecrement function HOT 3
- Move semantic dosn't work with eastl::list HOT 2
- Critical silent bug: vector push back of an own element moves it and calls a copy constructor on the invalidated reference HOT 1
- Overriding make_unique and default_delete HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eastl.