Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
badmintonbaseba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
151.
▲
by
badmintonbaseba
2y ago
Hungarian gets pretty close too, but yeah, there are exceptions.
152.
▲
by
badmintonbaseba
2y ago
I wouldn't call these holidays, these are just once-a-year chores (apart from celebrate X).
153.
▲
by
badmintonbaseba
2y ago
C++ has lambdas and local classes. Local classes have some annoying arbitrary limitations, but they are otherwise useful.
154.
▲
by
badmintonbaseba
2y ago
It absolutely is, if it makes compile times unreasonable for reasonable code. Compilers have to make trade-offs like this all the time, they can't use overly excessive optimizations.
155.
▲
by
badmintonbaseba
2y ago
It might be a significant problem, but not in the code, but the compiler. Fair enough, you are working around a compiler issue.
156.
▲
by
badmintonbaseba
2y ago
There is a lot of guaranteed copy elision since C++17, what exactly do you mean?
157.
▲
by
badmintonbaseba
2y ago
In C++ it's an idiom to use immediately invoked lambdas: auto x = []{ /*...*/ return 5; }(); There is/was an attempt to introduce a more of a first-class language construct for such immediate "block
158.
▲
by
badmintonbaseba
2y ago
That honestly feels like a minor problem, and not something to optimize for. Also an aggressively inlining compiler will experience exactly the same problem. AFAIK at least clang always inlines a static (as in internal linkage) function if
159.
▲
by
badmintonbaseba
2y ago
It wouldn't be so bad, if web and application APIs made stream processing of messages possible. The protocol itself could handle streaming content just fine, or at least not worse than HTTP.
160.
▲
by
badmintonbaseba
2y ago
"processed uncompressed bytes"/"all uncompressed bytes" is a distorted progress indication anyway.