whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · play https://amaranth-lang.org/play/ · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
mindw0rk has quit [Ping timeout: 265 seconds]
mindw0rk has joined #amaranth-lang
Hoernchen_ has joined #amaranth-lang
Hoernchen has quit [Ping timeout: 260 seconds]
mwk has quit [Ping timeout: 244 seconds]
frgo has joined #amaranth-lang
mwk has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
Degi has quit [Ping timeout: 255 seconds]
Degi_ has joined #amaranth-lang
Degi_ is now known as Degi
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 255 seconds]
<cr1901> Dunno where to put this, but this is the only python project I know that uses metaclasses, so... I actually had a legit use for a metaclass tonight: http://gopher.wdj-consulting.com:70/paste/ef1c0157-78ec-466e-9500-6123be550a01.txt Requesting comments on cursedness
Stary has quit [Quit: ZNC - http://znc.in]
frgo has joined #amaranth-lang
Stary has joined #amaranth-lang
frgo has quit [Ping timeout: 255 seconds]
Wanda[cis] has quit [Quit: Idle timeout reached: 172800s]
GenTooMan has quit [Ping timeout: 246 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 255 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
<whitequark[cis]> that looks very cursed
<whitequark[cis]> why not make it a toplevel for loop that does setattr on a class object?
frgo_ has joined #amaranth-lang
frgo_ has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
mwk has quit [Ping timeout: 252 seconds]
mwk has joined #amaranth-lang
mwk has quit [Ping timeout: 252 seconds]
mwk has joined #amaranth-lang
Chips4MakersakaS has quit [Quit: Idle timeout reached: 172800s]
frgo_ has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
<cr1901> I abandoned the class approach after sleeping on it, but yea that approach would be fine if the setattr loop is deferred to after tasks are loaded by doit (I think the top-level would run too early for the default task loader)
<cr1901> Actually, I don't think setattr loop works- if you do it before task loading, the both the class object and instance have the create_doit_tasks attribute, and if you do it after task loading, doit skipped over the objects due to lack of create_doit_tasks attribute. Or am I misunderstanding.
frgo has joined #amaranth-lang
frgo_ has quit [Read error: Connection reset by peer]
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
smkz has quit [Quit: smkz]
smkz has joined #amaranth-lang
smkz has quit [Client Quit]
smkz has joined #amaranth-lang
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 252 seconds]
<cr1901> (FWIW, if anyone's following along, I fixed all the things I was unhappy with in my code by using decorators and higher-order functions with control flow skeletons rather than classes)
frgo has joined #amaranth-lang
<tpw_rules> cr1901: making your own snapshot engine? is it public?
<cr1901> tpw_rules: Not yet, will be soon. Also it's very limited (zfs full snapshot from one pool to another to initialize, and then inc snapshots thereafter). doit is in there to guard against "accidentally rotating out snapshots more than once per backup"
<tpw_rules> i had to write my own to handle proxmox VMs and i've been looking to kill it
frgo has quit [Ping timeout: 264 seconds]
frgo has joined #amaranth-lang
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
RobTaylor[m] has quit [Quit: Idle timeout reached: 172800s]
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 264 seconds]