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
asmeurer has quit [Quit: asmeurer]
lritter has quit [Ping timeout: 264 seconds]
lritter has joined #pypy
jcea has quit [Ping timeout: 260 seconds]
_whitelogger has joined #pypy
forgottenone has joined #pypy
redj has quit [Read error: Connection reset by peer]
jacob22_ has quit [Ping timeout: 264 seconds]
jacob22_ has joined #pypy
jacob22_ has quit [Quit: Konversation terminated!]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 272 seconds]
lritter has quit [Ping timeout: 246 seconds]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 276 seconds]
utevo_lux has joined #pypy
jcea has joined #pypy
<utevo_lux> so i realize the following is fairly cursed, and probably something you don't wish to support, but figured I'd bring it up anyways :p
<utevo_lux> a few projects of mine are packaged as an "sfx" python file, where a small unpacker (plain python) is followed by the package+dependencies in a binary encoding - similar to the shellscript+tarfile approach commonly used on unix
<utevo_lux> this works fine in all cpython versions, however pypy gets angry in the tokenizer, raising bad_utf8 (understandably)
<utevo_lux> i could modify the binary encoding to only consist of legal utf-8 codepoints however that would make the file bigger, so mostly i'm curious why the utf-8 enforcement applies to comments as well?
<cfbolz> utevo_lux: heh, I appreciate this beast ;-)
<cfbolz> utevo_lux: isn't the solution to declare the encoding in the first line to be latin-1? then all bytes are valid
<cfbolz> (I just tried, seems to work for pypy/cpython 2/3
<cfbolz> )
<utevo_lux> man why didn't I think of that, of course that works :p
<utevo_lux> finally the #coding: pragma is actually useful for something hehe
<nimaje> why would you tokenize before decoding? how would you even? as you can't know what the bytes mean without decoding
<cfbolz> utevo_lux: just out of curiosity, why is it only tarred, and not eg zipped?
<utevo_lux> it only relies on the python stdlib, so tar.bz2 seemed like the best choice (note the :bz2 filter passed to tarfile.open)
<utevo_lux> as for tokenizing without decoding, I'm trying to think of any character encodings that would mess with whitespace or newlines, so it would probably be safe -- but it would likely be a performance drag yeah
<cfbolz> utevo_lux: ah, right
<cfbolz> utevo_lux: anyway, this is fun, me-approved ;-)
<utevo_lux> ehehe, thanks :>
<utevo_lux> and thx for pointing out he fix too!
<cfbolz> cheers
jacob22_ has joined #pypy
<mattip> cfbolz: woudl GUARD_ALWAYS_FAIL help in the sphinx case too?
<cfbolz> mattip: likely not, I don't think we get a lot of too long traces there?
infernix has quit [Ping timeout: 260 seconds]
<cfbolz> only 58, not thousands
<cfbolz> that's kind of reasonable still
jacob22_ has quit [Ping timeout: 246 seconds]
<mattip> no but as I understand the problem we want to stop the JIT from tracing loops that specialize each time
<cfbolz> mattip: yeah, needs another approach though...
<cfbolz> mattip: I suppose I should prioritize sphinx at some point
infernix has joined #pypy
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
infernix has joined #pypy
utevo_lux has quit [Quit: Quit]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
Gustavo6046_ has joined #pypy
Gustavo6046 has quit [Ping timeout: 260 seconds]
Gustavo6046_ has quit [Remote host closed the connection]
Gustavo6046 has joined #pypy
Gustavo6046 has quit [Ping timeout: 264 seconds]
infernix has joined #pypy
Gustavo6046 has joined #pypy
Dejan_ has joined #pypy
Dejan_ has quit [Client Quit]
Dejan has quit [Ping timeout: 256 seconds]
jacob22_ has joined #pypy
jacob22_ has quit [Ping timeout: 256 seconds]
Dejan has joined #pypy
jacob22_ has joined #pypy
<Dejan> is there a way to tell pip to install particular package from source instead of wheel?
<Dejan> (but to use pypi anyway)
<Dejan> what i want is something like: pip3 install --source numpy==1.20.1
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7535 [ronan: force build, hpy-update-to-eb07982b6]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8595 [ronan: force build, hpy-update-to-eb07982b6]
<ronan> Dejan: there is a way, yes
<ronan> --no-binary, I think
<ronan> '--no-binary :all:' actually
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
<Dejan> ah, thanks
<Dejan> i tried --no-binary but it did not work
infernix has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/8595 [ronan: force build, hpy-update-to-eb07982b6]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7535 [ronan: force build, hpy-update-to-eb07982b6]
Techcable has quit [Quit: ZNC - https://znc.in]
Techcable has joined #pypy
forgottenone has quit [Quit: Konversation terminated!]