Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
northwindfoo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
northwindfoo
6y ago
Visual studio has c++ symbol rename, including class names. Has had it for a while as well. Fairly reliable, though occasionally it does fail, loudly.
2.
▲
by
northwindfoo
6y ago
Hmmm I'm trying to imagine the scenario. It sounds like this: // Structure with a function `str`, as in the paper struct StrHolder { // Assume `str` returns a `const std::string&` when `this` is const
3.
▲
by
northwindfoo
6y ago
Agreed that modern c++ has bloat. With that said, I believe that the use case that you're describing can be solved by using concepts to constrain the "Self" template parameter, instead of allowing it to be an unconstrained ge
4.
▲
by
northwindfoo
6y ago
I think that about sums up my experience with boost. I've found boost to be hit and miss in terms of elegance. One of the things I've liked about the standards track is how they've cleaned up many of the same boost concepts t
5.
▲
by
northwindfoo
6y ago
I think it goes to show that the combination of C++ giving the developer a lot of flexibility in how to approach a problem, as well as being unopinionated, leaves room for stuff like this to be built. There are a lot of decent ways to use t
6.
▲
by
northwindfoo
6y ago
I wouldn't call myself a c++ expert but I have used the language for a long time. In my opinion, templates have a lot of awesome uses outside of SFINAE and if you find yourself reaching for SFINAE, that's probably code smell and y
7.
▲
by
northwindfoo
8y ago
Right, fair enough. I only thought of that after I posted. Not used to thinking that memory is limited lol The author did indicate that they had problems with oom and memory eviction so it probably is a memory limited use case.
8.
▲
by
northwindfoo
8y ago
I'm not very familiar with go but one thing I don't understand is why the caches need to be distributed. I wonder, why not just have one cache per thread?