Whole-known-network
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@eddyb" class="u-url mention">@<span>eddyb</span></a></span> <span class="h-card" translate="no"><a href="https://haunted.computer/@iximeow" class="u-url mention">@<span>iximeow</span></a></span> that's like, the whole point of MLIR, no?</p>
<p>💠catgirls like fpgas so much because they have bitstreams</p><p>streaming your bites, for best performance</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> This will really wow you- JSON with an efficiency of 0 bits per bit!</p>
<p><span class="h-card"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> The fuck</p>
<p>TIL about <a href="https://www.batteryholders.org/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="">batteryholders.org/</span><span class="invisible"></span></a> — "the comprehensive battery holder and battery contact information center" — and it really does seem to be exactly that. Need dimensions for a weird battery, or details of how to mount it in your project. It's likely in there</p><p><a href="https://xoxo.zone/tags/electronics" class="mention hashtag" rel="tag">#<span>electronics</span></a> <a href="https://xoxo.zone/tags/resource" class="mention hashtag" rel="tag">#<span>resource</span></a> <a href="https://xoxo.zone/tags/battery" class="mention hashtag" rel="tag">#<span>battery</span></a> <a href="https://xoxo.zone/tags/cell" class="mention hashtag" rel="tag">#<span>cell</span></a> <a href="https://xoxo.zone/tags/reference" class="mention hashtag" rel="tag">#<span>reference</span></a></p>
<p><span class="h-card" translate="no"><a href="https://haunted.computer/@iximeow" class="u-url mention">@<span>iximeow</span></a></span> <span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> </p><p>was looking at MLIR as perhaps a less cursed way to e.g. ingest LLVM IR w/o FFI (plus ClangIR could give access to C/C++ information lost in LLVM IR)</p><p>then I found out that:<br />- MLIR heavily relies on TableGen<br />- MLIR dialects can invent arbitrary syntax for their constructs!<br />(through TableGen generating C++ code, AIUI)</p><p>(there's `-mlir-print-op-generic`, e.g.: <a href="https://godbolt.org/z/GhWMaWb5j" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">godbolt.org/z/GhWMaWb5j</span><span class="invisible"></span></a> but even that makes me wonder if the MLIR bytecode would be easier to work with instead...)</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> getting flashbacks to <a href="https://github.com/eddyb/sobek/blob/main/src/ir/build.rs" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/eddyb/sobek/blob/ma</span><span class="invisible">in/src/ir/build.rs</span></a> (and older shit that was even worse)</p><p>that one file mostly just generates a bunch of `struct`s and `impl`s (via `macro_rules!`) to allow `a + b * c` to be like `Add(a, Mul(b, c))`, except much messier to avoid needing a million `impl`s</p><p>idk if there's a clean use of it but e.g.:<br /><a href="https://github.com/eddyb/sobek/blob/7ed003a22fbe5414c136ca179fe518ef49009ae6/src/isa/i8051.rs#L407-L416" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/eddyb/sobek/blob/7e</span><span class="invisible">d003a22fbe5414c136ca179fe518ef49009ae6/src/isa/i8051.rs#L407-L416</span></a></p><p>`cx.a(...)` is "allocating" (well, interning but that's irrelevant) whatever mess (e.g. mix of operators/methods) is passed to it in `cx`</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>whitequark</span></a></span> hard disks per linker error cc <span class="h-card" translate="no"><a href="https://chaos.social/@weirdunits" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>weirdunits</span></a></span></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@ikanreed" class="u-url mention">@<span>ikanreed</span></a></span> :)</p>