"Chris M. Thomasson" <invalid@invalid.invalid>: Sep 09 03:04PM -0700 On 9/6/2017 2:28 PM, Mr Flibble wrote: > ? CACHE_LINE_SIZE - sizeof(T) > : 1]; > }; Humm... A corner case, think about when sizeof for a user provided T happens to be equal to a cache line size, now you have a dangling char intruding into the next cache line at an alignment boundary. if sizeof(T) == CACHE_LINE_SIZE, then cache_line_storage<T> will have: struct cache_line_storage { alignas(CACHE_LINE_SIZE) T data; char pad[1]; }; Well, this intrudes into the next cache line because sizeof(cache_line_storage<T>) will be greater than CACHE_LINE_SIZE. This is a corner case, but, imho, worth pointing out. Sorry for nit picking. |
bitrex <bitrex@de.lete.earthlink.net>: Sep 08 09:00PM -0400 On 09/05/2017 07:53 AM, Chris Vine wrote: > good introduction: > https://docs.microsoft.com/en-us/cpp/cpp/lambda-expressions-in-cpp > Chris Thanks for laying out the executive summary. I've experimented a bit with using closures for render instruction passing in my engine this week and I think I've got the hang of it, but the experimenting has also made it apparent that without rewriting some of the engine applying them properly won't make much of a difference (I really need to separate out the code that manages the 'scene objects' from the code that renders those objects, the render code should really just return fully rendered frames and nothing else, One Responsibility and all that) so that's good to know too. ;-) |
bitrex <bitrex@de.lete.earthlink.net>: Sep 08 08:51PM -0400 Nobody really wants a bluetooth-enabled ARM Cortex M7-powered cloud-connected juicemaker that automatically re-orders juice packets and you can't even put real fruit in. <https://www.inc.com/ryan-holmes/everyone-loves-vintage-tech-and-its-creating-a-pr.html?cid=cp01002verge> |
bitrex <bitrex@de.lete.earthlink.net>: Sep 08 08:52PM -0400 On 09/08/2017 08:51 PM, bitrex wrote: > cloud-connected juicemaker that automatically re-orders juice packets > and you can't even put real fruit in. > <https://www.inc.com/ryan-holmes/everyone-loves-vintage-tech-and-its-creating-a-pr.html?cid=cp01002verge> Sorry, OT POST on wrong NG. Apologies, disregard. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment