<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: petermclean</title><link>https://news.ycombinator.com/user?id=petermclean</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 04 Jul 2026 12:56:47 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=petermclean" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by petermclean in "Ask HN: Who wants to be hired? (August 2025)"]]></title><description><![CDATA[
<p><p><pre><code>  Location: Toronto, Ontario
  Remote: Yes and Hybrid
  Willing to Relocate: No
  Technologies: C/C++, FPGA, SystemVerilog, AI ML Inference, AI Compiler, Hardware Architecture, Python, CMake/general infrastructure
  Résumé/CV: https://www.linkedin.com/in/petercdmclean
  Email: peter at mcl.ean.email
</code></pre>
Mixed hardware/software experience. Experience in technical leadership role. Looking primarily in AI compiler area but am open to other roles.</p>
]]></description><pubDate>Fri, 01 Aug 2025 17:12:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=44759546</link><dc:creator>petermclean</dc:creator><comments>https://news.ycombinator.com/item?id=44759546</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44759546</guid></item><item><title><![CDATA[New comment by petermclean in "Writing memory efficient C structs"]]></title><description><![CDATA[
<p>Only similar by a little bit. Bitset misses the mark in so many ways.<p>bit_array can be compile time storage (ala bitset) or dynamic at construction time. There is also bit_vector which is entirely dynamic<p>Critically though, is that the type/library is built on a proxy iterator/pointer that lets you do certain things with STL or the bit algorithms that you cannot otherwise do with bitset.<p>But back to the bitfields idea. The bit array backing storage is configurable through templates so you will be able to know for certain exactly how much stack or heap your type will take up</p>
]]></description><pubDate>Thu, 31 Jul 2025 04:45:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=44742383</link><dc:creator>petermclean</dc:creator><comments>https://news.ycombinator.com/item?id=44742383</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44742383</guid></item><item><title><![CDATA[New comment by petermclean in "Writing memory efficient C structs"]]></title><description><![CDATA[
<p>I've been working on an open source library that, while it doesn't solve bitfields, can provide convenient ergonomic access to bit-granular types:<p><a href="https://github.com/PeterCDMcLean/BitLib">https://github.com/PeterCDMcLean/BitLib</a><p>You can inherit from bit_array and create a pseudo bitfield:<p><pre><code>  class mybits_t : bit::bit_array<17> {
    public:
      // slice a 1 bit sized field
      // returns a proxy reference to the single bit
      auto field1() {
        return (*this)(0, 1);
      }

      // slice a 3 bit sized field 
      // returns a proxy reference to the 3 bits
      auto field2() {
        return (*this)(1, 4);
      } 
  };
  mybits_t mybits(7);
  assert(mybits.field1() == 1);
  mybits.field1() = 0;
  assert(static_cast<int>(mybits) == 6); //no implicit cast to integers, but explicit supported

</code></pre>
There is minimal overhead depending on how aggressively the compiler inlines or optimizes*</p>
]]></description><pubDate>Wed, 30 Jul 2025 20:22:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=44739077</link><dc:creator>petermclean</dc:creator><comments>https://news.ycombinator.com/item?id=44739077</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44739077</guid></item><item><title><![CDATA[New comment by petermclean in "Ask HN: What are you working on? (July 2025)"]]></title><description><![CDATA[
<p>An open source STL-like set of containers and algorithms for treating bit-resolution types like first class citizens.<p><a href="https://github.com/petercdmclean/bitlib">https://github.com/petercdmclean/bitlib</a></p>
]]></description><pubDate>Mon, 28 Jul 2025 02:42:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=44706708</link><dc:creator>petermclean</dc:creator><comments>https://news.ycombinator.com/item?id=44706708</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44706708</guid></item></channel></rss>