arigato 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 | mac OS and Fedora are not Windows
jcea has quit [Remote host closed the connection]
jcea has joined #pypy
ionelmc has quit [Quit: Connection closed for inactivity]
tsaka__ has quit [Ping timeout: 245 seconds]
BPL has quit [Quit: Leaving]
aoeu256 has joined #pypy
<aoeu256> does the pypy project use any non-standard ast tools? I want to see if I can make a code refactoring tool / type inferencer. I've done it before for Lisp.
<simpson> aoeu256: What would be good examples of standard tools? The `ast` module in the stdlib?
<simpson> Or are you wondering about how to customize RPython's type-checking for your own ends?
jcea has quit [Quit: jcea]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
speeder39_ has joined #pypy
andi- has quit [Remote host closed the connection]
andi- has joined #pypy
<aoeu256> woops, yeah, I wanna customize RPython's type-checking for my own ends see if I can.
<simpson> https://rpython.readthedocs.io/en/latest/getting-started.html might be a good starting point.
<aoeu256> hmm it would be cool to implement "decorator macros" (turn a function to a macro that could statically check, for example, if a file exists. and also maybe do compile time calculations.
<simpson> You can generally do whatever compile-time computation you want in RPython, by doing it during module import.
tsaka__ has joined #pypy
tsaka__ has quit [Ping timeout: 245 seconds]
aoeu256 has quit [Ping timeout: 245 seconds]
_whitelogger has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
tsaka__ has joined #pypy
dddddd has quit [Remote host closed the connection]
tsaka__ has quit [Ping timeout: 244 seconds]
tsaka__ has joined #pypy
speeder39_ has joined #pypy
tsaka__ has quit [Quit: Konversation terminated!]
tsaka__ has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
ilbelkyr has quit [Remote host closed the connection]
ilbelkyr has joined #pypy
speeder39_ has quit [Quit: Connection closed for inactivity]
[Arfrever] has quit [Ping timeout: 248 seconds]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
BPL has joined #pypy
xcm has quit [Read error: Connection reset by peer]
tsaka__ has quit [Ping timeout: 248 seconds]
ionelmc has joined #pypy
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
aoeu256 has joined #pypy
<ionelmc> arigato: around?
tsaka__ has joined #pypy
dddddd has joined #pypy
<ionelmc> anyway so i figured that i needed to use packed=True
jcea has joined #pypy
marky1991 has joined #pypy
dmalcolm has joined #pypy
<ionelmc> is there a nice way to extract the numberical defines from the headers that cffi parsed?
<ionelmc> numerical*
Rhy0lite has joined #pypy
<ionelmc> seems there's an undocumented ffi.integer_const method
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
tsaka__ has quit [Ping timeout: 245 seconds]
tsaka__ has joined #pypy
tsaka__ has quit [Excess Flood]
tsaka__ has joined #pypy
tsaka_ has joined #pypy
tsaka__ has quit [Read error: Connection reset by peer]
<arigato> ionelmc: sorry, around now
* arigato reads the long backtrace
<ionelmc> i think i figured out the previous questions
<ionelmc> i wonder about one thing tho, why does cffi let me cast past available buffer data?
<ionelmc> ffi.cast("really_big_struct*", ffi.from_buffer("asdf")) doesn't error
<ionelmc> tho if i slice something from a cdata objects past boundaries i get an error (as expected)
<arigato> ...cool. Yes you'd probably need packed=True to get the equivalent of gcc's packed structures
<arigato> yes, ffi.cast() doesn't check anything and just casts
<arigato> there's some attempt at doing boundary checking but only on array types, where there's a "clearly wrong let's complain" thing
<ionelmc> i figure that making a small wrapper like this would prevent me doing silly things https://www.irccloud.com/pastebin/bVIz98KS/
<arigato> otherwise the idea is more that you get C-like no-complain
tsaka_ has quit [Read error: Connection reset by peer]
tsaka__ has joined #pypy
<arigato> right. Note that ideally there is a cleaner way than using ``ctype + "*"``
<arigato> which doesn't work for complicated C types
<arigato> ffi.getctype(ctype, "*")
<ionelmc> thanks
asmeurer_ has joined #pypy
tsaka_ has joined #pypy
tsaka__ has quit [Read error: Connection reset by peer]
tsaka_ has quit [Ping timeout: 250 seconds]
tsaka_ has joined #pypy
<arigato> nothing new here, but: WHAT A MESS is the importing logic, even in cpython 3.6 where it's supposed to be all in pure Python but isn't
asmeurer_ has quit [Quit: asmeurer_]
<kenaan> arigo py3.6 ad5f870b5e2e /pypy/module/: Issue #3034 Fix inside this code path of the import logic, which is not used any more except of course when it is (b...
<ronan> I'd like to merge apptest-file/py3tests ASAP. Any objections?
<tos9> Is doc.pypy.org supporting HTTPS something someone might care about
<Alex_Gaynor> it's a thing I care about in the way I care about all httpsing the whole web
<tos9> Right same :)
<Alex_Gaynor> Looks like it's a RTD domain, so should just be a better of configuration
<tos9> YEah -- it just semes to be https://pypy.readthedocs.io
<tos9> I'm not sure how RTD certs handle SAN
<tos9> I think maybe that's paid?
<Alex_Gaynor> No, it's there for every domain, you just have to go into the admin and mash some buttons
<tos9> Ah, cool, didn't know that.
<kenaan> rlamy py3.6 c1cbd6d85ee4 /: hg merge default
<arigato> ronan: I'm +1 on the general idea and I trust you :-)
<ronan> arigato: ok, thanks!
<kenaan> rlamy apptest-file 1d528e9a0502 /: Close branch apptest-file
<kenaan> rlamy default c5d1731e67ad /: Merged in apptest-file (pull request #659) New mechanism for app-level testing
<kenaan> rlamy py3tests ad37e2494ad9 /: Close branch py3tests
<kenaan> rlamy py3.6 62f51af92fd2 /: Merged in py3tests (pull request #660) New mechanism for app-level testing (py3 edition)
<kenaan> rlamy py3.6 cc05f1d8f542 /pypy/: hg merge default
<cfbolz> ronan: nice!
<ronan> arigato: can you restart the buildbot please?
antocuni2_ has quit [Quit: Leaving]
<kenaan> rlamy py3.6 1c9aa169eaaf /pypy/interpreter/test/test_coroutine.py: Remove obsolete test file (replaced by apptest_coroutine.py)
lritter has joined #pypy
marky1991 has quit [Ping timeout: 272 seconds]
marky1991 has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
dmalcolm has quit [Ping timeout: 272 seconds]
dmalcolm has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
Rhy0lite has quit [Quit: Leaving]
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
[Arfrever] has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
xcm has quit [Remote host closed the connection]
hexa- has quit [Quit: WeeChat 2.5]
xcm has joined #pypy
hexa- has joined #pypy
marky1991 has quit [Read error: Connection reset by peer]
rubdos has quit [Ping timeout: 264 seconds]
kipras has quit [Ping timeout: 245 seconds]
<arigato> ronan: sorry, I don't understand your request (and I'm off for the night). If it's still an issue please re-explain with a bit more details
xcm has quit [Remote host closed the connection]
xcm has joined #pypy
bjs_ has joined #pypy
EWDurbin_ has joined #pypy
DRMacIver_ has joined #pypy
idnar_ has joined #pypy
aoeu256 has quit [Read error: Connection reset by peer]
arigato has quit [*.net *.split]
EWDurbin has quit [*.net *.split]
idnar has quit [*.net *.split]
DRMacIver has quit [*.net *.split]
bjs has quit [*.net *.split]
EWDurbin_ is now known as EWDurbin
DRMacIver_ is now known as DRMacIver
bjs_ is now known as bjs
nimaje has quit [Quit: WeeChat 2.5]
nimaje has joined #pypy
speeder39_ has joined #pypy
nimaje has quit [Quit: WeeChat 2.5]
nimaje has joined #pypy
lritter has quit [Quit: Leaving]