cfbolz changed the topic of #pypy to: #pypy PyPy, the flexible snake https://pypy.org | IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end and https://libera.irclog.whitequark.org/pypy | the pypy angle is to shrug and copy the implementation of CPython as closely as possible, and staying out of design decisions
<korvo> I've got a rather disgusting hack for memoizing and hash-consing ASTs so that the JIT will find them useful as greens: https://github.com/rpypkgs/rpypkgs/blob/main/bf/bf.py#L86-L90
<korvo> I currently have to do this per-class and am thinking about how I'd unify this with some nasty metaprogramming. Is there anything in rlib I could use instead?
otisolsen70 has joined #pypy
jinsun_ has joined #pypy
jinsun has quit [Killed (iridium.libera.chat (Nickname regained by services))]
jinsun_ is now known as jinsun
ctismer has quit [Quit: Connection closed for inactivity]
otisolsen70 has quit [Read error: Connection reset by peer]
<cfbolz> korvo: there is nothing in rlib, just do a bit of meta-programming (why nasty? rpython interpreters tend to be full of meta-programming)
<korvo> cfbolz: I just feel like this is very ugly. It's sensitive to the number of arguments in the constructor, too.
loganchien has joined #pypy
loganchien has quit [Client Quit]
itamarst has quit [Quit: Connection closed for inactivity]