<nates93[m]>
wrote a python script to auto-generate latex (using the bytefield package) from `rgb565_layout = data.StructLayout({"red": 5, "green": 6, "blue": 5})`. Only implemented for StructLayout but now that I wrapped my head around things a bit I think the others should be straightforward
<whitequark[cis]>
oh, nice!
<galibert[m]>
The less straightforward part with the other possibilities is going to decide how to represent them :-)
<galibert[m]>
* going to be to decide how
<whitequark[cis]>
holes are straightforward
<whitequark[cis]>
overlaps are multiple rows
<galibert[m]>
(ouch, I'm so not used to lsb-first bit fields representations)
<galibert[m]>
How do overlaps/unions interact with hierarchy?
GenTooMan has joined #amaranth-lang
<whitequark[cis]>
they kind of aren't
<galibert[m]>
Ok, I'm probably missing something, but in {"red": 5, "green": 6, "blue": 5} isn't the order of the fields when you iterate over them undefined?
<whitequark[cis]>
insertion order, so from left to right
<whitequark[cis]>
this changed since python 3.6 and we support 3.8+
<galibert[m]>
I'm reading that dict doesn't have that property and only OrderedDict does?
<galibert[m]>
Ah, python change, good
notgull has quit [Ping timeout: 245 seconds]
notgull has joined #amaranth-lang
cr1901_ has joined #amaranth-lang
cr1901 has quit [Read error: Connection reset by peer]