<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: pbsd</title><link>https://news.ycombinator.com/user?id=pbsd</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 04 Dec 2026 21:11:02 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=pbsd" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by pbsd in "Did AI rediscover a cryptographic attack NSA had known since 2015?"]]></title><description><![CDATA[
<p>The precomputation---~2^170 operations---would be far more costly than solving the discrete logarithm the normal way.</p>
]]></description><pubDate>Fri, 04 Dec 2026 18:49:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=50765092</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=50765092</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50765092</guid></item><item><title><![CDATA[New comment by pbsd in "Claude reveals ECDSA curve origins"]]></title><description><![CDATA[
<p>The first version of the X9.62-1998 standard, where these curves first showed up, only had P-192, P-256, and the prime192v{1,2,3} and prime239v{1,2,3} curves. These also happen to be the curves with the earliest timestamps (along with P-384 and P-521). It also contained 163-bit curves, but none of those correspond to the later B-163 curve.<p>So yeah, it seems plausible P-224 and the B-* curves were generated at a later date.</p>
]]></description><pubDate>Sat, 17 Oct 2026 16:50:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=50132699</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=50132699</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50132699</guid></item><item><title><![CDATA[New comment by pbsd in "Claude reveals ECDSA curve origins"]]></title><description><![CDATA[
<p>That is mentioned in a years old post: <a href="https://saweis.net/posts/nist-curve-seed-origins.html" rel="nofollow">https://saweis.net/posts/nist-curve-seed-origins.html</a></p>
]]></description><pubDate>Fri, 16 Oct 2026 23:29:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=50126166</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=50126166</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50126166</guid></item><item><title><![CDATA[New comment by pbsd in "Who is vfmaddrnd231pd?"]]></title><description><![CDATA[
<p>An old version of binutils [1] explains what DDS means:<p><pre><code>    How to encode VEX.vvvv:
    0: VEX.vvvv must be 1111b.
    1: VEX.NDS.  Register-only source is encoded in VEX.vvvv where
       the content of source registers will be preserved.
       VEX.DDS.  The second register operand is encoded in VEX.vvvv
       where the content of first source register will be overwritten
       by the result.
       VEX.NDD2.  The second destination register operand is encoded in
       VEX.vvvv for instructions with 2 destination register operands.
       For assembler, there are no difference between VEX.NDS, VEX.DDS
       and VEX.NDD2.
    2. VEX.NDD.  Register destination is encoded in VEX.vvvv for
    instructions with 1 destination register operand.
    3. VEX.LWP.  Register destination is encoded in VEX.vvvv and one
       of the operands can access a memory location.
</code></pre>
[1] <a href="https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=eea96d3f86cc1ff96447b6fc096bb5f371b938b6;hp=ecb96e55497e44b6c0818553dcb86dfb96b8deef#patch2" rel="nofollow">https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;...</a></p>
]]></description><pubDate>Tue, 13 Oct 2026 01:29:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=50065430</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=50065430</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50065430</guid></item><item><title><![CDATA[New comment by pbsd in "Assembly Hall of Shame"]]></title><description><![CDATA[
<p>The cycle count for RDTSC is ~25 cycles on Skylake-era microarchitectures. The 49 number shown in the OP seems off.</p>
]]></description><pubDate>Fri, 07 Aug 2026 21:09:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=49216260</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=49216260</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49216260</guid></item><item><title><![CDATA[New comment by pbsd in "How many branches can your CPU predict?"]]></title><description><![CDATA[
<p>I mean, he's comparing 2024 Zen 5 and M4 against two generations behind 2022 Intel Raptor Lake. The Lion Cove should be roughly on par with the M4 on this test.</p>
]]></description><pubDate>Thu, 19 Mar 2026 18:35:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=47443830</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=47443830</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47443830</guid></item><item><title><![CDATA[New comment by pbsd in "You can't fool the optimizer"]]></title><description><![CDATA[
<p>Because the function is not quite correct. It should be<p><pre><code>    return n ? (1u  + popcount(n & n - 1u)) : 0u;
</code></pre>
which both Clang and GCC promptly optimize to a single popcnt.</p>
]]></description><pubDate>Wed, 03 Dec 2025 20:54:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=46140001</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=46140001</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46140001</guid></item><item><title><![CDATA[New comment by pbsd in "Solving Fizz Buzz with Cosines"]]></title><description><![CDATA[
<p>This can be translated to the discrete domain pretty easily, just like the NTT. Pick a sufficiently large prime with order 15k, say, p = 2^61-1. 37 generates the whole multiplicative group, and 37^((2^61-2)/3) and 37^((2^61-2)/5) are appropriate roots of unity. Putting it all together yields<p><pre><code>    f(n) = 5226577487551039623 + 1537228672809129301*(1669582390241348315^n + 636260618972345635^n) + 3689348814741910322*(725554454131936870^n + 194643636704778390^n + 1781303817082419751^n + 1910184110508252890^n) mod (2^61-1).
</code></pre>
This involves 6 exponentiations by n with constant bases. Because in fizzbuzz the inputs are sequential, one can further precompute c^(2^i) and c^(-2^i) and, having c^n, one can go to c^(n+1) in average 2 modular multiplications by multiplying the appropriate powers c^(+-2^i) corresponding to the flipped bits.</p>
]]></description><pubDate>Sat, 22 Nov 2025 02:30:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=46011529</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=46011529</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46011529</guid></item><item><title><![CDATA[New comment by pbsd in "C++26: range support for std:optional"]]></title><description><![CDATA[
<p>No, the generated code seems to be mostly the same as the manual version: <a href="https://gcc.godbolt.org/z/aK8orbKE8" rel="nofollow">https://gcc.godbolt.org/z/aK8orbKE8</a><p>The main difference there seems to be that GCC treats the if() as unlikely to be taken while the for() as likely.</p>
]]></description><pubDate>Wed, 15 Oct 2025 23:58:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=45599873</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=45599873</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45599873</guid></item><item><title><![CDATA[New comment by pbsd in "NSA and IETF: Can an attacker purchase standardization of weakened cryptography?"]]></title><description><![CDATA[
<p>The SIKE comparison is not particularly inconsistent since Bernstein has been banging the drum that structured lattices may not be as secure as thought for years now.<p>Currently the best attacks on NTRU, Kyber, etc, are essentially the same generic attacks that work for something like Frodo, which works on unstructured lattices. And while the resistance of unstructured attacks is pretty well studied at this point, it is not unreasonable to suspect that the algebraic structure in the more efficient lattice schemes can lead to more efficient attacks. How efficient? Who knows.</p>
]]></description><pubDate>Sun, 05 Oct 2025 14:58:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=45481985</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=45481985</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45481985</guid></item><item><title><![CDATA[New comment by pbsd in "Scream cipher"]]></title><description><![CDATA[
<p>I thought this was gonna be about the actual Scream stream cipher: <a href="https://eprint.iacr.org/2002/019" rel="nofollow">https://eprint.iacr.org/2002/019</a></p>
]]></description><pubDate>Sat, 20 Sep 2025 19:46:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=45316698</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=45316698</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45316698</guid></item><item><title><![CDATA[New comment by pbsd in "The staff ate it later"]]></title><description><![CDATA[
<p>Cimino's Heaven's Gate (1980) is usually pointed as the movie that caused the "no animals were harmed" disclaimer to be added to subsequent movies.</p>
]]></description><pubDate>Wed, 03 Sep 2025 01:45:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=45111404</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=45111404</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45111404</guid></item><item><title><![CDATA[New comment by pbsd in "Test Results for AMD Zen 5"]]></title><description><![CDATA[
<p>Vector ALU instruction latencies are understandably listed as 2 and higher, but this is not strictly the case. From AMD's Zen 5 optimization manual [1], we have<p><pre><code>    The floating point schedulers have a slow region, in the oldest entries of a scheduler and only when the scheduler is full. If an operation is in the slow region and it is dependent on a 1-cycle latency operation, it will see a 1 cycle latency penalty.
    There is no penalty for operations in the slow region that depend on longer latency operations or loads.
    There is no penalty for any operations in the fast region.
    To write a latency test that does not see this penalty, the test needs to keep the FP schedulers from filling up.
    The latency test could interleave NOPs to prevent the scheduler from filling up.
</code></pre>
Basically, short vector code sequences that don't fill up the scheduler will have better latency.<p>[1] <a href="https://www.amd.com/content/dam/amd/en/documents/processor-tech-docs/software-optimization-guides/58455.zip" rel="nofollow">https://www.amd.com/content/dam/amd/en/documents/processor-t...</a></p>
]]></description><pubDate>Sat, 26 Jul 2025 20:33:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=44696747</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=44696747</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44696747</guid></item><item><title><![CDATA[New comment by pbsd in "C++: Zero-cost static initialization"]]></title><description><![CDATA[
<p>>Even after the static variable has been initialised, the overhead of accessing it is still considerable: a function call to __cxa_guard_acquire(), plus atomic_load_explicit(&__b_guard, memory_order::acquire) in __cxa_guard_acquire().<p>No. The lock calls are only done during initialization, in case two threads run the initialization concurrently while the guard variable is 0. Once the variable is initialized, this will always be skipped by "je      .L3".</p>
]]></description><pubDate>Sat, 19 Jul 2025 01:14:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=44611640</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=44611640</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44611640</guid></item><item><title><![CDATA[New comment by pbsd in "The ITTAGE indirect branch predictor"]]></title><description><![CDATA[
<p>The Pentium 4 had branch hints in the form of taken/not taken prefixes. They were not found to be useful and basically ignored in every subsequent Intel microarchitecture, until Redwood Cove brought back the branch taken prefix in 2023.</p>
]]></description><pubDate>Sat, 05 Jul 2025 03:00:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=44469816</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=44469816</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44469816</guid></item><item><title><![CDATA[New comment by pbsd in "Debunking NIST's calculation of the Kyber-512 security level (2023)"]]></title><description><![CDATA[
<p>This circuit [1] puts it at <=135k bit operations. Bitcoin uses SHA-256, not SHA-1.<p>[1] <a href="https://nigelsmart.github.io/MPC-Circuits/sha256.txt" rel="nofollow">https://nigelsmart.github.io/MPC-Circuits/sha256.txt</a></p>
]]></description><pubDate>Sun, 22 Jun 2025 03:44:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=44343350</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=44343350</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44343350</guid></item><item><title><![CDATA[New comment by pbsd in "X X^t can be faster"]]></title><description><![CDATA[
<p>Karatsuba is definitely faster than schoolbook multiplication at practical sizes. You presumably mean Strassen.</p>
]]></description><pubDate>Fri, 16 May 2025 17:52:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=44008124</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=44008124</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44008124</guid></item><item><title><![CDATA[New comment by pbsd in "Chunking Attacks on File Backup Services Using Content-Deﬁned Chunking [pdf]"]]></title><description><![CDATA[
<p>In page 10, should the ring R be GF(2)[X]/(X^32-1) and the map p be from {0,1}^{32} to R?</p>
]]></description><pubDate>Fri, 21 Mar 2025 20:59:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=43440767</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=43440767</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43440767</guid></item><item><title><![CDATA[New comment by pbsd in "Learn How to Break AES"]]></title><description><![CDATA[
<p>Interestingly enough, the Square attack (otherwise more generally known as integral cryptanalysis) is much more powerful than regular linear or differential cryptanalysis when applied to the AES.</p>
]]></description><pubDate>Tue, 04 Mar 2025 21:49:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=43260150</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=43260150</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43260150</guid></item><item><title><![CDATA[New comment by pbsd in "Why Quantum Cryptanalysis is Bollocks [pdf]"]]></title><description><![CDATA[
<p>Antoine Joux was on the side of classical cryptanalysis on a 2014 bet. This was right after the small-characteristic discrete log advances, so that might no longer be the bet if it was made today.<p><a href="https://x.com/hashbreaker/status/494867301435318273" rel="nofollow">https://x.com/hashbreaker/status/494867301435318273</a></p>
]]></description><pubDate>Wed, 19 Feb 2025 22:31:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=43108600</link><dc:creator>pbsd</dc:creator><comments>https://news.ycombinator.com/item?id=43108600</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43108600</guid></item></channel></rss>