[Python-Dev] Re: Announcing the Python Language Summit 2022 blog posts

2022-05-11 Thread Richard Mateosian
Malwarebytes blocks this site. Does anyone know why?   ...RM

On Wed, May 11, 2022 at 12:13 PM Mariatta  wrote:

> The blog posts about presentations and discussions from Python Language
> Summit 2022 are now up for your enjoyment.
>
> Main article:
> https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_01678898482.html
>
-- 

Richard Mateosian
Berkeley, California
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/6QBAZ3ZPUZCCRO4YMSZNU6OPGXIYTCFK/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Announcing the Python Language Summit 2022 blog posts

2022-05-11 Thread Mariatta
The blog posts about presentations and discussions from Python Language
Summit 2022 are now up for your enjoyment.

Main article:
https://pyfound.blogspot.com/2022/05/the-2022-python-language-summit_01678898482.html

- Python without the GIL

, Sam Gross
- Reaching a per-interpreter GIL

, Eric Snow
- The “Faster CPython” project: 3.12 and beyond

, Mark Shannon
- WebAssembly: Python in the browser and beyond

, Christian Heimes
- F-strings in the grammar
,
Pablo Galindo Salgado
- Cinder Async Optimisations
,
Itamar Ostricher
- The issue and PR backlog
,
Irit Katriel
- The path forward for immortal objects
,
Eddie Elizondo and Eric Snow
- Lightning talks
,
short presentations by Carl Meyer, Thomas Wouters, Kevin Modzelewski, and
Larry Hastings

Thanks Alex Waygood for the write ups!

Also thank you to all presenters and attendees for great content and
discussions.

This is the fourth Language Summit that I co-chaired with Łukasz, and also
my last one. I’m stepping down from this responsibility to free up my time
to take on other responsibilities and challenges. I’m grateful to have been
given this opportunity to serve the Python community. This has been a great
privilege and valuable experience. Thank you Lukasz for working alongside
me the past four years, and Senthil for helping out this year.

Thank you!
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/YHEW2TXCAPCFX3FXUVKFPNBWHWCZJBLT/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-Dev] Re: A memory map based data persistence and startup speedup approach

2022-05-11 Thread 文极

Hi Nick,

Sorry for the late reply, and thanks for the feedback!

We’ve been working on publishing the package, and the first version is 
available at https://github.com/alibaba/code-data-share-for-python/, with user 
guide and some statistics (TL;DR: ~15% speedup in startup).
We welcome code review, comments or questions.

> I assume the files wouldn't be portable across architectures

That’s true, this file is basically a snapshot of part of the CPython heap that 
could be shared between processes.

> so does the cache file naming scheme take that into account?

Currently no, this file is intended to be generated on demand (rather than 
generating a huge archive from all the third-party packages installed). Thus 
the file itself and the name should be managed by user.

> (The idea is interesting regardless of whether it produces arch-specific 
> files - kind of a middle ground between portable serialisation based pycs and 
> fully frozen modules)

I think our package could be the substitution of the frozen module mechanism 
for third-party packages — while builtin modules can be compiled to C code, 
code-data-share could automatically create a similar file that requires no 
compilation / deserialization.
Actually we do have a POC which is integrated with CPython and can speedup 
importing builtin modules, but after make it third-party package, there’s not 
much we can do to the builtins, so freeze and deep-freeze is quite exciting to 
us.

Best,
Yichen

> On Mar 20, 2022, at 23:26, Nick Coghlan  wrote:
> 
> (belated follow-up as I noticed there hadn't been a reply on list yet, just 
> the previous feedback on the faster-cpython ticket)
> 
> On Mon, 21 Feb 2022, 6:53 pm Yichen Yan via Python-Dev, 
>  wrote:
>> 
>> Hi folks, as illustrated in faster-cpython#150 [1], we have implemented a 
>> mechanism that supports data persistence of a subset of python date types 
>> with mmap, therefore can reduce package import time by caching code object. 
>> This could be seen as a more eager pyc format, as they are for the same 
>> purpose, but our approach try to avoid [de]serialization. Therefore, we get 
>> a speedup in overall python startup by ~15%.
> 
> 
> This certainly sounds interesting! 
> 
>> 
>> Currently, we’ve made it a third-party library and have been working on 
>> open-sourcing.
>> 
>> Our implementation (whose non-official name is “pycds”) mainly contains two 
>> parts:
>> importlib hooks, this implements the mechanism to dump code objects to an 
>> archive and a `Finder` that supports loading code object from mapped memory.
>> Dumping and loading (subset of) python types with mmap. In this part, we 
>> deal with 1) ASLR by patching `ob_type` fields; 2) hash seed randomization 
>> by supporting only basic types who don’t have hash-based layout (i.e. dict 
>> is not supported); 3) interned string by re-interning strings while loading 
>> mmap archive and so on.
> 
> I assume the files wouldn't be portable across architectures, so does the 
> cache file naming scheme take that into account?
> 
> (The idea is interesting regardless of whether it produces arch-specific 
> files - kind of a middle ground between portable serialisation based pycs and 
> fully frozen modules)
> 
> Cheers,
> Nick.
> 
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/OPJV5HF4MUB2YHGZZQZXMTBNF6ZAJML5/
Code of Conduct: http://python.org/psf/codeofconduct/