antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
<sh4rm4^bnc>
also, this tutorial is not really satisfying, it basically only demonstrates how to translate a python program into rpython... there's nothing in it showing how to use garbage collector, or tips how to parse the input file etc. is tehre a better tutorial somewhere ?
<simpson>
sh4rm4^bnc: The generated source depends on details of the machine which is doing the building; it's not platform-independent.
<sh4rm4^bnc>
oh :(
<simpson>
The garbage collector is free; it's added for you automatically.
<simpson>
Parsing is up to you. There are a few parser libraries with RPython, or you can roll your own.
<sh4rm4^bnc>
i suppose compiling a couple of C files would be much quicker (and take less than 4 GB RAM(!)) than to run the rypthon translator
<dddddd>
sh4rm4^bnc, in my (little) experience, 4G are not needed for every rpython program.
<sh4rm4^bnc>
OK, but i still would prefer to ship a couple of C files to my users, than having them install pypy and requiring a quite big amount of memory
<dddddd>
IIRC I compiled mine on a pentium IV with 512M. Fair enough about install pypy-
amaury_ has quit [Quit: Konversation terminated!]
<sh4rm4^bnc>
how long did it take ?
<simpson>
sh4rm4^bnc: I'm not saying that it's impossible, but it's not something that RPython's tuned for.
raynold has joined #pypy
<dddddd>
It took a while, maybe 40 minutes or so (if my memory serves)
<dddddd>
with lower -O times were drastically lower, of course
<sh4rm4^bnc>
btw does topaz (ruby impl on rpython) use a big interpreter lock (i.e. make multi-threaded coding a joke) ?
<simpson>
I'm not sure whether threads need any help to be considered a joke~
<Alex_Gaynor>
I don't think we ever implemented threads in topaz
<sh4rm4^bnc>
:o
<simpson>
RPython-generated JITs have a GIL protecting the JIT and GC core data structures. Some exploratory work for fixing that has been done, but there hasn't been much interest and AIUI not much funding.
<sh4rm4^bnc>
i see
<sh4rm4^bnc>
the lack of scripting langs supporting proper multithreading is actually why i consider writing my own..