Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by petters on Monday April 01, 2024 @10:30AM
(#39894534)
Should be possible to implement cout more effectively since there is no string parsing. I say “should” because in practice it seems to be the other way around. I don’t know why.
[ Parent
| on HN ]
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by hermitdev on Monday April 01, 2024 @02:33PM
(#39897483)
Been a while since I've looked at it, but pretty sure std::format validates and parses most (all?) format strings at compile time. There should be no runtime penalty.
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by vitaut on Tuesday April 02, 2024 @07:58PM
(#39912148)
There are some fundamental reasons why cout is slower than stdio/{fmt}: https://stackoverflow.com/a/65325727/471164.