*** octavius <octavius!~octavius@168.147.93.209.dyn.plus.net> has quit IRC | 00:19 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has quit IRC | 07:00 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.41.130> has joined #libre-soc | 07:01 | |
markos | ghostmansd, yes thank you, but I see that I have to figure out something different, they are just too many | 08:31 |
---|---|---|
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.41.130> has quit IRC | 10:10 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has joined #libre-soc | 10:11 | |
programmerjake | lkcl: you broke it: https://salsa.debian.org/Kazan-team/mirrors/nmutil/-/pipelines/407801 | 11:05 |
programmerjake | please revert removal of dataclasses, they add eq, hash, and repr, which are needed for the tests | 11:07 |
programmerjake | also, syntax like below doesn't work, autoformatters won't leave it that way: | 11:12 |
programmerjake | self.abc = xyz; "docs for abc" | 11:12 |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has quit IRC | 16:11 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has joined #libre-soc | 16:12 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has quit IRC | 17:16 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has joined #libre-soc | 17:16 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@176.59.168.127> has quit IRC | 17:20 | |
*** ghostmansd[m] <ghostmansd[m]!~ghostmans@broadband-188-32-220-156.ip.moscow.rt.ru> has joined #libre-soc | 17:21 | |
programmerjake | ghostmansd: 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 |
programmerjake | https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/power_insn.py;h=ed77dda2094929d819f276762a37af463e401d2e;hb=9dbf16f3aa783d95ca92ad74ebef9474c7750dd2#l319 | 22:18 |
programmerjake | also, 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 |
programmerjake | soc uses it: https://git.libre-soc.org/?p=soc.git;a=blob;f=setup.py;h=ddbdf8b4402fc7316616bf30bdad22b4386d4a88;hb=HEAD#l44 | 22:24 |
programmerjake | @cached_property only on non-generators of course | 22:25 |
programmerjake | it was added to python 3.8: https://docs.python.org/3/library/functools.html#functools.cached_property | 22:27 |
*** lxo <lxo!~lxo@gateway/tor-sasl/lxo> has quit IRC | 23:54 | |
*** lxo <lxo!~lxo@gateway/tor-sasl/lxo> has joined #libre-soc | 23:55 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!