cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://quodlibet.duckdns.org/irc/pypy/latest.log.html#irc-end ) | use cffi for calling C | if a pep adds a mere 25-30 [C-API] functions or so, it's a drop in the ocean (cough) - Armin
mwhudson has joined #pypy
michelp has joined #pypy
suhdonghwi[m] has joined #pypy
Alex_Gaynor has joined #pypy
Taggnostr has joined #pypy
swills has joined #pypy
_whitelogger has joined #pypy
Alex_Gaynor has quit [*.net *.split]
michelp has quit [*.net *.split]
suhdonghwi[m] has quit [*.net *.split]
Taggnostr has quit [*.net *.split]
mwhudson has quit [*.net *.split]
Taggnostr has joined #pypy
Alex_Gaynor has joined #pypy
mwhudson has joined #pypy
michelp has joined #pypy
suhdonghwi[m] has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
LordKalma has joined #pypy
astrojl_matrix has quit [Quit: Idle for 30+ days]
todda7 has joined #pypy
todda7 has quit [Ping timeout: 240 seconds]
wleslie has quit [Ping timeout: 240 seconds]
wleslie has joined #pypy
todda7 has joined #pypy
YannickJadoul has joined #pypy
wallet42__ has quit [Ping timeout: 244 seconds]
JStoker has quit [Ping timeout: 240 seconds]
wallet42__ has joined #pypy
JStoker has joined #pypy
EWDurbin has quit [Ping timeout: 244 seconds]
EWDurbin has joined #pypy
michelp has quit [*.net *.split]
Alex_Gaynor has quit [*.net *.split]
suhdonghwi[m] has quit [*.net *.split]
Taggnostr has quit [*.net *.split]
mwhudson has quit [*.net *.split]
Alex_Gaynor has joined #pypy
Taggnostr has joined #pypy
suhdonghwi[m] has joined #pypy
mwhudson has joined #pypy
michelp has joined #pypy
suhdonghwi[m] has joined #pypy
Alex_Gaynor has joined #pypy
Alex_Gaynor has quit [Ping timeout: 244 seconds]
suhdonghwi[m] has quit [Ping timeout: 244 seconds]
<antocuni> does anybody feel like reviewing/commenting this branch? https://foss.heptapod.net/pypy/pypy/-/merge_requests/764
<antocuni> I plan to use it for the "using" context manager in hpy, and possibly others
<mgorny> mattip: any suggestion how we could get some help with stdlib test fixes? I'm afraid i didn't expect so many problems
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
<catern> hpy hasn't been released in any sense yet, right? I, a random person, couldn't viably use it for a new C extension?
<catern> also, just out of curiosity, if I write some code which manipulates a bunch of Python objects both in Python and in C with Python.h, and run both versions under pypy - which one would typically run faster, the Python or the C-with-cpyext? (since I know cpyext has a big performance overhead)
jcea has quit [Ping timeout: 264 seconds]
jcea has joined #pypy
ronan has quit [Quit: Leaving]
<arigato> catern: the C-with-cpyext version is typically a lot slower than the pure Python version
<arigato> this is what hpy is meant to help address, too. It's not complete yet at all, and a lot of things can still change, but you can already give it a try
<arigato> antocuni: a more traditional, but more obscure, way in RPython to handle "def foo(*args):"
<arigato> the function is automatically specialized by number of arguments, so you can write something like
<arigato> if len(args) >= 2:
<arigato> return foo_returning_tuple(*args)
<arigato> else:
<arigato> return process(args[0])
<arigato> def foo_returning_tuple(*args):
<arigato> if len(args) == 0: return ()
<arigato> return (process(args[0]),) + foo_returning_tuple(args[1:])
<arigato> foo_returning_tuple._always_inline_ = True
<arigato> sorry, missing '*' in the pseudo-recursive call to foo_returning_tuple()
<catern> arigato: makes sense, thanks for the answers!
LordKalma has left #pypy ["Leaving"]
DRMacIver has quit [Ping timeout: 240 seconds]
fijal has quit [Ping timeout: 240 seconds]
jeroud has quit [Ping timeout: 240 seconds]
DRMacIver has joined #pypy
fijal has joined #pypy
jeroud has joined #pypy
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
<antocuni> arigato: I see, although I'm not really sure that it's an improvement over my code :)
<tumbleweed> mgorny: Hope you don't mind if I hack on 2.7.18-3 a bit
YannickJadoul has quit [Quit: Leaving]