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
gef has quit [Ping timeout: 265 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 260 seconds]
<mattip> surprise, it turns out releasing win64 is not trivial, this time because there is a windows-specific pyconfig.h
gef has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
gef has quit [Ping timeout: 252 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 260 seconds]
tos9 has quit [Ping timeout: 252 seconds]
isidentical has joined #pypy
gef has joined #pypy
todda7 has quit [Remote host closed the connection]
glyph has quit [Read error: Connection reset by peer]
glyph has joined #pypy
oberstet has joined #pypy
oberstet has quit [Remote host closed the connection]
otisolsen70 has joined #pypy
gef has quit [Ping timeout: 240 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 252 seconds]
gef has joined #pypy
lritter has joined #pypy
todda7 has joined #pypy
tos9 has joined #pypy
nulano has joined #pypy
Hodgestar has quit [Ping timeout: 260 seconds]
Hodgestar has joined #pypy
the_rat has quit [Quit: ZNC - http://znc.in]
the_rat_ has joined #pypy
otisolsen70 has quit [Quit: Leaving]
otisolsen70 has joined #pypy
<antocuni> what is the rpython blessed way to write something to stderr? I seemed to remember that print >> sys.stderr works, but it doesn't translate
<antocuni> sys.stderr.write works, or I need to manually do os.write(2, ...) ?
<antocuni> *does sys.stderr.write work?
<antocuni> it seems the only option is to use os.write(2, ...)
isidentical has quit [Quit: isidentical]
<cfbolz> antocuni: like what? An exception or something?
infernix has quit [Ping timeout: 240 seconds]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6368 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7654 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5558 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1496 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/985 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/229 [mattip: Forced by command line script, release-pypy3.7-v7.x]
infernix has joined #pypy
<arigato> is there a straightforward way to have hypothesis generate a set that is a subset of a fixed maximum set?
<antocuni> cfbolz: I implemented HPy_Dump (see commit fa8d37991eef), which is the moral equivalent of _PyObject_Dump. It is meant to be called from e.g. gdb, so it makes sense to print to the C-level stderr directly and completely bypass the applevel mess of sys.stderr
<cfbolz> antocuni: ok
<cfbolz> arigato: st.sets(st.sampled_from(elements), max_size=len(elements)) maybe?
<arigato> ah yes, thank you
<cfbolz> I also found this: @st.composite
<cfbolz> return {e for e in elements if draw(st.booleans())}
<cfbolz> def subsets(draw, elements):
<arigato> probably better for my use case where small sets are not necessarily better
gef has quit [Ping timeout: 260 seconds]
isidentical has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/7654 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-s390x/builds/1496 [mattip: Forced by command line script, release-pypy3.7-v7.x]
gef has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/6368 [mattip: Forced by command line script, release-pypy3.7-v7.x]
gef has quit [Ping timeout: 260 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-win-x86-64/builds/229 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<arigato> meh, now trying to have an argument randomly shuffled
<arigato> maybe passing a st.randoms() and calling the shuffle() method on it?
<arigato> yes, success
<cfbolz> arigato: what are you testing?
otisolsen70_ has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-macosx-x86-64/builds/5558 [mattip: Forced by command line script, release-pypy3.7-v7.x]
<arigato> a crazy algorithm to assign colors to vertices in a triangulated polygon so that a property is satisfied
<cfbolz> heh
<cfbolz> so now you're generating random meshes?
otisolsen70_ has quit [Remote host closed the connection]
<arigato> no, the meshes are given as input to the algorithm
<arigato> but it must work for any mesh
<cfbolz> right, for testing
otisolsen70 has quit [Ping timeout: 246 seconds]
<cfbolz> does it?
<arigato> we have as input the mesh and an arbitrary subset E' of the edges in the triangulation, and the goal is the assign colors so that for each edge, we can look at the colors of the two vertices, and decide if that edge was in E' or not
<cfbolz> wow
<arigato> for a "real" usage
<cfbolz> :-)
<cfbolz> why "real" only?
<arigato> I've got a scheme with 7 colors so far, and it seems to work "for most cases" and in corner cases where it fails I can duplicate a vertex and make two triangles use a differently-colored vertex
<arigato> I mean, it's not for tests
<cfbolz> right
<arigato> nothing overly complicated, but definitely something that needs very exhaustive testing
<cfbolz> yeah
<cfbolz> what's the application?
<arigato> drawing polygons in 3D, with some edges visible and some edges not, as specified by the user
<cfbolz> ok
<arigato> (and in the common case, all edges that are inside the triangulation are not visible)
<cfbolz> right
<cfbolz> arigato: 2d graphics topic only, but I had fun reading this page today: https://trekhleb.dev/blog/2021/content-aware-image-resizing-in-javascript/
<arigato> looks fun indeed
gef has joined #pypy
otisolsen70 has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-aarch64/builds/985 [mattip: Forced by command line script, release-pypy3.7-v7.x]
lritter has quit [Quit: Leaving]
gef has quit [Ping timeout: 240 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 265 seconds]
isidentical has quit [*.net *.split]
_aegis__ has quit [*.net *.split]
gef has joined #pypy
isidentical has joined #pypy
_aegis__ has joined #pypy
gef has quit [Ping timeout: 240 seconds]
gef has joined #pypy
otisolsen70 has quit [Quit: Leaving]
gef has quit [Ping timeout: 240 seconds]
gef has joined #pypy
gef has quit [Ping timeout: 265 seconds]
gef has joined #pypy
isidentical has quit [Quit: isidentical]