3 ms·
What's the meaning of "zero cost future" in this context? I googled the phrase and got a bunch of irrelevant material.
by hackaflocka 10y ago
What's the meaning of "zero cost future" in this context? I googled the phrase and got a bunch of irrelevant material.
- fbernier 10y agoI think it means that it has no performance hit versus handwriting your own threading.
- steveklabnik 10y ago> C++ implementations obey the zero-overhead principle: What > you don’t use, you don’t pay for [Stroustrup, 1994]. And > further: What you do use, you couldn’t hand code any better. > > – Stroustrup So, in this context, the idea is that if you hand-rolled your own state machine, you should see no difference than using this library. And, we measured: the overhead in a benchmark comparing the two was 0.3%, that's three tenths of one percent.
- jholman 10y agoThe other concept that GP needs to understand the title is https://en.wikipedia.org/wiki/Futures_and_promises https://en.wikipedia.org/wiki/Futures_and_promises So the title/TFA is about "futures" (in the sense of my link) that have "zero cost" (in the sense of steveklabnik's comment).