LWN: Comments on "A look at C++14: Papers Part 2"
http://lwn.net/Articles/545423/
This is a special feed containing comments posted
to the individual LWN article titled "A look at C++14: Papers Part 2".
hourly2Swap
http://lwn.net/Articles/546225/rss
2013-04-05T23:18:35+00:00mathstuf
<div class="FormattedComment">
Can't you just treat them as integers of the same size for CAS?<br>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/546187/rss
2013-04-05T17:44:48+00:00robert_s
<div class="FormattedComment">
Head already spinning...<br>
<p>
...I mean whoever's job it is to make the final decisions.<br>
</div>
Swap
http://lwn.net/Articles/545675/rss
2013-04-03T11:04:50+00:00heijo
<div class="FormattedComment">
Haswell CPUs with TSX.<br>
<p>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/545672/rss
2013-04-03T08:33:09+00:00jwakely
<div class="FormattedComment">
Right. I don't remember ever seeing a formal proposal to add them, and there is strong opposition to them from some parts of the committee.<br>
</div>
Swap
http://lwn.net/Articles/545664/rss
2013-04-03T05:05:45+00:00Ben_P
<div class="FormattedComment">
Atomic swaps on doubles (and floats) are made more tricky by the fact very often NaN != NaN. <br>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/545651/rss
2013-04-02T23:56:21+00:00daniel
<div class="FormattedComment">
Designated initializers? Conspicuously absent.<br>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/545647/rss
2013-04-02T23:13:27+00:00jwakely
<div class="FormattedComment">
If you mean www.open-std.org, it's noone's job and there is no open standards group, there's one volunteer who maintains the websites for several standards bodies.<br>
<p>
There's a table at <a href="http://isocpp.org/blog/2013/03/pre-bristol-standards-papers-mailing-available">http://isocpp.org/blog/2013/03/pre-bristol-standards-pape...</a> which categorizes the papers, the ones marked "Evolution" are probably the "interesting language" ones.<br>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/545646/rss
2013-04-02T22:57:34+00:00robert_s
<div class="FormattedComment">
That's kinda the job of the open standards group.<br>
</div>
Swap
http://lwn.net/Articles/545631/rss
2013-04-02T20:31:38+00:00wahern
<div class="FormattedComment">
Are there any architectures where there exists an atomic, wait-free swap between two memory locations?<br>
<p>
I suspect that they're uncommon if not non-existent.<br>
<p>
In any event, presumably such an operation was left out of the stdatomic.h libraries for C11 and C++11 for a reason.<br>
<p>
</div>
Swap
http://lwn.net/Articles/545622/rss
2013-04-02T20:12:27+00:00scottwood
<div class="FormattedComment">
If non-atomic swap is a useful addition, why would you want to slow down swaps that don't need to be atomic by making it automatic, even if it's optional for the implementation? Atomic swap should be a specially requested operation (e.g. using compiler intrinsics), just like most other atomic operations.<br>
</div>
Swap
http://lwn.net/Articles/545538/rss
2013-04-02T09:17:24+00:00tialaramex
<div class="FormattedComment">
I can imagine that there might be platforms on which (especially for larger or more sophisticated native C types like doubles) atomic swap is not practical.<br>
<p>
So perhaps C could consider offering swap with no promises of atomicity, plus a set of reserved pre-processor variables which tell us whether atomicity is implemented for specific types. This would let you do<br>
<p>
#if !defined(SWAP_UINT64_T_IS_ATOMIC)<br>
#error This program requires an atomic swap for unsigned 64-bit integers but you don't have one. Too bad.<br>
#endif<br>
<p>
... or something more useful, but you get the idea.<br>
</div>
Swap
http://lwn.net/Articles/545485/rss
2013-04-01T21:18:36+00:00proski
<div class="FormattedComment">
The swap operator looks interesting. I hope it would come to C as well. Perhaps it could be made atomic at least for some types.<br>
</div>
A look at C++14: Papers Part 2
http://lwn.net/Articles/545467/rss
2013-04-01T18:37:45+00:00heijo
<div class="FormattedComment">
How about dividing the mass of mere library proposals from the actually interesting language proposals?<br>
<p>
</div>