Re: [pypy-dev] Advice on code location

2021-09-24 Thread Carl Friedrich Bolz-Tereick

Hi Misbah,

Welcome to the project! I am not going to reply to your actual question,
but will give some general hints, based on your mails and your issues so
far:

- I think the most important question is, what are your plans? What do
you actually want to work on?

- A good way to get some faster feedback is to hang out on our IRC
channel, #pypy on Libera:
https://www.pypy.org/posts/2021/05/pypy-irc-moves-to-libera-chat.html

- The Apple M1 is not supported yet, so you are bound to run into all
kinds of errors. Maciej is planning to do some more work on it in the
next couple of weeks.

Cheers,

Carl Friedrich

On 22.09.21 03:11, M A wrote:

Hi I'm trying to use Python to build PyPy. One problem I noticed is
the search paths for modules is not the same For PyPy and Python. I
want to add code to the build process that will check if PyPy or
Python is running. If Python is running, add paths to sys.path that
would enable Python to find needed modules. Which file would be a
good place to add such code?

___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev


Re: [pypy-dev] Does PyPy memory use benefit from preforking?

2021-09-24 Thread Maciej Fijalkowski
Hi Tin

As far as I remember PyPy has GC headers that have various bits set
and cleared when walking the heap for garbage collection, so while it
does not use reference counting, it would not benefit really from
pre-forking either. There are some ideas how to make that work, btu
none of them have been implemented.

Best,
Maciej Fijalkowski

On Sat, 18 Sept 2021 at 21:58, Tin Tvrtković  wrote:
>
> Hello!
>
> A little bit of context: roughly speaking, preforking is a technique where a 
> (supervisor) process is started, the process performs some initialization and 
> then forks off into child worker processes, which it then supervises. It's 
> usually used to make several worker processes share a server TCP socket 
> (which they inherit from the supervisor).
>
> In some runtimes preforking can also be used to save memory since the child 
> processes get copy-on-write access to the supervisor memory pages. My 
> understanding is this doesn't actually yield anything on CPython since 
> essentially everything is reference counted and memory pages get copied 
> quickly.
>
> PyPy doesn't use reference counting though, so I was wondering if preforking 
> could be used with PyPy for memory saving purposes. All of this is a little 
> low-level for me, and I would appreciate any insight from the resident 
> experts :)
> ___
> pypy-dev mailing list
> pypy-dev@python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
___
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev