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
MiguelX413 has joined #pypy
jcea has quit [Ping timeout: 276 seconds]
[Arfrever] has quit [Ping timeout: 240 seconds]
BarrensZeppelin has joined #pypy
BarrensZeppelin has quit [Client Quit]
[Arfrever] has joined #pypy
<Mateon1> ...if I had a dollar for each time I saw abs() break a compiler...
<Mateon1> Just reduced a JIT crashing testcase for the issue I submitted, took absolutely forever, required so much manual babysitting, but eventually got a deterministic crash
<Mateon1> To complete the previous thought: ...I'd have like 8-9 dollars, which is frankly bonkers, the usual saying is like 2 or 3
_whitelogger has joined #pypy
<LarstiQ> that is quite a bit
jerith has quit [Quit: Connection closed for inactivity]
<nikolar> How did abs() break a compiler
MiguelX413 has quit [Ping timeout: 260 seconds]
MiguelX413 has joined #pypy
MiguelX413 has quit [Client Quit]
<Mateon1> nikolar: Bad peephole optimizations, usually, unchecked subexpression/subgraph sharing, fairly often a mishandling of the INT_MIN edge case... I've seen issues in several compilers based on (old) gcc code, hit one in an llvm-based project, multiple Javascript engines, msvc, and some hobby compilers
<Mateon1> And now Pypy I guess
<nikolar> That's surprising honestly, doesn't seem like a particularly bad function
<Mateon1> The GCC issues were specifically because it was matching code and lowering it to a primitive... If it just kept it as a simple conditional none of the bugs would happen
<Mateon1> Also damnit, pypy build attempt failed again, and this time didn't oom, but looks like the nixpkgs package is broken. An import test, post-build is failing on _sqlite3_cffi (via dbapi2)
<Mateon1> I've done all this reduction on an old version of pypy since I can't update to a newer version
<Mateon1> This is on pypy27, but pypy27 is a build dependency for building pypy3 in nixpkgs
<nikolar> Oh that sucks
<LarstiQ> Mateon1: how about with https://github.com/rpypkgs/rpypkgs ?
jcea has joined #pypy
jcea has quit [Ping timeout: 248 seconds]
<korvo> Mateon1: LMK if you have trouble with that flake. Also LMK if you need help or a second pair of eyes on nixpkgs contributions.
<korvo> I think rpypkgs works right now if you don't need SAIL/Isla/Pydrofoil. I'm usually using it downstream rather than hacking on it directly.
MiguelX413 has joined #pypy
MiguelX413 has quit [Quit: Bye lol - https://miguelcr.me]
MiguelX413 has joined #pypy
jcea has joined #pypy
MiguelX413 has quit [Client Quit]
MiguelX413 has joined #pypy
MiguelX413 has quit [Client Quit]
MiguelX413 has joined #pypy