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]