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
<marmoute> You could call it CFoo 2.8 ;-)
epony has joined #pypy
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
Atque has quit [Write error: Connection reset by peer]
Atque has joined #pypy
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
Atque has quit [Ping timeout: 255 seconds]
Atque has joined #pypy
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
Atque has quit [Read error: Connection reset by peer]
Atque has joined #pypy
jcea has quit [Ping timeout: 256 seconds]
Techcable has quit [Ping timeout: 240 seconds]
jinsun__ has joined #pypy
jinsun is now known as Guest4629
Guest4629 has quit [Killed (platinum.libera.chat (Nickname regained by services))]
jinsun__ is now known as jinsun
lritter has joined #pypy
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
derpydoo has joined #pypy
Atque has quit [Ping timeout: 255 seconds]
Atque has joined #pypy
<cfbolz> I understand that it's all a mess for packagers :-(. but I also remember the days when we had to move from 2.4->2.5->2.6->2.7 in two versions, pypy and cpy, and every one of them broke rpython and it was all super annoying
Atque has quit [Remote host closed the connection]
Atque has joined #pypy
Atque has quit [Write error: Connection reset by peer]
Atque has joined #pypy
Techcable has joined #pypy
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
infernix has joined #pypy
<mgorny> The main problem is that py27 is swiss cheese, speaking security wise
<mgorny> I've been able to strip pypy2.7 in Gentoo quite a lot to make it useless beyond what's needed by rpython
<mgorny> But doing the same to cpython is much harder
<cfbolz> mgorny: right, that makes sense
<cfbolz> because cpython is not modular enough?
Atque has quit [Quit: ...]
Atque has joined #pypy
otisolsen70 has joined #pypy
<mgorny> mostly because pypy is using cffi while cpython has awful makefiles with lots of C
<antocuni> I'm not sure to understand: why is "security" a problem here? If you use CPython *only* to compile pypy and remove it afterwards, most the the security problems simply don't apply?
<antocuni> unless I'm missing something
<nimaje> you still have it in the package repos then, so someone could install it and use it for something else where security matters more
<mgorny> basically what nimaje said
<mgorny> i'm planning to make it harder to install accidentally but it still "feels" wrong to have something that dangerous around
<mgorny> and as i said, i expect more trouble with things like system libraries changing
<mgorny> i'm going to guess without looking that python2.7 fails to build correctly with clang-16
<mgorny> (it's much more strict than older versions)
<mattip> mgorny: would it help if we provided a binary "pypy2.7 compiler" package that has only what is needed to run rpython to build pypy3,
<mattip> with no _ssl, _sqlite3, and most of the stdlib removed?
Julian has joined #pypy
dmalcolm_ has joined #pypy
<mgorny> no real difference for me
<mgorny> as i already do that ;-)
dmalcolm has quit [Ping timeout: 260 seconds]
derpydoo has quit [Ping timeout: 240 seconds]
<mattip> ahh, cool. Would it help Gentoo if we created the binary artifact for download from https://downloads.python.org/pypy/ ?
<mgorny> nope, we're not into binary artifacts
<LarstiQ> mgorny: surely there is a bottom for bootstrapping?
Atque has quit [Remote host closed the connection]
<mgorny> we bootstrap using py2.7, then rebuild using itself ;-)
Atque has joined #pypy
derpydoo has joined #pypy
<antocuni> how do you bootstrap gcc? (genuine question, I don't really know)
ellemoeiselleva has joined #pypy
<cfbolz> antocuni: it's not an answer to your question, but I love this paper: https://arxiv.org/abs/2202.09231
<cfbolz> ah, it has a section on getting gcc from scratch, page 8
<lazka> another option is you cross compile
ellemoeiselleva has quit [Ping timeout: 260 seconds]
<cfbolz> sure, but it's a much more satisfying puzzle to think about what you would have to do if you can't ;-)
lritter has quit [Quit: Leaving]
<antocuni> cfbolz: well, if I understand correctly they start with a TinyC binary, which makes sense
<antocuni> but mgorny point is that they don't want to use any binary, which sounds difficult/impossible?
<cfbolz> antocuni: you can go all the way back to a tiny hand-assembled binary, if you simply work hard enough :-P
<antocuni> sure :)
<antocuni> but indeed, it's fascinating that the modern way to bootstrap gcc is to compile an old version first
Julian has quit [Quit: leaving]
jcea has joined #pypy
otisolsen70 has quit [Quit: Leaving]