Friday, 2022-08-05

*** octavius <octavius!~octavius@168.147.93.209.dyn.plus.net> has quit IRC00:19
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has quit IRC07:00
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.41.130> has joined #libre-soc07:01
markosghostmansd, yes thank you, but I see that I have to figure out something different, they are just too many08:31
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.41.130> has quit IRC10:10
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has joined #libre-soc10:11
programmerjakelkcl: you broke it: https://salsa.debian.org/Kazan-team/mirrors/nmutil/-/pipelines/40780111:05
programmerjakeplease revert removal of dataclasses, they add eq, hash, and repr, which are needed for the tests11:07
programmerjakealso, syntax like below doesn't work, autoformatters won't leave it that way:11:12
programmerjakeself.abc = xyz; "docs for abc"11:12
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has quit IRC16:11
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has joined #libre-soc16:12
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has quit IRC17:16
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has joined #libre-soc17:16
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has quit IRC17:20
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has joined #libre-soc17:21
programmerjakeghostmansd: Afaict using lru_cache on a generator function doesn't really work -- the first time the generator is used it will use up items from the generator, leaving it as an empty iterator for all subsequent uses.22:18
programmerjakehttps://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/power_insn.py;h=ed77dda2094929d819f276762a37af463e401d2e;hb=9dbf16f3aa783d95ca92ad74ebef9474c7750dd2#l31922:18
programmerjakealso, you can use @cached_property which has a per-class instance cache that works by just setting the attribute on the instance hiding the class'es property rather than a global cache, making it more efficient and nicer to use. we have a version of it on git.libre-soc.org.22:24
programmerjakesoc uses it: https://git.libre-soc.org/?p=soc.git;a=blob;f=setup.py;h=ddbdf8b4402fc7316616bf30bdad22b4386d4a88;hb=HEAD#l4422:24
programmerjake@cached_property only on non-generators of course22:25
programmerjakeit was added to python 3.8: https://docs.python.org/3/library/functools.html#functools.cached_property22:27
*** lxo <lxo!~lxo@gateway/tor-sasl/lxo> has quit IRC23:54
*** lxo <lxo!~lxo@gateway/tor-sasl/lxo> has joined #libre-soc23:55

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!