3

C++ standard commitee please give us compile time strings and reflection. Why are you taking so much time?

Comments
  • 0
    @runfrodorun Why bad design? Currently a lot of modern c++ libraries try to do compile time reflection and string manipulation with ugly template hacks. We need a clean syntax to do the same, something like constexpr-esque thing.
  • 0
    @runfrodorun Put dynamic_cast as an example of COMPILE TIME reflection is so full of bullshit that is doesn't even funny. dynamic_cast is a RUNTIME reflection feature. You was right if I was talking about RUNTIME reflection and string operations, but is not the case. Im not asking for things like dynamic_cast. I'm asking for COMPILE TIME stuff that reduces execution time like traits, constexpr.
    I recommend you to see this talk to make you an idea

    https://youtu.be/abdeAew3gmQ
  • 0
    @runfrodorun You know what is dynamic_cast. But you don't know what is a COMPILE TIME reflection. COMPILE TIME
    COMPILE TIME
    COMPILE TIME
    COMPILE TIME
    COMPILE TIME
    COMPILE TIME
    If you talk about C#, dynamic_cast, bloated classes with lot of metadata in memory as an examples of COMPILE TIME reflection, you are so fucking wrong. I think that you don't know anything about COMPILE TIME and modern C++ techniques, only an outdated C++ programmer that uses C++ as a C with classes doing for loops with iterator begin end syntax.
  • 0
    I get paid to write C++, but if I want to code something quick on any platform I'll use C# without wasting ages.
  • 0
    @runfrodorun Just search c++ compile time reflection in google and you will find a lot of discussio. There are many talks about compile time reflection in main cpp conferences like cppcon, cppnow, meetingcpp, etc. Also the concept is used in stardard commitee academic papers, so when we are talking about compile time reflection I'm sure that we are talking about and we are not influenced by the implementation that crappy garbage collected/scripting languages have of reflection.
  • 0
    @runfrodorun I'm not angry with you. How can I hate you if you program in C++ and hate C#?
  • 0
    @runfrodorun Compile time strings is referred to the ability to operate strings in compile time. Some of these is acomplished with c macros or ugly template usages. It is very useful but not very mantainable, at least you have one engineer by code line.
  • 0
    @runfrodorun Don't take seriously my words too. I recognize you as a brother that don't like to fuck the RAM due incompetence or hype :')
  • 0
    @runfrodorun one library https://github.com/rbock/sqlpp11. Notice that query string are generated during compile time, not runtime.
    Here a proposal for the standard of compile time strings https://isocpp.org/blog/2014/...
Add Comment