00:32
kitties is now known as AOC
00:33
pmp-p has quit [Remote host closed the connection]
00:34
pmp-p has joined #pypy
00:35
AOC is now known as kitties
00:39
asmeurer has quit [Quit: asmeurer]
01:21
Dejan_ has joined #pypy
01:23
Dejan has quit [Ping timeout: 256 seconds]
01:34
lritter has quit [Quit: Leaving]
02:04
jcea has quit [Ping timeout: 260 seconds]
02:13
Dejan_ has quit [Ping timeout: 272 seconds]
02:14
Dejan has joined #pypy
03:34
mgedmin has joined #pypy
05:55
isidentical has joined #pypy
05:57
yitz has joined #pypy
05:57
<
yitz >
# time pypy3 <<< 'import requests' does this take 2s for other folks, too?
05:57
<
yitz >
vs 0.3 in cython
06:02
proteusguy has quit [Remote host closed the connection]
06:04
proteusguy has joined #pypy
07:02
<
mattip >
I get about a 2x slowdown when using "pypy3.7 -c 'import requests" vs. "cpython3 -c "import reqeusts"
07:02
<
mattip >
which is what I would expect
07:04
<
mattip >
"pypy3.7 << 'import requests'" waits for EOF, so how are you running that?
07:24
vretiel has quit [Quit: WeeChat 3.0]
07:32
<
yitz >
EOF? The <<< sends in a string and closes STDIN
07:33
<
yitz >
I'm looking at an 8x slowdown
07:33
<
yitz >
Oh. Heh. You did <<
07:34
<
yitz >
<< is a heredoc. <<< is a here-string. The <<EOF will redirect the block until a `EOF` on its own line. <<< is just a straight-up string.
07:37
<
fijal >
did you run it multipl times or just once?
07:37
<
fijal >
there might be a difference of availability of pyc files too
07:37
<
fijal >
(depending on the details how you run it and how it's installed)
07:39
<
yitz >
I ran it multiple times in a row
07:39
<
yitz >
It's possible there's no pyc being generated
07:40
<
yitz >
The module is not in a write-able path
07:52
<
fijal >
that is a very plausible explanation (loading py files takes longer than pyc)
07:53
otisolsen70 has joined #pypy
08:51
isidentical has quit [Read error: Connection reset by peer]
08:52
isidentical has joined #pypy
09:00
omasanori[m] has quit [Quit: Idle for 30+ days]
09:37
_whitelogger has joined #pypy
12:32
kitties is now known as ki||ies
12:33
ki||ies is now known as kitties
13:34
jcea has joined #pypy
14:04
<
fijal >
hm, why does pypy lack hashlib.HASH?
14:06
<
fijal >
what is it anyway, why is it not documented?
14:07
<
mattip >
neither does my CPython
14:08
<
mattip >
or do you mean _hashlib.HASH ?
14:08
<
fijal >
yes, _hashlib.HASH
14:08
<
fijal >
what is it even?
14:08
<
fijal >
like a base class?
14:09
<
mattip >
>>> h = hashlib.sha256(b'abc'); type(h)
14:09
<
mattip >
<class '_hashlib.HASH'>
14:10
<
mattip >
on PyPy it is <class '_hashlib.Hash'>
14:11
<
fijal >
would you mind if I rename it?
14:11
<
fijal >
something broke because of that
14:12
<
mattip >
go for it, maybe it will fix a failing test or two
14:14
<
mattip >
hg grep "\<Hash\>" says it is only in lib_pypy/_hashlib/__init__.py (on py3.7)
14:33
<
fijal >
ok, I committed and pushed some stuff, think first commit since heptapod
14:57
isidentical has quit [Quit: isidentical]
15:33
<
fijal >
I hope I didn't break anything
15:44
<
mattip >
we may only find out after a release since I don't think anything in our codebase cares
15:56
oberstet has quit [Quit: Leaving]
16:34
lritter has joined #pypy
19:34
isidentical has joined #pypy
20:36
otisolsen70_ has joined #pypy
20:40
otisolsen70 has quit [Ping timeout: 256 seconds]
20:51
otisolsen70_ has quit [Quit: Leaving]
21:00
otisolsen70 has joined #pypy
21:23
<
cfbolz >
heh, I have material for another "pypy is faster than C" flamebait blog post ;-)
21:23
<
cfbolz >
cpython3.8 has a math.isqrt function, which computes the square root of a potentially long integer
21:24
<
cfbolz >
it's all done using PyLongs, thus slow
21:24
<
cfbolz >
in pypy, we can write it in pure python, and the JIT will type-specialize to using C integers if the arguments is fast enough
21:33
yitz has left #pypy [#pypy]
22:24
isidentical has quit [Quit: isidentical]
22:42
<
mattip >
I started migrating the blogposts to pypy.org.
22:42
<
mattip >
It took much longer than I thought because I started to read some of them
22:42
<
mattip >
there is some good stuff there
22:43
<
mattip >
and jitviewer
22:48
otisolsen70 has quit [Ping timeout: 256 seconds]