<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Stanley Horwood</title>
    <description>The latest articles on DEV Community by Stanley Horwood (@shorwood).</description>
    <link>https://dev.to/shorwood</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3866452%2Fa99be862-c084-4e9a-8e40-fcdfe6eea5ad.png</url>
      <title>DEV Community: Stanley Horwood</title>
      <link>https://dev.to/shorwood</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shorwood"/>
    <language>en</language>
    <item>
      <title>slopc: The cursed macro Rust maintainers never anticipated</title>
      <dc:creator>Stanley Horwood</dc:creator>
      <pubDate>Tue, 07 Apr 2026 19:21:23 +0000</pubDate>
      <link>https://dev.to/shorwood/slopc-the-curse-rust-maintainers-never-anticipated-1j67</link>
      <guid>https://dev.to/shorwood/slopc-the-curse-rust-maintainers-never-anticipated-1j67</guid>
      <description>&lt;p&gt;tldr ; &lt;a href="https://github.com/shorwood/slopc" rel="noopener noreferrer"&gt;githoob/slopc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6eju3lojt2ae76cudlp.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs6eju3lojt2ae76cudlp.webp" alt="slopc-code-snippet" width="800" height="753"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So. Recently, I watched "No Boilerplate"'s video on rust's macros and gave those a try after years of ignoring it: thinking it wouldn't help my productivity that much. nah uh ! felt like discovering your car has heated seat after 2 years on a lease. But then the intrusive thoughts came in: What if those heated seats were LLM driven, on fire, and the car is now driving itself into oncoming traffic ?&lt;/p&gt;

&lt;p&gt;The voices in my head drove me to draft up some cursed proc-macro that would make my coworkers (me and my 2 cats) loose all the respect and faith they have for my technical skills.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#[slop]&lt;/code&gt; is an attempt to see how far I could push codegen and how flexible the rust compiler could be.. and it's limitations. This also made me realize that proc-macros could be a legitimate supply chain attack vector. But I'm not well versed on how one could mitigate this.&lt;/p&gt;




&lt;p&gt;The boring stuff: &lt;code&gt;#[slop]&lt;/code&gt; replaces &lt;code&gt;todo!()&lt;/code&gt; with LLM-generated code at compile time using the comments, fn signature and project deps (with arguably a best-attempt at type discovery) as prompt context. Then feeds rustc errors back and retries until it compiles (or gives up). It also use some flaky caching strategy (inspectable at &lt;code&gt;./target/slop-cache&lt;/code&gt;) to avoid burning your LLM budget too fast. (should you care)&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
