Git Product home page Git Product logo

Comments (6)

rparolin avatar rparolin commented on May 22, 2024 2

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.

rparolin avatar rparolin commented on May 22, 2024 1

Absolutely. The standard is growing and we should keep this in the back of our minds. Thanks for starting the discussion.

from eastl.

swardle avatar swardle commented on May 22, 2024 1

from eastl.

swardle avatar swardle commented on May 22, 2024

from eastl.

DragoonX6 avatar DragoonX6 commented on May 22, 2024

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.

DragoonX6 avatar DragoonX6 commented on May 22, 2024

Alright, I can respect that. Maybe this would be something to think about again later down the road.

from eastl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.