2
@whitequark@mastodon.social Still better than chrome 🤷‍♀️
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> oh yea no for sure, I did not mean that in a &quot;implement the format by looking at a bunch of files&quot;, absolutely do not do that lol<br />I meant it more in a &quot;manually fucking around&quot; kind of way where human readability is useful.</p>
<p>chrome: &lt;exists&gt;</p><p>firefox: &lt;shoots itself in the leg&gt;</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@timonsku" class="u-url mention">@<span>timonsku</span></a></span> hm, I feel like that sort of thing breeds a false sense of familiarity where you skip reading the spec because &quot;it is obvious how this works&quot; but a lot of things are not in fact obvious; and then you get a lot of slightly different implementations and everyone dislikes this mess</p>
<p>I gotta say the Eagle folks cooked with their XML file format. While its open and documented you don&#39;t even need the docs, its super easy to read. Instantly clear how things work by looking at a design file.<br />I get where s-expr is coming from for KiCad but a good XML format is so much nicer to read.</p>
<p><span class="h-card" translate="no"><a href="https://social.lol/@8bit" class="u-url mention">@<span>8bit</span></a></span> you&#39;re welcome lmao</p>
<p><span class="h-card"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span></p><p>Hmm.</p><p>It looks like Microsoft wanted DEV_BROADCAST_HDR to be a discriminated union, but with the different variants having different sizes, presumably so that they could introduce new variants later without breaking existing code.</p><p>This is the correct way to accomplish that.</p><p><a href="https://mastodon.sdf.org/tags/Rust" class="mention hashtag" rel="tag">#<span>Rust</span></a> does something similar for trait object downcasting: check if the desired type is the same as the actual type, and if so, cast the pointer.</p><p>Check: <a href="https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#225" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/1.85.0/src/c</span><span class="invisible">ore/any.rs.html#225</span></a><br />Cast: <a href="https://doc.rust-lang.org/1.85.0/src/core/any.rs.html#294" target="_blank" rel="nofollow noopener noreferrer"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/1.85.0/src/c</span><span class="invisible">ore/any.rs.html#294</span></a></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span> Broadsword needs to open source Dark Age of Camelot next</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@gamingonlinux" class="u-url mention">@<span>gamingonlinux</span></a></span> some things never change</p>