Whole-known-network
<p><span class="h-card" translate="no"><a href="https://estradiol.city/@ity" class="u-url mention">@<span>ity</span></a></span> oh it took me days to refine those macros, and i almost gave up while doing it</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> I am too bad at Rust haha</p>
<p><span class="h-card" translate="no"><a href="https://estradiol.city/@ity" class="u-url mention">@<span>ity</span></a></span> <a href="https://github.com/prjunnamed/prjunnamed/blob/main/generic/src/simplify.rs" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/prjunnamed/prjunnam</span><span class="invisible">ed/blob/main/generic/src/simplify.rs</span></a><br /><a href="https://github.com/prjunnamed/prjunnamed/blob/main/pattern/src/lib.rs" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/prjunnamed/prjunnam</span><span class="invisible">ed/blob/main/pattern/src/lib.rs</span></a></p>
<p><span class="h-card" translate="no"><a href="https://estradiol.city/@ity" class="u-url mention">@<span>ity</span></a></span> i think its cute!!!</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> I- I'm scared</p>
<p><span class="h-card" translate="no"><a href="https://estradiol.city/@ity" class="u-url mention">@<span>ity</span></a></span> im very proud of the pattern matching engine</p>
<p>Everything to grab from Prime Gaming, March 7th edition for Steam Deck / Linux <a href="https://www.gamingonlinux.com/2025/03/everything-to-grab-from-prime-gaming-march-7th-edition-for-steam-deck-linux/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">gamingonlinux.com/2025/03/ever</span><span class="invisible">ything-to-grab-from-prime-gaming-march-7th-edition-for-steam-deck-linux/</span></a></p><p><a href="https://mastodon.social/tags/PrimeGaming" class="mention hashtag" rel="tag">#<span>PrimeGaming</span></a> <a href="https://mastodon.social/tags/Amazon" class="mention hashtag" rel="tag">#<span>Amazon</span></a> <a href="https://mastodon.social/tags/SteamDeck" class="mention hashtag" rel="tag">#<span>SteamDeck</span></a> <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="tag">#<span>Linux</span></a></p>
<p><span class="h-card" translate="no"><a href="https://estradiol.city/@ity" class="u-url mention">@<span>ity</span></a></span> btw, you should check out prjunnamed's simplify.rs for inspiration</p>
<p>Basic way of doing compilation into an SSA with a temporary compiler-internal stack<br>Source:</p><pre><code>* (+ 2 3) (/ 1 2)<br></code></pre><p>Pseudo IR (Intermediate Representation):</p><pre><code>%1 = OpConstant 2 ; stack is %1<br>%2 = OpConstant 3 ; stack is %1 %2<br>%3 = OpAdd %1 %2 ; stack is %3<br>%4 = OpConstant 1 ; stack is %3 %4<br>%5 = OpConstant 2 ; stack is %3 %4 %5<br>%6 = OpDiv %4 %5 ; stack is %3 %6<br>%7 = OpMul %3 %6 ; stack is %7<br></code></pre>