News for hackers. Stuff that matters.
Re:Chromium Windows builds now use Clang by default by CoolGuySteve on Saturday July 29, 2017 @07:52AM (#14880724)
IIRC, Microsoft wants you to use intrinsics because it plays better with their register coloring and code reordering optimizations.

Unless there's an instruction you need that doesn't have an intrinsic or you're writing something like a spin lock where instruction ordering is critical and a compiler barrier for some reason is not sufficient, there's no reason to ever write assembly.

Your code won't be appreciably faster than if you tuned it in the compiler, and after a few years the compiler will integrate new instructions while your assembly just gets stale.

Re:Chromium Windows builds now use Clang by default by xorblurb on Saturday July 29, 2017 @09:08AM (#14881028)
> Unless there's an instruction you need that doesn't have an intrinsic or you're writing something like a spin lock where instruction ordering is critical and a compiler barrier for some reason is not sufficient, there's no reason to ever write assembly.

So there are reasons to write code in assembly language.

Re:Chromium Windows builds now use Clang by default by CoolGuySteve on Saturday July 29, 2017 @09:38AM (#14881163)
OK, there's no reason for YOU to write code in assembly.
Re:Chromium Windows builds now use Clang by default by xorblurb on Monday August 07, 2017 @02:30PM (#14949940)
For me, personally? I occasionally can write that kind of stuff.