std::format remains a mystery for me. It is a very nice feature, fast, safe and comfortable. It has been included into the standard, the implementation fmt exists since many years and though, the only one compiler which implements it is MSVC?! Why?! It is done, it is there, ready, implemented, just take it and put it into the library. Nope, not happening, instead all kind of weird and rarely needed stuff has been added to the standard libraries, but not this really useful feature. I will never understand that.
@destiny_02
2 жыл бұрын
Actually Clang 14 has been supporting std::format since about an year, long before MSVC.
@jacobschmidt
2 жыл бұрын
you can add it, gcc and clang are open source contributions welcome
@NoNameAtAll2
2 жыл бұрын
agree
@qazarl
2 жыл бұрын
Probably due to licencing issues.
@darranrowe174
2 жыл бұрын
It is a little late, but the standard definition of format had issues. While it has been available in MSVC, most of it was only available under /std:c++latest because of ABI breaking problems. It was only with the release of Visual Studio 2022 17.2 Preview 2 that all of the problems were fixed and made available under /std:c++20. I think it is also implemented in Clang, but it is classed as an incomplete featured and disabled by default.
@chandrasekharpbg
2 жыл бұрын
why are the slides not available for cppcon2021 ?
@garba1204
2 жыл бұрын
Am totally cured off herpes (hsv1) and am so so happy right now thanks Dretiko on KZitem for your good work.
@DrGreenGiant
2 жыл бұрын
Good talk. One bit of feedback; try and discipline yourself to not say um and uh. That would greatly improve the talk. The content was great though and I can't wait to try this in my embedded world and see if it's the viable improvement to string formatting that iostreams failed to be
@honeywu6862
Жыл бұрын
Where can i get the slides pls? It seems it's not provided on the github repo.
@Mirality
2 жыл бұрын
Disappointing that named args didn't make it in; those are better for localization (and self-documentation).
@destiny_02
2 жыл бұрын
Are they something like keywords arguments in python ?
@Swedishnbkongu
2 жыл бұрын
This is making me wonder, how many other STL functions' code size are severely impacted by non-erased variadic templates? What about ? Each of those can have as much as 5 or so iterator arguments (maybe supporting sentinels), and template parameters for value comparison, or user predicates, etc... I'd have to look through the header to decide which functions would be worst. I understand format probably gets called with varying arguments more often other functions, so maybe that alone justifies it
@DWVoid0321
2 жыл бұрын
I guess does not fit this category here. Most of them are supposed to be (almost) as fast as you wrote them yourself, which a lot of the heavy work of optimization requires inlining to work properly. Erasing types here will make it much more difficult to do so. What would be interesting is how standard containers perform, especially heavier ones like maps and sets 😂
@PaulSkeptic
2 жыл бұрын
nice talk
@garba1204
2 жыл бұрын
Am totally cured off herpes (hsv1) and am so so happy right now thanks Dretiko on KZitem for your good work.
Пікірлер: 16