cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
<eric97477>
Let's say I have a c function that looks like this:
<eric97477>
uint8_t* get_array( int value, uint64_t* outLen )
<eric97477>
{
<eric97477>
*outLen = 80;
<eric97477>
<eric97477>
This code will run without crashing or throwing an exception, but data does not contain
<eric97477>
my array of values.
<eric97477>
I am guessing there is a much better way to pass in and get the value of length.
<eric97477>
How do I obtain the data from dataBytes?
marky1991 has quit [Ping timeout: 264 seconds]
jamesaxl has joined #pypy
<eric97477>
so, stumbling around a bit, it looks like: data = bytearray( length ); ffi.memmove( data, dataBytes, length ); works. Is there a better way of doing this?
<kenaan>
wlav cppyy-packaging a1135702ca77 /pypy/module/_cppyy/: first stab at transparent smart pointer support and improved templated methods
<kenaan>
wlav cppyy-packaging fba8c8e53f31 /pypy/module/_cppyy/converter.py: more smart pointer support
<kenaan>
wlav cppyy-packaging 83daee4823bc /pypy/module/_cppyy/test/datatypes.cxx: fix memory leak in test
<kenaan>
wlav cppyy-packaging bf4f9f2a4234 /pypy/module/_cppyy/: finish pythonization of smart pointers
<kenaan>
wlav cppyy-packaging 264a0794b659 /pypy/module/_cppyy/: reduce layers in method dispatch for simplicity, performance, and support of templated methods (this require...
sthalik has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
tbodt has joined #pypy
antocuni has joined #pypy
antocuni has quit [Ping timeout: 264 seconds]
Rhy0lite has quit [Quit: Leaving]
marky1991 has quit [Ping timeout: 260 seconds]
<tos9>
I ran vmprof for 120 seconds, and then ran vmprofshow, and get a warning "WARNING: The profiling completed in less than 1 seconds. Please run your programs longer!"
<tos9>
Is vmprofshow confusing itself and thinking its own runtime is the runtime of my profiling
<tos9>
The numbers look probably believable, and the file is 52 MB
marself has quit [Ping timeout: 240 seconds]
marself has joined #pypy
sthalik has joined #pypy
ssbr has quit [Ping timeout: 265 seconds]
ssbr has joined #pypy
<idnar>
is https://pypy.org/ meant to work? the cert is invalid for that name at the moment
tianon has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
<_aegis_>
eric97477: val = ffi.new('uint64_t *'), call(val), val[0]
<_aegis_>
then I use ffi.buffer(dataBytes, length[0])
exarkun has quit [Read error: Connection reset by peer]
adamholmberg has quit [Remote host closed the connection]