2 comments

  • j-krieger30 minutes ago
    I also hit a funny compiler end-of-the road last month when I wanted to try out generic_const_exprs for my RFC8366 implementation:<p><pre><code> pub struct VoucherDetails&lt;C&gt; where C: CapacityConfig, [(); C::SERIAL_NUMBER_MAX]:, [(); C::MANUFACTURER_PRIVATE_MAX]:, [(); C::IDEVID_ISSUER_MAX]:, &#x2F;&#x2F; &lt;imagine a dozen more properties here&gt; [(); C::NONCE_B64_MAX]:, { ... } </code></pre> The heavy const eval + trait resolution was too much even for my M2 Pro.
  • cptroot1 hour ago
    This was incredible, even as it rapidly outpaced my PL and mathematics knowledge.
    • PeterWhittaker36 minutes ago
      Like I said to a friend, I know just enough category theory to know that I do not understand. Perhaps upon Nth reading.